You can pass arguments with __args, the arguments will be automatically extracted to GraphQL variables.
typescript
import { createClient } from "./generated"; createClient() .mutation({ createCountry: { __args: { state: "USA", }, }, }) .then(console.log);
Share