Hey, I am curious, with Prisma deployed to local c...
# prisma-whats-new
d
Hey, I am curious, with Prisma deployed to local cluster and navigating to
<http://docker:4466/prisma/dev>
I get the playground, but there is no schema I would be expecting to be able to interact with database schema through it Could that be a bug coming from the fact, that my Docker is running on a separate IP address, not localhost?
i
If you do not see any schema in the Docs panel, you most likely have not passed a token, if you have auth set up
d
oh, I must have missed that in docs that I need a token
i
Did you set up auth?
I think
enableAuth
in
prisma.yml
d
well, so far it's just generated boilerplate, typescript + auth, yes
i
Okay
So, from CLI, just run
prisma token
In the bottom left of the playground, set:
{ "Authorization": "bearer REPLACE_WITH_TOKEN" }
d
ok, thank you, it's working now ๐Ÿ™‚
i
Perfect!
๐Ÿ˜„
d
that playground could have more user friendly errors, would be hard to find the reason for this
i
Do you mind opening up an issue for that on github.com/graphcool/prisma ?
d
ok I will do that
๐Ÿ˜„ 1
although, isn't it more related to the https://github.com/graphcool/graphql-playground ?
i
You could probably put it there. Thatโ€™s the desktop version of the playground (via Electron)
I would suppose one fix there would lead to a fix in the web app as well, but maybe make an extra note
๐Ÿ‘Œ 1