Closed eddeee888 closed 3 months ago
Latest commit: 507b939a032ada2dcfdecbf5eb6df1ab453a3fbe
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
/release-snapshot
✅ Successfully published package/s with tag pr242-run423-1
!
We were previously only pick the properties of a mapper interface declaration.
However, we need to recursively pick all the properties to have the right fields, otherwise we'd miss the properties of the base interfaces.
For example:
Then, the collected node properties would look like this:
CatMapper
{ scratches: boolean }
{ id: string; fullName: string; age: number; scratches: boolean}
DogMapper
{ likesToDig: boolean }
{ id: string; fullName: string; age: number; likesToDig: boolean}
Detecting mapper properties correctly allows downstream field resolver checkers and generation to work correctly. Issue: https://github.com/eddeee888/graphql-code-generator-plugins/issues/223