it looks like I should pass in the path to my data...
# orm-help
s
it looks like I should pass in the path to my datamodel.graphql file in the typeDefs attribute of the Prisma service instantiation
n
that's not correct
you need to pass in the path to your GraphQL Schema, not the Prisma Data Model
s
like, the schema I’m using for my application? the schema I’m exposing as my public API?
n
no
s
I must be missing something big 😄 I don’t know of any others
the Prisma binding needs the 2nd, the GraphQL schema for the Prisma API
s
Ah, I’ve got to generate that file?
n
yes
s
I see
I think I remember reading that part in the docs and not understanding it
I’ve got a hook in there, though
that I’ve copied from the docs
let me see…
n
(side comment, reading that tutorial it's not super clear what is going on... I'll take some notes for improvements after this discussion)
oki!
s
thanks!
n
(https://github.com/prismagraphql/prisma/issues/2560 please add further improvements here) 🙂
your hook probably contains a
graphql get-schema
command, can you run that manually?
s
I’ve added more comments to the issue regarding that!
I’m making progress now, thanks!
🏃‍♂️ 1
n
thanks a lot for your input, that is super helpful! 🙂
s
You’re welcome!
thanks for the help
when I’m initializing my .graphqlconfig and it’s asking for the endpoint, should I include the stage portion of the URL after the service name?
n
Yes
s
👍
n
the entire endpoint. You can open the endpoint in your browser to double check, it should open a GraphQL Playground
s
the only bummer here is that I have to keep generating a jwt from my secret 😄
you don't have to if you use the
prisma
extension as shown here
sorry, should have shared this example before 😄 just came to my mind
s
Oh! That’s really helpful as well
that would be great to put in the readme as well
n
agreed, already added a note in the issue 👍
s
thanks!
n
did you get it to work?