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

Custom Cypher and Union return type - preserve array return #318

Merged

Conversation

darrellwarde
Copy link
Contributor

@darrellwarde darrellwarde commented Jul 13, 2021

Description

The recent changes to custom Cypher made it so that expectMultipleReturns of apoc.cypher.runFirstColumn is only set to true if a node match was found for the return type. Union return types did not meet this requirement, so expectMultipleReturns was set to false and only 1 record would ever be returned.

It should be clarified that Union returns for custom Cypher will not have relationships automatically projected, and this will only change when we work on querying Unions/Interfaces from the root Query type.

Issue

#315

Checklist

The following requirements should have been met (depending on the changes in the branch):

  • Documentation has been updated
  • TCK tests have been updated
  • Integration tests have been updated
  • Example applications have been updated
  • New files have copyright header
  • CLA (https://neo4j.com/developer/cla/) has been signed

@darrellwarde darrellwarde linked an issue Jul 13, 2021 that may be closed by this pull request
Copy link
Contributor

@danstarns danstarns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix.

@darrellwarde darrellwarde merged commit 639eaa2 into neo4j:master Jul 13, 2021
@darrellwarde darrellwarde deleted the bugfix/315-custom-cypher-returns branch May 9, 2022 16:30
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.1.0 breaks custom cypher.
2 participants