coffee-relay
Version:
Handle Relay.QL fragments in CoffeeScript.
22 lines (21 loc) • 540 B
text/coffeescript
Relay = require('react-relay')
module.exports = Relay.createContainer(App,
fragments:
game: ->
Relay.QL`
fragment on Game {
turnsRemaining,
hidingSpots(first: 9) {
edges {
node {
hasBeenChecked,
hasTreasure,
id,
${CheckHidingSpotForTreasureMutation.getFragment('hidingSpot')},
}
}
},
${CheckHidingSpotForTreasureMutation.getFragment('game')},
}
`
)