Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-Cha authored May 28, 2021
1 parent 7bbe9d0 commit 3e2eb50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/openapi-to-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ OpenAPI-to-GraphQL.createGraphQLSchema(oas, {

## Custom Type and Field Names and Enum Values

The `x-graphql-type-name`, `x-graphql-field-name`, and `x-graphql-enum-mapping` OAS extensions can be used to configure the types and field names as well as enum values.
The `x-graphql-type-name`, `x-graphql-field-name`, and `x-graphql-enum-mapping` OAS extensions can be used to configure type and field names as well as enum values.

The type and field names and enum values that OpenAPI-to-GraphQL generates may not be adequate or may not be consistent over different versions so this is a way to guarantee consistency.

`x-graphql-type-name` and `x-graphql-field-name` can be added to JSON schema to change the type name as well as change a field name. OpenAPI-to-GraphQL will also use `x-graphql-type-name` to name input object types by appending `Input` to the end of the name.
`x-graphql-type-name` and `x-graphql-field-name` can be added to a JSON schema to change the type name as well as change a field name. OpenAPI-to-GraphQL will also use `x-graphql-type-name` to name input object types by appending `Input` to the end of the name.

```diff
{
Expand Down

0 comments on commit 3e2eb50

Please sign in to comment.