Json Query
Due to unavailability of arrow functions and we needed better form to serialize queries in text form, we created JSON format to represent
query that can be used throughout in Atoms.js and also communicate easily with remote services.
AtomQuery class
toArray() : returns an array
Returns an array after executing query.
where (jsonQuery)
Applies given filter on internal array.
firstOrDefault
Returns first object to satisfy given condition on internal array.
any(jsonQuery) : returns true/false
Returns true if any object satisfies given condition
Examples
Click here for jsonQuery examples