Skip to content

Conversation

@angrykoala
Copy link
Member

  • Remove additions section in migration guide
  • Add new deprecations that have been introduced in version 6

Comment on lines 561 to 567
[source, graphql, indent=0]
----
type Movie implements Production @node {
title: String! @unique
actors: [Actor!]! @relationship(type: "ACTED_IN", direction: IN, properties: "ActedIn")
}
----
Copy link
Contributor

Choose a reason for hiding this comment

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

what can a user do to achieve something similar?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we really provide any alternative to this at the moment. The issue with @unique is that it isn't really supported by neo4j itself, so it is very unreliable

Copy link
Contributor

Choose a reason for hiding this comment

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

could/should we communicate the fact that it was unreliable? (unreliable how? no way of ensuring uniqueness?)

Copy link
Member Author

Choose a reason for hiding this comment

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

There were some cases in which the uniqueness could not be enforced, leading to data that doesn't match the schema. I'm not sure how to properly communicate this

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we usually write motivations for deprecations?

Perhaps we can write something like this:

The @unique directive has been removed as it could not always be reliably enforced, potentially leading to data inconsistencies that did not match the schema.


=== Deprecated `*aggregate` fields

Top level and nested `*Aggregate` fields have been deprecated in favor of `aggregate` fields inside connections:
Copy link
Contributor

@rsill-neo4j rsill-neo4j Mar 18, 2025

Choose a reason for hiding this comment

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

Suggested change
Top level and nested `*Aggregate` fields have been deprecated in favor of `aggregate` fields inside connections:
Top level and nested `*Aggregate` fields have been deprecated in favor of `aggregate` fields inside connections:

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this one was correct, for instance moviesAggregate has the casing as Aggregate

Copy link
Contributor

@rsill-neo4j rsill-neo4j Mar 19, 2025

Choose a reason for hiding this comment

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

in the heading (line 630) it was lower case, likewise in the text following the code listing (line 664).
let's make it consistent then :)

Copy link
Contributor

Choose a reason for hiding this comment

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

The mixed casing seems to be important in this. *Aggregate (note the *) for example moviesAggregate, has been removed, and replaced with a aggregate.

Copy link
Contributor

Choose a reason for hiding this comment

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

so upper case for all "*" ?

@angrykoala angrykoala requested a review from rsill-neo4j March 18, 2025 15:53
@angrykoala angrykoala requested a review from rsill-neo4j March 19, 2025 09:51
@angrykoala angrykoala requested a review from rsill-neo4j March 19, 2025 11:51
Copy link
Contributor

@rsill-neo4j rsill-neo4j left a comment

Choose a reason for hiding this comment

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

last suggestion + approval

@angrykoala angrykoala merged commit b929bc9 into 6.x Mar 19, 2025
4 checks passed
@neo-technology-commit-status-publisher
Copy link
Collaborator

neo-technology-commit-status-publisher commented Mar 19, 2025

Thanks for the documentation updates.

The preview documentation has now been torn down - reopening this PR will republish it.

@angrykoala angrykoala deleted the update-migration-guide-6 branch March 19, 2025 13:15
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.

5 participants