Class

Query

Query()

Query helper utility class

Note: This class contains static members only!

Constructor

# new Query()

View Source utils/query.js, line 6

Methods

# static buildQueryString(query)

Builds a query string for use with a server request.

Parses a query such that the backend understands it

Parameters:
Name Type Description
query object

View Source utils/query.js, line 76

# static copy(query)

Creates a deep copy from a query.

Parameters:
Name Type Description
query object

View Source utils/query.js, line 24

# static isEqual(query1, query2) → {boolean}

checks if two querys are equal

Parameters:
Name Type Description
query1 object
query2 object

View Source utils/query.js, line 15

boolean

# static merge(…queries)

Merges multiple queries together to one single query (deep copy included).

Please note that the value on the last parameter has the highest precedence.

Parameters:
Name Type Attributes Description
queries * <repeatable>

View Source utils/query.js, line 35