The two parts of the relay tutorial that are still...
# prisma-whats-new
c
The two parts of the relay tutorial that are still black magic to me, is what part of the build process reads the graphql field in the package.json, and where the local schema is kept. It's my understanding that relay requires a local "compiled" copy of the graphql endpoint, but I don't see such a thing anywhere
n
@cadbot a bit random guess, but can you try
Bearer
instead of
bearer
? I never saw it lower case
c
Thanks, but tried that and no dice 😞
n
does the Github docs have some easy curl command to do a query maybe?
let's make sure your credentials do work
c
I'll give that a go and report back
n
thanks! The error message sounds like it's unrelated to the Relay setup 🙂
c
The credentials are fine. I managed to get this query to work from curl curl -H "Authorization: bearer token" -X POST -d ' { "query": "query { viewer { login }}" } ' https://api.github.com/graphql
n
interesting! I tried to quickly look up how to set auth headers for Relay but did not find an example, do you have one?
c
Yep! I posted it over in our other thread. Let me know if you have any questions on it 🙂