Created
April 12, 2016 03:36
-
-
Save clayallsopp/ce62a143abd49c9426ec7f7f54fa161c 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
| export default Relay.createContainer(StarWarsApp, { | |
| fragments: { | |
| factions: () => Relay.QL` | |
| fragment on Faction @relay(plural: true) { | |
| id, | |
| factionId, | |
| name, | |
| ships(first: 10) { | |
| edges { | |
| node { | |
| id | |
| ${StarWarsShip.getFragment('ship')} | |
| } | |
| } | |
| } | |
| ${AddShipMutation.getFragment('faction')}, | |
| } | |
| `, | |
| }, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment