DBProvider.getFirst()method
getFirst(collection: Collection<string, II, TT>, query: Query<Item<II, TT>>): Promise<OptionalItem<II, TT>>
Get the first item matching a query, or undefined if there are none.
getFirst(collection: Collection<string, II, TT>, query: Query<Item<II, TT>>): Promise<OptionalItem<II, TT>>
Get the first item matching a query, or undefined if there are none.