Last active
May 1, 2017 18:36
-
-
Save brianlovin/658b53219b49e442ab8ba8a3a26c7249 to your computer and use it in GitHub Desktop.
Revisions
-
brianlovin revised this gist
May 1, 2017 . 1 changed file with 0 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,14 +2,6 @@ import { gql } from 'react-apollo'; import { userFragments } from './user' export const frequencyFragments = { frequencySubscribers: gql` fragment frequencySubscribers on Frequency { subscriberConnection { -
brianlovin created this gist
May 1, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ import { gql } from 'react-apollo'; import { userFragments } from './user' export const frequencyFragments = { frequencyInfo: gql` fragment frequencyInfo on Frequency { id name slug description } `, frequencySubscribers: gql` fragment frequencySubscribers on Frequency { subscriberConnection { pageInfo { hasNextPage hasPreviousPage } edges { node { ...userInfo } } } } ${userFragments.userInfo} ` } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import { gql } from 'react-apollo'; export const userFragments = { userInfo: gql` fragment userInfo on User { uid photoURL displayName username } ` }