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

Support for ejson #9

Open
1 task done
FossilBlade opened this issue Jan 26, 2024 · 0 comments
Open
1 task done

Support for ejson #9

FossilBlade opened this issue Jan 26, 2024 · 0 comments

Comments

@FossilBlade
Copy link

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

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant