[SERVER-84868] Extend mql --test to be able to accept literal data and literal find commands Created: 13/Jun/18  Updated: 12/Jan/24  Resolved: 18/Jun/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: David Storch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Query 2018-06-18, Query 2018-07-02
Participants:

 Description   

Test mode should allow you to do something like this:

[
    {
        "find": {"find": "collection", "match": {"a": {"$gt": 0}}},
        "data": {"namespace": "collection", "data": [{"a": -1}, {"a": 3}]},
        "expected": [{"a" 3}]
    }
]



 Comments   
Comment by David Storch [ 18/Jun/18 ]

Implemented in https://github.com/10gen/mql-model/commit/d997667de88c435f99f7256ad05c68e4955bd881.

Comment by David Storch [ 14/Jun/18 ]

Code review url: https://mongodbcr.appspot.com/211160002/

Generated at Thu Feb 08 06:56:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.