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

Fix 1073 connectOrCreate schema #1110

Merged
merged 5 commits into from
Mar 15, 2022
Merged

Conversation

angrykoala
Copy link
Member

@angrykoala angrykoala commented Mar 10, 2022

Description

This PR fixes #1073 by properly marking the required fields in the connectOrCreate -> onCreateInput

Closes #1073

darrellwarde
darrellwarde previously approved these changes Mar 10, 2022
Copy link
Contributor

@darrellwarde darrellwarde left a comment

Choose a reason for hiding this comment

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

We should also check that if an autogenerated ID field is in the where, does the ID get overridden in ON CREATE with an autogenerated value.

@angrykoala angrykoala requested a review from darrellwarde March 14, 2022 10:35
@angrykoala
Copy link
Member Author

Tests updated, this pr does not cover newly found bug #1124
A new skipped test has been added for this bug

Copy link
Contributor

@darrellwarde darrellwarde left a comment

Choose a reason for hiding this comment

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

Broadly speaking, this looks good! I have a suggestion - should we make the onCreate input field non-nullable? That way, despite the where, we will always force our users to specify what the fields should be on creation, which will make it easier to change the implementation under the hood.

@angrykoala
Copy link
Member Author

🤔 @darrellwarde onCreate is already required, or am I missing something?

@angrykoala angrykoala merged commit c978110 into neo4j:master Mar 15, 2022
@angrykoala angrykoala deleted the fix/1073 branch March 15, 2022 10:15
@darrellwarde
Copy link
Contributor

🤔 @darrellwarde onCreate is already required, or am I missing something?

I might be losing my mind. 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants