Skip to content

Instantly share code, notes, and snippets.

@helielson
Last active Oct 23, 2019
Embed
What would you like to do?
import RelayDefaultMissingFieldHandlers from 'relay-runtime/lib/handlers/RelayDefaultMissingFieldHandlers';
import missingHandlerByRefConcreteTypeField from './missingHandlerByRefConcreteTypeField';
const store = new Store(new RecordSource());
const network = Network.create(fetchQuery);
const environment = new Environment({
network,
store,
missingFieldHandlers: [
...RelayDefaultMissingFieldHandlers,
missingHandlerByRefConcreteTypeField,
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment