section “set up prisma with existing database”, do...
# orm-help
w
section “set up prisma with existing database”, does it mean that prisma can read my existing database schema and produce graphql schema out of it?
👍 1
d
yes, that option works with only postgres/mongo at the moment though 🙂
For mysql, there is a feature request here: https://github.com/prisma/prisma/issues/2506
w
thanks. for some reason it did not work 😞
Copy code
prisma init
# fill data for existing database
prisma introspection
# error "default project does not exist"
prisma deploy
prisma introspection
# error disappears, but introspection generates default User definitions
d
What db are you using? Can you please share a minimal repro? With db schema, how are you setting up the db credentials that you are using (screenshot of params to priama introspect maybe)
w
I am using postgresql with complex schema. I will try to reproduce
d
Thanks! Please tag me here or DM me once you have a reproduction 🙂
w
👍 1