Skip to content

Instantly share code, notes, and snippets.

@dittos dittos/Relay Internals.md
Last active Aug 29, 2015

Embed
What would you like to do?
Relay Internals

Relay.QL transformation

  • Relay.QL`... `
  • -> babel-relay-plugin GraphQLPrinter
  • -> A function that returns Relay GraphQL ('Query Builder')

Collecting queries

Subtracting queries

https://github.com/facebook/relay/blob/v0.1.1/src/traversal/subtractRelayQuery.js

If field is requisite, keep it (ex: id, ...)

Running queries

!forceFetch && no cache case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.