Skip to content

Ability to configure the entityManagerPath for resolver code generation? #197

Answered by minox86
Atlinx asked this question in Q&A
Discussion options

You must be logged in to vote

Following this documentation you can configure a context in generated resolvers.

  • context: an optional object to configure the context of generated resolvers.
    • type: the type of the context object in the generated GraphQL resolvers
    • path: path to the Entity Manager instance inside the context object of generated GraphQL resolvers

Your configuration should we something like this:
`
schema: src/**.typedefs.ts
outputDir: src/generated
generateGraphQLOperations:
context:
type: your_context_type
path: test_path

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Atlinx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants