{"repo":"ajclopez/mgs","free":true,"listed":false,"github":"https://github.com/ajclopez/mgs","clone":"git clone https://github.com/ajclopez/mgs.git","description":"Convert URL query parameters to MongoDB queries","language":"Go","stars":13,"topics":["golang","golang-library","mongodb","mongodb-query-language","query","query-builder","query-language","url-parser"],"license":"MIT","category":"databases-storage","readme_excerpt":"[![MIT License][license-shield]][license-url] Mongo Golang Search Mongo Golang Search provides a query language to a MongoDB database. Explore the docs Report Bug · Request Feature --- Mongo Golang Search (mgs) Content index - What is this? - Getting Started - Installation - Usage - Supported features - Filtering - Pagination - Sorting - Projection - Advanced queries - Available options - Customize limit value - Specify casting per param keys - Contributing - License What is this? Mongo Golang Search provides a simple query language to perform advanced searches for your collections in MongoDB . You could also use Mongo Golang Search to searching, sorting, pagination and combining logical operators. Getting Started Installation The recommended way to get started using the Mongo Golang Search is by using Go modules to install the dependency in your project. This can be done either by importing packages from github.com/ajclopez/mgs and having the build step install the dependency or by explicitly running For version 2.x.x , you can import packages from: For version 1.x.x , you can import packages from: Usage To get started with mgs version 2 or later , implement a TypeConverter by creating a struct with a Convert method. This allows you to define how to convert primitive values (like ObjectIDs, etc.) from strings. 🔧 New Usage (From v2+) Then create an instance of QueryHandler : Finally use a mgs.MongoGoSearch function: Migration See migration guide for details on upgrading from","default_branch":null,"files":null,"tree":[],"storefront":"/r/ajclopez","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ajclopez/mgs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}