As of now users must specify the query field as "_id".
For example, a POST request to /launches/query with this in the body:
"query": { "id": "5eb87cdaffd86e000604b32b" },
does not return the specified document. Rather, it returns all the documents in the collection.
Switching the "id" to "_id" works.
Since the data returned to users shows "id", I think giving users the option to request data with "id" in the query field would be nice.
As of now users must specify the query field as "_id".
For example, a POST request to /launches/query with this in the body:
"query": { "id": "5eb87cdaffd86e000604b32b" },
does not return the specified document. Rather, it returns all the documents in the collection.Switching the "id" to "_id" works.
Since the data returned to users shows "id", I think giving users the option to request data with "id" in the query field would be nice.