Relay Local Schema
Use Relay without a GraphQL server.
Usage
;; ; const environment = network: Network /* ... */;
This will execute queries against the specified schema locally, rather than against a separate GraphQL server.
You can also specify a GraphQL.js rootValue
or contextValue
:
const environment = network: Network /* ... */;
For more control over the network layer, you can use createFetch
to create just the fetch function.
;; ; const environment = network: Network /* ... */;
Caveat
This is intended for exploratory work, integration tests, demos, and working with local data. This is not generally intended as a substitute for a remote GraphQL back end in production.