Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ jobs:
with:
domain: https://www.the-guild.dev/graphql/inspector/
source: 'Inspector'
nodeVersion: 16
packageManager: pnpm
24 changes: 12 additions & 12 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@

```ts
export type FieldDescriptionChangedChange = {
type: ChangeType.FieldDescriptionChanged;
type: ChangeType.FieldDescriptionChanged
meta: {
typeName: string;
fieldName: string;
oldDescription: string;
newDescription: string;
};
};
typeName: string
fieldName: string
oldDescription: string
newDescription: string
}
}
```

You can construct the full `Change` object from the `type` and `meta` properties.

```ts
import { ChangeType, fieldDescriptionChangedFromMeta } from '@graphql-inspector/core';
import { ChangeType, fieldDescriptionChangedFromMeta } from '@graphql-inspector/core'

console.log(
fieldDescriptionChangedFromMeta({
Expand All @@ -50,10 +50,10 @@
typeName: 'Foo',
fieldName: 'bar',
oldDescription: 'This is the old description',
newDescription: 'This is the new description',
},
}),
);
newDescription: 'This is the new description'
}
})
)
```

console.log output:
Expand Down