I am using an adaptive application with a modern relay.
Currently, our implementation of app fetchQuery just makes a selection on the network (e.g. https://facebook.imtqy.com/relay/docs/en/network-layer.html )
Although it is possible to use a different level of the local network, for example https://github.com/relay-tools/relay-local-schema , which returns data from a local db, such as sqlite / realm.
Is there a way to configure an offline response from the local network level, and then automatically query the real network, which also fills the storage with more recent data (along with writing to local-db)? Should / should they use the same store?
From the requirements of Network.create (), it should return a promise containing the payload, there is no way to return multiple values.
Any ideas / help / suggestions are welcome.
source share