File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -207,8 +207,12 @@ If you want the `ImageDataStructure` to use the same GraphQL type in both `Artic
207207
208208Do the following:
209209``` js
210+ import { schemaComposer } from ' graphql-compose' ; // get the default schemaComposer or your created schemaComposer
211+ // import { GQC } from 'graphql-compose'; // <- or use your GQC which is actually the default schemaComposer
210212import { convertSchemaToGraphQL } from ' graphql-compose-mongoose' ;
211- convertSchemaToGraphQL (ImageDataStructure, ' EmbeddedImage' ); // Force this type on this mongoose schema
213+
214+ convertSchemaToGraphQL (ImageDataStructure, ' EmbeddedImage' , schemaComposer); // Force this type on this mongoose schema
215+ // convertSchemaToGraphQL(ImageDataStructure, 'EmbeddedImage', GQC); // Using GQC as the schemaComposer
212216```
213217Before continuing to convert your models to TypeComposers:
214218``` js
You can’t perform that action at this time.
0 commit comments