Packages

graphql-tag

2.12.7 · 17 Jun 2026MIT22M / weekRepositoryHomepagenpmAtom feed

Your version

0.1.17

18 Nov 2016Where it was published

In short

1 new

Release note

  • Allow embedding fragments inside document strings, as in

import gql from "graphql-tag";

const fragment = gql`
  fragment Foo on Bar {
    field
  }
`;

const query = gql`
  {
    ...Foo
  }
  ${Foo}
`;

See also dev.apollodata.com/react/fragments.html

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.