Next.js Discord

Discord Forum

GraphQL api mutation design

Unanswered
Jumbo flying squid posted this in #help-forum
Open in Discord
Jumbo flying squidOP
Hey guys, I'm using TRPC to handle my api requests. What's the design pattern for mutating an object? I come from a rest background where we may just have a single patch endpoint that takes a patch object. It seems like graphQL is the opposite where instead we create mutations for every field we may patch. Is that correct?

1 Reply

Jumbo flying squidOP
bump!