I'm using graphql-yoga@1.18.3 and prisma 1 I want ...
# prisma1-community
a
I'm using graphql-yoga@1.18.3 and prisma 1 I want to import a enum from generated schema file fetched from prisma into server schema but it seems to not work. This is my import statement:
Copy code
# import input UserOrderByInput from './src/generated/schema.graphql'
# import input UserOrderByInput from './../../generated/schema.graphql'
These are the two different ways I tried to no avail. Any suggestions would be highly appreciated. And by the way this is how i instanciate GraphQLServer:
Copy code
import mainSchema from "./gql/schema/schema.graphql"
const server = new GraphQLServer({
    typeDefs: [mainSchema],
    resolvers,
    context(request) {
        return {
            request,
            prisma,
            Auth,
            Policy
        }
    },
    fragmentReplacements
})