Skip to content

Releases: rubengrill/apollo-typed-documents

v2.0.1

01 Nov 09:02
Compare
Choose a tag to compare
  • Allow reserved keyword arguments (#57)
    Thank you for your contribution @ccblaisdell
  • Update dev dependencies (#58)

v2.0.0

22 Dec 18:51
Compare
Choose a tag to compare
  • Upgrade to @apollo/client v3 (#8)

v1.1.0

22 Dec 18:29
Compare
Choose a tag to compare
  • Support fragments in different files (#22)
  • Support config options modulePathPrefix, relativeToCwd and prefix for plugin codegenTypedDocuments (#13)
    Thank you for your contribution @dleavitt
  • Add useLazyQuery hook (#21)
    Thank you for your contribution @idevelop

v1.0.0

22 Dec 18:09
Compare
Choose a tag to compare
  • Improve docs
  • Add create-react-app examples
  • Support GraphQL interfaces
  • Support GraphQL union types
  • Support fragments and inline fragments
  • Support __typename selection
  • Support alias in selections
  • Support custom scalar types
  • Support errors
  • Add typed version of useSubscription

Backward incompatible change:

To support errors, the argument data changed to result which can contain both data and errors:

// old
apolloMock(documentNode, variables, { authors: [] });

// new
apolloMock(documentNode, variables, { data: { authors: [] } });