Matteo Zambon
03/05/2018, 7:48 PMharmony
03/05/2018, 7:48 PMMatteo Zambon
03/05/2018, 7:49 PMgenerated/prisma.graphql
using JS instead of the CLIMatteo Zambon
03/05/2018, 7:56 PMtrailpack-apollo
which is nothing but a package to support Apollo into Trails.js
Today I read about Prisma and I thought it’s a good fit for my target.
Since Trails has Models, Resolvers and so on I thought to adapt it to use Prisma for the DB connection, but right now I’m trying to understand few aspect of it:
1. prisma deploy
needs a static schema, instead I have models (classes extending Trails Model) with a static function called schema
2. prisma.yaml
is another static file which I would like to have differenciated based on the NODE_ENV e.g. prisma.development.yaml
, prisma.production.yaml
Matteo Zambon
03/05/2018, 7:58 PMprisma.graphql
aside from prisma deploy
so that I can feed it into the server and feed it to prisma deploy
Matteo Zambon
03/05/2018, 8:00 PMprisma.yaml
and the prisma.graphql
to prisma deploy
e.g. $ prisma deploy -c prisma.development.yarm -s prisma.graphql
Matteo Zambon
03/05/2018, 8:00 PM-c
is the configuration and -s
the schemahuv1k
03/05/2018, 8:04 PM