Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TuvalSimha committed Jul 11, 2023
1 parent f6581d7 commit 4252b87
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,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 @@ -112,10 +112,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
2 changes: 1 addition & 1 deletion website/src/pages/docs/commands/diff.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Integrate it with GitHub, BitBucket, GitLab or any Continuous Integration.
| [GitHub Application](../products/github) | Install our GitHub Application to check Pull Requests and commits. |
| [GitHub Action](../products/action) | Use our GitHub Action in few steps. |
| [CI](../products/ci) | GraphQL Inspector offers a version of our CLI that is better suited for Continuous Integrations. Learn more how to use it. |
| [CLI](../installation#cli) | GraphQL Inspector CLI is a simple tool to work with GraphQL schemas. |
| [CLI](../installation#cli) | GraphQL Inspector CLI is a simple tool to work with GraphQL schemas. |

## Diff - Usage

Expand Down

0 comments on commit 4252b87

Please sign in to comment.