Search within your collections | HumongouS.io Documentation
Search within your collections
Being able to search quickly and effectively a database is fundamental to every successful business, that's why we've invested a lot in building our Collection Search Engine.
Search queries on HumongouS.io can be written using MongoDB Query Language or our Automatic Query Builder. In the section below, we'll give a few common examples using both.

Automatic Query Builder

The Automatic Query Builder uses a complex algorithm to infer queries based on the keywords that you type in the search bar.
This means that just typing bart@simpson.com in the search bar will return back the corresponding user matching that email address. Similarly, typing a8641ae2e2181300d4790e3b will return any field that has this ObjectID as value.

MongoDB query language

When written MongoDB queries, you have access to ObjectId and Date. On top of that, we also provide a few date helpers that you can use at any time :
$today, $yesterday, $tomorrow, $lastWeek, $lastMonth, $lastYear,$nextWeek, $nextMonth and $nextYear.

Examples

Simple query
{ delivered: true }
Accessing a nested field
{ "address.city": "San Fransisco" }
Using ObjectID
{ _id: ObjectID("578cdbc8d632efdd0037c099") }
Using the Date object
{ created_at: { $lte: Date("2019-8-15") } }
Using custom dates
{ delivered_date: { $lte: $lastWeek } }
Using the $gte (Greater or equal) operation
{ delivered: true, total: { $gte: 30 } }
Using the $and operator
{
    $and : [
        { $or : [ { price : 0.99 }, { price : 1.99 } ] },
        { $or : [ { sale : true }, { qty : { $lt : 20 } } ] }
    ]
}
Using the $or operator
{ $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] }
Using the $exists operator. Matches documents that contain field, regardless of value
{ qty: { $exists: true } }
Using the $in operator. Matches documents where value is in specified array
{ books: { $in: ["fiction", "history"] } }