Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 895 Bytes

0.13.0

  • 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 calls
        • build() - builds the query instance into a query string - call this last
        • distinct(field)
        • equals(key, value)
        • inNodes(nodeIdsArray)
        • inTypes(typeIdsArray)