Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Add methods to get matches count or existence #25

Open
3 tasks
GerkinDev opened this issue Aug 30, 2018 · 0 comments
Open
3 tasks

Add methods to get matches count or existence #25

GerkinDev opened this issue Aug 30, 2018 · 0 comments
Assignees

Comments

@GerkinDev
Copy link
Member

GerkinDev commented Aug 30, 2018

  • Add has method on adapter & model to check if at least entity matches the query. It could be polyfilled with a find method, returning true if an item is matched
  • Add count method on adapter & model to get the number of entities matching the query. It could be polyfilled with a findMany method, returning the count of matched items.
  • Add every method on adapter & model to check if every entities matches the query. It can be polyfilled by running a findMany with the query, and check if the number of matched entities is equal to the count of entities matched by a findMany without any criterion
@GerkinDev GerkinDev self-assigned this Aug 30, 2018
@GerkinDev GerkinDev changed the title Add adapter methods to get matches count or existence Add methods to get matches count or existence Aug 30, 2018
GerkinDev pushed a commit that referenced this issue Jan 17, 2019
GerkinDev pushed a commit that referenced this issue Jan 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant