graphql-tag
Advanced tools
Changelog
v1.1.0
We now emit warnings if you use the same name for two different fragments.
You can disable this with:
import { disableFragmentWarnings } from 'graphql-tag';
disableFragmentWarnings();
Changelog
v0.1.17
import gql from 'graphql-tag';
const fragment = gql`
fragment Foo on Bar {
field
}
`;
const query = gql`
{
...Foo
}
${Foo}
`;
See also http://dev.apollodata.com/react/fragments.html