RelayNetworkLayer

RelayNetworkLayer

Custom network layers that must conform to the RelayNetworkLayer interface.

Overview

Methods

Methods

sendMutation

sendMutation(mutationRequest: RelayMutationRequest): ?Promise

Implement this method to send mutations to the server. When the server response is obtained, this method must either call mutationRequest.resolve with the response data, or mutationRequest.reject with an Error object.

This method can optionally return a promise in order to facilitat