graphql-python / graphql-python/graphene
Numpy NaN handling
Open
✨ enhancement
🙋 help wanted
- Dominant language
- Python
- Stars
- 8.2k
- Forks
- 818
- PR merge metrics
- No merged PRs in 30d
Description
Currently when a `[Float]` type resolves to `np.array([1, np.nan])` the generated payload is `[1, NaN]` which is not json-compilant (rather than `null`) without any warning. A custom scalar can do the job however as numpy is so widely used, maybe this should be supported out of the box?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.