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