Hi guys, I am quite new in prisma and I am struggl...
# orm-help
n
Hi guys, I am quite new in prisma and I am struggling with bug. I am not sure it is a right channel but I getting this error
"Cannot query field 'any name of my mutation' on type 'Mutation'.
, locally everything works but after
prisma deploy
I don't have my mutations in docs for my endpoint. I am using
Copy code
"graphql-yoga": "^1.16.7",
    "prisma": "^1.23.1",
    "prisma-binding": "^2.2.11"
Do you have any ideas why?
p
What is the endpoint you are using? Is it http://localhost:4466?
n
localhost working I have a problem with https://eu1.prisma.sh/.......
Schema and Query is updated but with mutations I just have create,update etc. but I can't use my custom one
p
Your custom resolvers have to be running on a separate instance that talks to the prisma connector. [WEB/APP CLIENT] <--> [CUSTOM SERVER WITH RESOLVERS] <--> [PRISMA CONNECTOR] <--> [DATABASE]
https://github.com/prisma/prisma-examples/tree/master/typescript/graphql-auth this is a good example. Step 3 is essentially creating prisma connector and Step 4 is the "custom server" that talks to the connector. The "custom server" is where you can write all your custom mutations, queries and subscriptions.
n
@Priyank Patel so prisma cloud doesnt accept custom mutations?
p
As far as I know, nope. You would need a custom server that talks to prisma cloud. Prisma cloud only provide basic CRUD functionality, create read update delete and search.