typed-document-node requires documentNode (doesn't support gql tag) - why? #4512
-
I'm wondering why typed-document-node requires This looks to be working (written manually) import { gql } from 'graphql-tag';
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export const SessionDocument: DocumentNode<
SessionQuery,
SessionQueryVariables
> = gql`
query Session {
// omitted
}
`; |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@CarsonF You are right, no reason to force that. That's actually a bug, and not intentional. I fixed it in: #4518 , you can find an alpha in the PR comments, and stable will be available later today. |
Beta Was this translation helpful? Give feedback.
-
สามรถได้เลยไหม |
Beta Was this translation helpful? Give feedback.
@CarsonF You are right, no reason to force that. That's actually a bug, and not intentional.
I fixed it in: #4518 , you can find an alpha in the PR comments, and stable will be available later today.