Apollo Client, gql from graphql-tag or @apollo/client

Viewed 104

I have some queries with

import { gql } from '@apollo/client'; // from Apollo Client 3

and other with:

import gql from 'graphql-tag';

What's the difference between using one or another?

I had to change the one imported from apollo/client to graphql-tag because some problems with MockedProvider utility for testing from Apollo Client, but, why?

0 Answers
Related