Last active
October 14, 2015 14:21
-
-
Save sogko/dbcc9a01a8c62765bd32 to your computer and use it in GitHub Desktop.
hello-world-relay-part-1 - RelayJS App
This file contains 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
import Relay from 'react-relay'; | |
// Your Relay routes | |
// Define a root GraphQL query into which your | |
// containers' query fragments will be composed. | |
export default class extends Relay.Route { | |
static queries = { | |
latestPost: () => Relay.QL` | |
query { | |
latestPost | |
} | |
`, | |
}; | |
static routeName = 'AppHomeRoute'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment