Prisma 1 hardened vet now looking at Prisma 2, so ...
# orm-help
l
Prisma 1 hardened vet now looking at Prisma 2, so this may be a silly question. Prisma 1 spun up a GraphQL playground where you could learn about the API / Prisma Client object. Prisma Client 2 seems more of a black box. Is there some sort of introspection/docs tool for Prisma Client 2?
j
Prisma 2 is "just" an API for your database.
All the models you have in your schema.prisma file, have an object under the
prisma
object with the standard database methods you can see in the database.
l
@janpio understood, but that doesn't tell me the methods on the object, e.g.
prisma.user.findMany( // what's possible in here)
e.g.
a
You are looking for a playground for Prisma client?
Wiith typescript/vscode, you have an autocomplete which is telling you what you can do with the Prisma client
πŸ‘ 1
r
@lawjolla πŸ‘‹ Either VSCode autocomplete or this generator as well by @Harshit
πŸ‘ 4
r
That generator is pretty cool!
πŸ’― 1
@lawjolla - one of the things I got caught on going from
prisma 1
to
prisma 2
was the relationships. It's not a biggie but it's a bit of "forget how you used to do it and learn how to do it again"
πŸ‘ 2
l
@Harshit is the man, thank you. We need this project. Autocomplete is a poor solution to losing the Playground's introspection.
h
I am glad that you liked the project πŸ™‚ I will receive some improvements soon, just really haven’t got the time for it
a
@Harshit That is awesome!
πŸ‘ 1