Closed swissspidy closed 7 years ago
All looks great thanks for finding this bug and submitting a fix :)
@du5rte Thanks for merging the PR! Would you mind publishing an update on npm as well? See https://docs.npmjs.com/getting-started/publishing-npm-packages#updating-the-package.
@swissspidy done! thanks for the link, I hadn't done this in a while ...
I'm working on a small app using GraphQL and MongoDB. While testing this handy package I noticed that it doesn't work well together with union types. I guess it's because of the additional nesting (
... on AType
,... on BType
).This PR addresses this and adds some tests for it as well. The actual fix is just 1 changed line in
infoToProjection()
.It would be great if you could incorporate this and publish a new version on npm.
Thanks!