enums.graphql
enum Role {
ADMIN
USER
}
server.graphql
# import Role from "enums.graphql"
...
apollo codegen:generate --schema ./schema/server.graphql..
Error : Error: Unable to read file ./schema/server.graphql. Type "Role" not found in document.
I see this is closed but I'm still having issues with the same thing. I'm trying to import in my main schema.graphql stuff generated by Prisma in a prisma.graphql file. This does not work and as far as I can tell it is because the import isn't working with codegen? Maybe I'm missing something else?
Most helpful comment
I see this is closed but I'm still having issues with the same thing. I'm trying to import in my main
schema.graphqlstuff generated by Prisma in aprisma.graphqlfile. This does not work and as far as I can tell it is because the import isn't working with codegen? Maybe I'm missing something else?