Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 895 Bytes

0.13.0_2014-06-24.md

File metadata and controls

27 lines (22 loc) · 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)