Hey has anyone see this error before when starting...
# orm-help
m
Hey has anyone see this error before when starting
graphql-yoga
? CustomDataFieldOrderByInput is already defined in
./generated/prisma
Copy code
/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:134
    throw new Error('Type "' + typeRef.name.value + '" not found in document.');
          ^
Error: Type "CustomDataFieldOrderByInput" not found in document.
    at ASTDefinitionBuilder._resolveType (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:134:11)
    at ASTDefinitionBuilder.buildType (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:218:79)
    at ASTDefinitionBuilder._buildWrappedType (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:227:24)
    at /Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:314:25
    at /Users/Max/graphql-server/node_modules/graphql/jsutils/keyValMap.js:28:31
    at Array.reduce (<anonymous>)
    at keyValMap (/Users/Max/graphql-server/node_modules/graphql/jsutils/keyValMap.js:27:15)
    at ASTDefinitionBuilder._makeInputValues (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:309:36)
    at ASTDefinitionBuilder.buildField (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:250:37)
    at /Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:302:21
[nodemon] app crashed - waiting for file changes before starting...
l
No, but I've gotten similar weirdness stemming from graphql-import
m
what are you seeing with
graphql-import
?
n
I haven't seen this before. Can you provide a minimal reproduction example?
l
I'm doing a lot of graphql imports with merge resolvers wizardry, and in the interest of shipping something before 2022, I haven't investigated the problem. I just keep going back and playing with the import orders / values until they work 🙂
m
sure I'll have a go. I got my server up and running by copying
enum CustomDataFieldOrderByInput {...}
from
./generated/prisma
to my
schema.graphql
file
n
m
I'm not sure but I don't think that's happening to me
@nilan I tried to create a reproduction but couldn't. I checked my prisma.graphql file and part of it was quoted out with double quotes. I think I used CTRL+C to cancel an earlier
prisma deploy
in the middle of a
graphql prepare
which screwed up my file... still can't it to work right now