apollo
apollo copied to clipboard
fix: handle null serialization
๐ Linked issue
Resolves #636
โ Type of change
- [ ] ๐ Documentation (updates to the documentation or readme)
- [x] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
This PR adds condition check during serialization, to avoid serialize null value as object, as typeof null === 'object'.
It fix serialization issue for @nuxtjs/apollo config provided in nuxt.config.ts, where it cannot handle serialization for null value, which is accepted value for client.authType.
Deploy Preview for apollo-module canceled.
| Name | Link |
|---|---|
| Latest commit | 9898989be4a368599e027420e7069b63d16d4e17 |
| Latest deploy log | https://app.netlify.com/projects/apollo-module/deploys/6830cb09490ea50008374bd6 |