Skip to content
New issue

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

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

Already on GitHub? # to your account

1456 Lookup expressions filtered by type #1778

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michaelhkay
Copy link
Contributor

Fix #1456

Allows selection of records by type within a JSON tree, for example $json ?? ~record(first, last) ? last.

I'm aware that the use of the tilde here is controversial but I think this kind of query is going to be very common; it needs something simple and I think people will get used to it. No-one has suggested anything that is obviously better, and I propose to also use ~ in other similar contexts, for example type patterns in XSLT, which will increase familiarity.

I suggest reading ~ as "of type".

@michaelhkay michaelhkay added XPath An issue related to XPath XQuery An issue related to XQuery Feature A change that introduces a new feature Tests Needed Tests need to be written or merged labels Feb 7, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Feature A change that introduces a new feature Tests Needed Tests need to be written or merged XPath An issue related to XPath XQuery An issue related to XQuery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filtering by type in lookup expressions
1 participant