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 support for label expressions on #251

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Conversation

angrykoala
Copy link
Member

Add support for label expressions on hasLabel:

const query = new Cypher.Match(node).where(node.hasLabel(Cypher.labelExpr.or("Movie", "Film")));
MATCH (this0:Movie)
WHERE this0:(Movie|Film)

@angrykoala angrykoala requested a review from mjfwebb November 30, 2023 12:28
@angrykoala angrykoala linked an issue Nov 30, 2023 that may be closed by this pull request
Copy link

changeset-bot bot commented Nov 30, 2023

🦋 Changeset detected

Latest commit: e7cdd0e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@neo4j/cypher-builder Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@angrykoala angrykoala force-pushed the 248-use-logical-for-labels branch from 86efb1c to 80e1bca Compare November 30, 2023 12:33
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@angrykoala angrykoala merged commit 07dc577 into main Nov 30, 2023
@angrykoala angrykoala deleted the 248-use-logical-for-labels branch November 30, 2023 13:44
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.

Use logical "&" for label matching in patterns
2 participants