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