Last active
October 23, 2019 02:23
-
-
Save helielson/05af96ba43c279afb61187e70c31f6b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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