Skip to content

Add the ability to CALL other queries #411

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

Merged
merged 1 commit into from
Jun 17, 2021
Merged

Add the ability to CALL other queries #411

merged 1 commit into from
Jun 17, 2021

Conversation

cskardon
Copy link
Member

So you can now do:

MATCH (x)
CALL { MATCH (y) RETURN COUNT(y) AS c }
RETURN x,c

But using functions, so, you can do:

var query = new CypherFluentQuery(client)
    .Match("(n)")
    .Return(n => new {c = n.Count()});

var callQuery = new CypherFluentQuery(client)
    .Call(() => query)
    .Return(c => c.As<long>());

@cskardon cskardon merged commit cff743f into DotNet4Neo4j:master Jun 17, 2021
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