Skip to content

Instantly share code, notes, and snippets.

@dbayarchyk
Last active September 18, 2019 14:00
Show Gist options
  • Save dbayarchyk/2cae964266390feec9fedad1c8c9921d to your computer and use it in GitHub Desktop.
Save dbayarchyk/2cae964266390feec9fedad1c8c9921d to your computer and use it in GitHub Desktop.
GraphQL fragment-based approach to building your components - UserInfo/fragments.js
import gql from 'graphql-tag';
export const user = gql`
fragment UserInfo_user on User {
username
avatar
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment