What is best practice for short circuiting a request from happening? For context, we need to be able to stop a mutation from happening based off of user information. We could go throughout our app and add checks to every place we make a mutation or we were thinking of creating a new Apollo Link that returns nothing if the user shouldn’t be able to make that mutation call. The Apollo Link idea is based on the docs linked below.
If a non-terminating custom link’s request handler doesn’t
return forward(operation)
, the link chain ends and the associated GraphQL operation is not executed.