Protected OptionalapiPer-call API key override, set via apiKey.
ProtectedargsRoot input arguments, set via set.
ProtectedincludesIncluded relations, set via include.
ProtectedkitThe PnWKit instance owning the API key and GraphQL service.
ProtectedmutationThe GraphQL mutation field name (e.g. 'bankWithdraw').
ProtectedselectedSelected scalar payload fields, set via select.
Use a specific API key for this call instead of the client's default key. The acting nation is the one that owns the provided key.
The Politics & War API key to authenticate this mutation with.
This builder instance for method chaining.
Execute the mutation and return the selected payload.
The result contains only the selected fields and included relations. The call bypasses the response cache (a mutation must never be served or populate a cached result).
The mutation payload, typed to the selection.
Include a nested relation on the payload, with full recursive type
inference (mirrors the query builder's include).
This builder, with the included relation tracked in the return type.
Select which scalar fields of the payload to return.
Field names to select off the returned object.
This builder, with the selected fields tracked in the return type.
Set the mutation's input arguments.
The fully-typed input arguments for this mutation.
This builder instance for method chaining.
Abstract base class for building and executing type-safe GraphQL mutations.
Standalone — it does not depend on the query builder. A mutation is "call
name(args)and select fields off the object it returns", so this class provides:Only the selected fields/relations are returned, exactly like the query builder. Concrete mutations extend this class and are exposed as factory methods on
pnwkit.mutations.Example