Skip to content

Support for ejson #9

@FossilBlade

Description

@FossilBlade

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions