W3cubDocs

/Relay

RelayQueryRequest

RelayQueryRequest encapsulates a query that Relay needs to send to the server. They are made available to network layers via the sendQueries method.

Overview

Methods

Methods

getQueryString

getQueryString(): string

Gets a string representation of the GraphQL query.

getVariables

getVariables(): {[name: string]: mixed}

Gets the variables used by the query. These variables should be serialized and sent in the GraphQL request.

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.

© 2013–present Facebook Inc.
Licensed under the BSD License.
https://facebook.github.io/relay/docs/interfaces-relay-query-request.html