playground is keeping refer ‘default@default’ i kn...
# orm-help
l
playground is keeping refer ‘default@default’ i know that’s the default setting of playground. How can i change to ‘stastica@stastica’?
r
Hey @Logan Lee 👋 You can add the database and schema name under your stastica field in the docker-compose.yml as follows:
Copy code
database: stastica
schema: stastica
As for Prisma 2, it doesn't require any docker image as it is completely different from Prisma 1. You can read about the differences here.
l
well it deosn’t find anyway. i know prisma2 doesn’t need that anymore but what if i want to use playground? is there a alternatives for it?
r
well it deosn’t find anyway.
Did you run
docker-compose down
and then
docker-compose up -d
again? The schema will be created when you run
prisma deploy
i know prisma2 doesn’t need that anymore but what if i want to use playground?
As Prisma 2 doesn't have any separate server, it doesn't contain a Playground, so the basic example would be just a simple Node app made with Apollo Server or Express with the Playground for that itself.
l
yes 😞 i’ve done it. i tried many cases to solve but playground server didn’t look stastica 😞 it was kinda fixed at default@default or default@stastica. but well i don’t need to use it anymore as you said before p2 doesn’t need docker.
but i just wonder is there any alternative or way to use playground?
r
You can check how the playground is used by trying out the examples here. Also here's the docs if you're stuck anywhere,.