Skip to content

Instantly share code, notes, and snippets.

@sogko
Last active October 14, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sogko/dbcc9a01a8c62765bd32 to your computer and use it in GitHub Desktop.
Save sogko/dbcc9a01a8c62765bd32 to your computer and use it in GitHub Desktop.
hello-world-relay-part-1 - RelayJS App
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