Guest User

Untitled

a guest
Jan 19th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. const groupQuery = gql`
  2. query Group {
  3. group {
  4. _id
  5. name
  6. }
  7. }
  8. `;
  9.  
  10. export default graphql(groupQuery, {
  11. props: ({ data }) => ({ ...data }),
  12. })(GroupPage);
  13.  
  14. Query: {
  15. groups() {
  16. return Groups.find().fetch();
  17. },
  18. group() {
  19. return Groups.findOne('HARD-CODED-ID');
  20. },
  21. }
Add Comment
Please, Sign In to add comment