class method SpahQL.assert
SpahQL.assert(query, data) → Boolean
- query (String): A valid SpahQL query. This may not be an assertion query.
- rootData (Object, Array): The root data context being queried.
- scopeData (Object, Array): The actual data context being queried, which should be a sub-context of the rootData.
- scopePath (String): Optional: If the data being queried is a member item of a larger queryable data construct, providing the path for the queryable object will ensure that results are generated with an accurate path attribute.
Executes an assertion query and returns the appropriate boolean result.