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 docs for using exclamation mark short hand in types #764

Merged

Conversation

gem-neo4j
Copy link
Contributor

IS :: INTEGER NOT NULL

now equivalent to

IS :: INTEGER!

@neo-technology-commit-status-publisher
Copy link
Collaborator

Thanks for the documentation updates.

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

Copy link
Collaborator

@JPryce-Aklundh JPryce-Aklundh left a comment

Choose a reason for hiding this comment

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

lgtm - just one small comment.

@@ -105,6 +105,7 @@ However, not all types can be used in all places.
|===

All Cypher types contain the `null` value. To make them not nullable, `NOT NULL` can be appended to the end of the type (e.g. `BOOLEAN NOT NULL`, `LIST<FLOAT NOT NULL>`).
A shorthand syntax equivalent, introduced in version 5.14, for `NOT NULL` is to use an exclamation mark `!` (e.g. `INTEGER!`, `LIST<STRING!>`).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
A shorthand syntax equivalent, introduced in version 5.14, for `NOT NULL` is to use an exclamation mark `!` (e.g. `INTEGER!`, `LIST<STRING!>`).
A shorthand syntax equivalent, introduced in Neo4j 5.14, for `NOT NULL` is to use an exclamation mark `!` (e.g. `INTEGER!`, `LIST<STRING!>`).

@gem-neo4j gem-neo4j force-pushed the dev_allow_shorthand_for_not_null_types branch from 7361030 to e77fac4 Compare October 20, 2023 06:41
@JPryce-Aklundh JPryce-Aklundh merged commit 9519ef4 into neo4j:dev Nov 21, 2023
2 checks passed
AlexicaWright pushed a commit to AlexicaWright/docs-cypher that referenced this pull request Nov 24, 2023
IS :: INTEGER NOT NULL 

now equivalent to

IS :: INTEGER!

---------

Co-authored-by: Jens Pryce-Åklundh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants