I am following this guide to configuration type-safe Apollo GraphQL on my react app
However, the code below won’t be detected as GraphQL in vscode
import { gql } from "../gql/generated/gql";
const GET_BOOK = gql(/* GraphQL */ `
query getBook {
book
}
`);
If I use the default function, it works
import { gql } from "@apollo/client";
const GET_BOOK = gql`
query getBook {
book
}
`;
Have I missed anything?