SoftInstigate / restheart

Rapid API Development with MongoDB
https://restheart.org
GNU Affero General Public License v3.0
807 stars 171 forks source link

Reserved field _uptime was filtered out from the request? #352

Closed StevenJSun closed 5 years ago

StevenJSun commented 5 years ago

when we write data to mongodb, the write request returns the following response: '_warnings': ['Reserved field _uptime was filtered out from the request']

Is there a way to config a whitelist to let "_uptime" pass?

ujibang commented 5 years ago

Hi @StevenJSun ,

unfortunately RESTHeart filters out all fields whose name starts with _

I think we can relax this constraint since actual reserved fields are few (e.g. _etag and _links).

I will add this to our backlog.

StevenJSun commented 5 years ago

@ujibang thanks, we will use another solution to work around.