If I had a `getOrCreateXxx(id)` method on my graph...
# prisma-whats-new
p
If I had a
getOrCreateXxx(id)
method on my graphql API, meaning it gets an object by, and if it doesnt’ exist the first time, creates it, should that be on the
Queries
or the
Mutations
of the root schema?
a
It potentially creates, so I would put it on Mutation
But it doesn't matter, technically they are both queries
p
Sweet - thanks @agartha. I agree with your first instinct, feels more like a mutation.
Cheers!
👍🏻 1