Skip to content

Instantly share code, notes, and snippets.

@helielson
Last active October 23, 2019 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helielson/05af96ba43c279afb61187e70c31f6b5 to your computer and use it in GitHub Desktop.
Save helielson/05af96ba43c279afb61187e70c31f6b5 to your computer and use it in GitHub Desktop.
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