1.5 KiB
1.5 KiB
id, title, layout, category, permalink, indent, next
| id | title | layout | category | permalink | indent | next |
|---|---|---|---|---|---|---|
| interfaces-relay-mutation-request | RelayMutationRequest | docs | Interfaces | docs/interfaces-relay-mutation-request.html | true | interfaces-relay-query-request |
RelayMutationRequest encapsulates a mutation that Relay needs to send to the server. They are made available to network layers via the sendMutation method.
Overview
Methods
Methods
getQueryString
getQueryString(): string
Gets a string representation of the GraphQL mutation.
getVariables
getVariables(): {[name: string]: mixed}
Gets the variables used by the mutation. These variables should be serialized and send in the GraphQL request.
getFiles
getFiles(): ?{[key: string]: File}
Gets an optional map from name to File objects.
getID
getID(): string
Gets a unique identifier for this query. These identifiers are useful for assigning response payloads to their corresponding queries when sent in a single GraphQL request.
getDebugName
getDebugName(): string
Gets a string name used to refer to this request for printing debug output.