- features
-
added
grasshopper.utilities.queryBuilder
to build queries for use on collections-
example usage:
var query = grasshopper.utilities.queryBuilder .create() .inTypes(['ab', 'cd']) .distinct('fields.firstname') .build(); grasshopper.request(token) .content .query(query) .then(
-
methods available:
create()
- gives you a new instance of a query that can be customized with other callsbuild()
- builds the query instance into a query string - call this lastdistinct(field)
equals(key, value)
inNodes(nodeIdsArray)
inTypes(typeIdsArray)
-
-