Functions
List of all the functions available in a depot
Values
The values
method return the collection as an array
Add
Create the record into the collection with a fresh uuid
.
Save
Update the records based on their uuid
Delete
Remove records based on their uuid
.
It accepts as well the plain uuid
of the records instead of the objects.
Empty
Remove all the records of a collection.
Find
Returns the first object that matches the given filter.
First
Returns the first object.
Last
Returns the latest added object.
Size
Returns the length of the collection.
Last updated
Was this helpful?