hpartidas
07/27/2018, 5:19 PMnode server/index.js
/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:113
throw new Error("Directive " + directiveName + ": Couldn't find type " + directiveName + " in any of the schemas.");
^
Error: Directive pgTable: Couldn't find type pgTable in any of the schemas.
at collectDirective (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:113:23)
at Array.forEach (<anonymous>)
at collectNewTypeDefinitions (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:47:34)
at Object.completeDefinitionPool (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:23:41)
at Object.importSchema (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/index.js:87:41)
at mergeTypeDefs (/project/node_modules/graphql-yoga/dist/index.js:402:37)
at new GraphQLServer (/project/node_modules/graphql-yoga/dist/index.js:92:34)
at Object.<anonymous> (/project/server/index.js:34:23)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
This is related to the output generated by prisma introspect
command. I see the @pgTable
attribute can't find it defined anywhere. Am I missing another dependency?divyendu
07/27/2018, 5:20 PMhpartidas
07/27/2018, 5:21 PMdivyendu
07/27/2018, 5:21 PMhpartidas
07/27/2018, 5:57 PMdivyendu
07/28/2018, 4:20 AM