Closed craigbeck closed 3 months ago
Found a pattern of using filter with a null filter function in production code that was used to get an array of collection values e.g.
filter
null
const users = model.filter('users', null).get() || [];
This pattern is unintuitive and highlighted missing functionality to get the collection values.
getValues returns an array of docs, and ensures an empty array when no values at path.
getValues
Found a pattern of using
filter
with anull
filter function in production code that was used to get an array of collection values e.g.This pattern is unintuitive and highlighted missing functionality to get the collection values.
getValues
returns an array of docs, and ensures an empty array when no values at path.