Relay.Mutation
Relay.Mutation
Relay makes use of GraphQL mutations; operations that enable us to mutate data on the client and server. To create a mutation for use in our app, we subclass Relay.Mutation
and implement, at minimum, the four abstract methods listed below.
Overview
Properties
-
static fragments
Declare this mutation's data dependencies here -
static initialVariables
A default set of variables to make available to this mutation's fragment builders -
static prepareVariables
A method to modify the variables based on the runtime environment, previous variables, or the meta route
Methods