Hi. Does anyone have a good recommendation for how...
# orm-help
m
Hi. Does anyone have a good recommendation for how to just export/create a SDL file from a Prisma model? Im using graphql-compose for many functions in my servers…and to start, just need the SDL from Prisma to use the same library. I am using Postgres for the first time, as I usually use Mongoose(and Mongo). Graphql-compose has a great plug in that creates all the resolvers/types from/for Mongoose, so trying to find something like it with Prisma. Thanks
1
n
Hey Matthew 👋 Do you mean something like graphql-schema-generator?
m
Let me take a peek....totally missed that with my google search
@Nurul That tool does create the Types...which is cool. I noticed it has the ability to generate CRUD types for queries and mutations-But the query operation types arent at the level that gives a rich query language on the selecting of data. Is there something I am missing?
n
I haven’t used this library personally! I have a better alternative which could help you. Can you have a look at https://paljs.com/?