Created
October 16, 2020 18:54
-
-
Save stalniy/79b41be946eb3a9bf5448704ef8dbe84 to your computer and use it in GitHub Desktop.
MongoDB Query parser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { MongoQueryParser, $eq } from '@ucast/mongo'; | |
const parser = new MongoQueryParser({ $eq }); | |
const ast = parser.parse({ | |
authorId: 1 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment