You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!(outputTCinstanceofObjectTypeComposer)) return;
205
+
// if output type isn't an object then skip this transformation
206
+
if (!info.isOutputTypeIsObject()) return;
207
+
208
+
const outputTC =info.getOutputUnwrappedOTC();
210
209
if (outputTC.hasField('query')) return;
211
210
outputTC.setField('query', {
212
211
description: 'Sub-query which have to be executed after mutation.',
@@ -227,8 +226,6 @@ export function addQueryToMutations(
227
226
228
227
## API
229
228
230
-
For now here is provided basic overview of the available API methods. Then detailed information will be provided later.
231
-
232
229
### Main API method:
233
230
234
231
-`buildSchema(module: NodeModule, opts: BuildOptions): GraphQLSchema` – use this method for creating graphql schema from directory
@@ -242,4 +239,4 @@ The following methods help to use schema composition, applying middlewares and s
242
239
-`directoryToAst(module: NodeModule, options: DirectoryToAstOptions): AstRootNode` – traverses directories and construct AST for your graphql entrypoints
-`astMerge(...asts: Array<AstRootNode>): AstRootNode` – combines several ASTs to one AST (helps compose several graphql schemas which may be distributed via npm packages)
245
-
-`astVisitor(ast: AstRootNode, visitor: AstVisitor): void` – modify AST via visitor pattern. This method is used for construction of your AST transformers.
242
+
-`astVisitor(ast: AstRootNode, schemaComposer: SchemaComposer, visitor: AstVisitor): void` – modify AST via visitor pattern. This method is used for construction of your AST transformers.
0 commit comments