Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primitive values in an array #22

Closed
ghost opened this issue Apr 14, 2020 · 1 comment · Fixed by #23
Closed

Primitive values in an array #22

ghost opened this issue Apr 14, 2020 · 1 comment · Fixed by #23

Comments

@ghost
Copy link

ghost commented Apr 14, 2020

If you have a query that return an array of primitive values like [Float!]!, It still returns an empty object for each item in the array even after the fix in #21

To fix it I added this code to check if the node is neither an array or an object in both deflate and inflate functions

if (!Array.isArray(node) && !isObject(node)) { return node; }

@gajus
Copy link
Owner

gajus commented Jul 11, 2020

🎉 This issue has been resolved in version 2.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant