I'd like to store some data from a REST endpoint i...
# prisma-whats-new
j
I'd like to store some data from a REST endpoint in prisma so that I can just query the prisma database with simple graphql calls. How can I use mutations to store the data from the server side, since that is where I'll run the update function to pull in the REST data
h
not sure what exactly you mean
do you want to send a request from another server?
or query a rest endpoint and then use a mutation to update data
j
query a rest endpoint and then use a mutation to update data
h
so what's your problem?
j
How do I run a mutation from the server, I know how to do it from react, but how do I do it from the server side
h
you'll want to get an instance of the connector the same way it's done in
index.js
like
const db = new Prisma( ... )
j
ok, and then what do I do with that? Is there any documentation I can read on this?
h
the same as in any resolver