mongodb-data-api
mongodb-data-api copied to clipboard
Support for ejson
Clear and concise description of the problem
Mongo Data API accepts request in json and ejson(extended json). The benefit of ejon is that it preserves the data time eg. Date filed. With json date is converted to iso string but with ejon date will be stored as Date type.
Suggested solution
A config property to choose between json and ejson. Using this value to set the header in the request:
'Content-Type': 'application/<CONFIG_VALUE>'
Alternative
No response
Additional context
No response
Validations
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.