AbstractThe fields available on the mutation payload (a *Fields type)
The mutation's input-argument shape
The union of selected scalar field keys (tracked through chaining)
The included relations (tracked through chaining)
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.
Protected AbstractmutationThe 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.
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