Example queries (click to try)
Get all jobs that are currently running Get all Test Drivers in the database Get all fcc Al lattice constants and the Model that ran them
Longest running Test name and time Get a 10 line tail of the logs Get the lowest energy crystal structure for each Model using Al
Things you want true, as a dictionary of key value pairs, e.g. {"type": "td"} makes sure that all objects are test drivers.
Things you want back, as a dictionary of booleans, e.g. {"type":1, "path":1} returns just type and path (and '_id')
A JavaScript function that operates to on the map portion of map-reduce. For more information, check the docs
A JavaScript function that operates to on the reduce portion of map-reduce. For more information, check the docs
Database you want, valid options are [obj, data, job, log, agent]
Things you want sorted on, as a string, or a list with direction, e.g. "kimcode" sorts on kimcode, [["kimcode", -1]] gives reverse kimcode
How many you want, an integer, how it stops, leave empty for all
How many you want to skip, relevant if ordered
Things you want distinct, just a key, e.g. "type" would return distinct type fields. Note, this doesn't play well with others.
Reduce result to an array where the columns are ordered by this list i.e. ["meta.kimcode", "crystal-structure.a.source-value"]. Implies flatten.
Whether or not to flatten the keys in the dictionary
Return full database history. By default, only returns latest data
Return only count of number results created by query