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

[FEATURE]: DQL Not Null Constraint (Existential) #8409

Open
jdgamble555 opened this issue Nov 2, 2022 · 2 comments
Open

[FEATURE]: DQL Not Null Constraint (Existential) #8409

jdgamble555 opened this issue Nov 2, 2022 · 2 comments
Labels
area/dql-graphql-interop DQL interoperability with GraphQL community Issue or PR created by the community. kind/feature Something completely new we should consider.

Comments

@jdgamble555
Copy link

Have you tried Dgraph before this proposal? and did not find anything similar?

No response

What you wanted to do.

Enforce that a value exists in a node in DQL.

Perhaps on the DQL schema:

type Person {
  friend @notnull
  ...
}

I should not be able to alter the schema where non null values exist.

What you actually did.

You can do this now in GraphQL with the ! in front of the type. See here.

We need to be able to do this in DQL.

Why wasn't it great, with examples.

You can add data in DQL, ignoring the GraphQL constraint, causing data integrity issues. It should be IMPOSSIBLE to have null data if this constraint is actie.

Additional information.

How neo4j handles it.
How sql handles it.

@jdgamble555 jdgamble555 added the kind/feature Something completely new we should consider. label Nov 2, 2022
@rderbier rderbier moved this to 📋 Backlog in Feature Requests - PM RoadMap Nov 16, 2022
@rderbier rderbier added community Issue or PR created by the community. area/dql-graphql-interop DQL interoperability with GraphQL labels Dec 15, 2022
@rderbier rderbier moved this from 📋 TRIAGE to NOW in Feature Requests - PM RoadMap Jan 4, 2023
Copy link

This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

@github-actions github-actions bot added the Stale label Jul 31, 2024
@mrwunderbar666
Copy link

bump

@github-actions github-actions bot removed the Stale label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dql-graphql-interop DQL interoperability with GraphQL community Issue or PR created by the community. kind/feature Something completely new we should consider.
Development

No branches or pull requests

3 participants