The next thing we want is the implementation of .find_many()
.find_many() would work just like .find() except it instead of returning Option<Entity> it would return Option<Vec<Entity>>
We would have to establish some constraints/parameters around the size of the result set of .find_many()
Since we allocate space in the runtime for the result of .find() (and .get()) we would need to set some max size that can be allocated for .find_many() results
.find()
usage.find_many()
.find_many()
would work just like.find()
except it instead of returningOption<Entity>
it would returnOption<Vec<Entity>>
.find_many()
.find()
(and.get()
) we would need to set some max size that can be allocated for.find_many()
results