.get()
Returns the entries that match the provided filter. Returns all the entries from the collection if no filter is provided.
get(filter)
// Note: Users is a collection.
Users.create({ id: 1, name: '5antos' }); // { id: 1, name: '5antos' }
Users.get(); // [{ id: 1, name: '5antos' }]
Users.get(u => u.id === 1); // { id: 1, name: '5antos' }
Users.get(u => u.name === 'Unnamed user'); // nullLast updated