Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add apteryx_query_full #375

Closed
wants to merge 4 commits into from
Closed

Add apteryx_query_full #375

wants to merge 4 commits into from

Conversation

blairsteven
Copy link
Contributor

No description provided.

Add a new apteryx query method that allows leaf nodes to be defined as
either data to fetch (null value leaf nodes) or data to match
(non-null).

The returned tree will have wildcard nodes expanded to each subtree that
matches the filters, if at least one subtree matches.

See tests named "query filter" for examples.
Ensure we only fetch information from the database / providers when
required. If a filter value is also a provided value we may need to call
it for each list entry at that level, but no more often than that.

Provided values that are to be filled in (specified with a null data
leaf node) will only be fetched when the filter for that list node
matches.
Check we can look for pets with leather balls, and pets with leather
toys AND a ball. This second test is a bit more complicated as it
requires duplicate toys/* nodes - one for ball and one for any toy with
the leather material.
@blairsteven blairsteven deleted the apteryx_query_full branch October 25, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant