Solutionunvalidated

You can check the `input` type of the procedure to differentiate between mutations and queries. — The easiest way to check this is to inspect the procedure object and its properties. Tension: Mutations typically don’t have the `query` property set, whereas queries don’t have the `mutation` property set. Outcome: `procedure._def.mutation` is defined for mutation procedures. `procedure._def.query` is defined for query procedures.

b813143d-d9cc-492d-98c2-b4772c8b7a88

You can check the input type of the procedure to differentiate between mutations and queries. — The easiest way to check this is to inspect the procedure object and its properties. Tension: Mutations typically don’t have the query property set, whereas queries don’t have the mutation property set. Outcome: procedure._def.mutation is defined for mutation procedures.

procedure._def.query is defined for query procedures.