Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Fix schema validate error #490

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/graphqlgen-json-schema/src/definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface GraphQLGenDefinition {
['resolver-scaffolding']?: ResolverScaffolding
['default-resolvers']?: boolean
['iresolvers-augmentation']?: boolean
['delegated-parent-resolvers']?: boolean
}

export interface Models {
Expand Down
12 changes: 12 additions & 0 deletions packages/graphqlgen-json-schema/src/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@
},
"required": ["output", "layout"],
"additionalProperties": false
},
"iresolvers-augmentation": {
"description": "A boolean dictating if Apollo Server IResolvers type should be augmented so that it is compatible with graphqlgen `Resolvers` type",
"type": "boolean"
},
"default-resolvers": {
"description": "A boolean dictating if default resolvers will be generated or not",
"type": "boolean"
},
"delegated-parent-resolvers": {
"description": "A boolean dictating if the resolver signatures generated should include the signature for DelegatedParentResolvers",
"type": "boolean"
}
},
"required": ["language", "schema", "models", "output"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,8 @@ export namespace QueryResolvers {
) =>
| Array<boolean | null>
| null
| Promise<Array<boolean | null> | null>)
| Promise<Array<boolean | null> | null>
)
| {
fragment: string;
resolve: (
Expand Down