and the schema itself doesn't have to be a one to one mapping of your database
h
hez
06/13/2018, 7:21 PM
Ah ok. I thought that the schema could have fewer fields, if you want to not surface data, but that it could not have fields of its own
hez
06/13/2018, 7:22 PM
is there a schema type that handles a generic object, or do i have to go through the process of defining a custom schema with all of my object properties
a
Avi Block
06/13/2018, 7:22 PM
in this particular case, it sounds like you're asking about the arguments to the mutation. That can certainly be whatever you need for the mutation to do it's job
h
hez
06/13/2018, 7:22 PM
Cool
a
Avi Block
06/13/2018, 7:23 PM
There are a few JSON custom scalar types, but my understanding is that it's not a best practice...you sort of break tooling if you do that, and defeats the purpose of having a strongly typed schema
h
hez
06/13/2018, 7:23 PM
thanks!
d
Dukuo
06/13/2018, 7:25 PM
yeah, since you are essentially writing a GraphQL server that bridges Prisma's one then you can resolve however you want your schemas and then pass the necessary stuff to Prisma