Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const groupQuery = gql`
- query Group {
- group {
- _id
- name
- }
- }
- `;
- export default graphql(groupQuery, {
- props: ({ data }) => ({ ...data }),
- })(GroupPage);
- Query: {
- groups() {
- return Groups.find().fetch();
- },
- group() {
- return Groups.findOne('HARD-CODED-ID');
- },
- }
Add Comment
Please, Sign In to add comment