Michał Chmura
05/27/2019, 12:38 PMserver
mutations from the seeding script? I want to access the mutations and resolvers we created as opposed to using the database
ones. Example of accessing the db
ones: const db: Prisma = new Prisma({
endpoint: '<http://localhost:4466>',
})
await db.mutation.createUser(...)
could someone provide me with relevant code for accessing the server
? Do I need apollo-client
??Sachin Jani
05/27/2019, 12:44 PMseed.graphql
approach work for you?
https://github.com/prisma/graphql-prisma-typescript/blob/master/prisma/seed.graphqlMichał Chmura
05/27/2019, 12:45 PMMichał Chmura
05/27/2019, 12:45 PMdatabase
and API Server
mutationsSachin Jani
05/27/2019, 12:46 PMSachin Jani
05/27/2019, 12:46 PMMichał Chmura
05/27/2019, 12:47 PMtypescript-client
Michał Chmura
05/27/2019, 12:47 PMSachin Jani
05/27/2019, 12:48 PM