Retrieving data - JGdijk/ords GitHub Wiki
To retrieve the models you can use one of the following functions:
- find(id) // requires a single id
- get([id1, id2]) // optional the desired id's
- getIds() // retrieves all the ids of the related data
- first([id1, id2]) // optional the desired id's
- count() //counts the related data
find() and first() will return a single object, get() will always return an array.
All of these functions will return an observable that will push a new result if the concerning data is altered.
If you want a static result you can use its static variant:
taskRds.findStatic(1); // will return a static result instead of an observable