Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 852 Bytes

Readme.md

File metadata and controls

34 lines (20 loc) · 852 Bytes

Go Report Card License: MIT

mongoq

This is a simple library for converting query strings to mongo queries using Go's AST parser.

Installation

Checkout the repository and run:

go get github.com/qwerty-iot/mongoq

Usage

import "github.com/qwerty-iot/mongoq"

query, _ := mongoq.ParseQuery("name == Andrew && age >= 5")

fmt.Println("%v\n", query)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT