dotansimha / dotansimha/graphql-code-generator

graphql-modules-preset is not adding interface and union resolvers to Module.Resolver

Open
#7,123 4 comments 5 reactions 0 assignees View on GitHub
core
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

**Describe the bug**

When using graphql-module framework, the generated resolver is missing definition for interfaces and unions.
**To Reproduce**
Steps to reproduce the behavior:
Repo that reproduce the issue with readme for explanantion
https://github.com/laurent-lubino-roam/graphql-modules-codegen-resolver

**Expected behavior**

I would expect to be able to resolve types directly in the resolver using `resolveType` instead of `isTypeOf`

**Environment:**

- OS: macOS
- `@graphql-codegen/graphql-module-preset`:
- NodeJS: 16

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.