Setup of typescript-react-apollo and typed-document-node #5325
Answered
by
deckchairlabs
deckchairlabs
asked this question in
Q&A
-
Hello! Just trying to use the document output generated by generates:
app/src/generated/operations.ts:
plugins:
- "typescript"
- "typescript-operations"
- "typed-document-node"
config:
flattenGeneratedTypes: true
preResolveTypes: true
app/src/generated/graphql.ts:
config:
documentMode: "external"
importDocumentNodeExternallyFrom: "./operations"
importOperationTypesFrom: "Operations"
plugins:
- "typescript-react-apollo" export function useBootstrapQuery(
baseOptions?: Apollo.QueryHookOptions<
Operations.BootstrapQuery,
Operations.BootstrapQueryVariables
>
) {
return Apollo.useQuery<
Operations.BootstrapQuery,
Operations.BootstrapQueryVariables
>(Operations.Bootstrap, baseOptions)
} The problem I'm having is that the Is there a configuration option I'm missing? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
deckchairlabs
Dec 28, 2020
Replies: 1 comment
-
Actually, have just seen #5201. Since the hook output doesn't really add much. I'll close this! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
deckchairlabs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually, have just seen #5201. Since the hook output doesn't really add much. I'll close this!