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

Allow schema to express edge cardinality constraints #329

Open
obi1kenobi opened this issue May 29, 2019 · 0 comments
Open

Allow schema to express edge cardinality constraints #329

obi1kenobi opened this issue May 29, 2019 · 0 comments

Comments

@obi1kenobi
Copy link
Contributor

When generating a GraphQL schema, we should express edge cardinality constraints: if an edge is guaranteed to be unique, the type on the other side would be Foo, and if it is not unique, it could be [Foo] etc.

Some ideas as to how this could be done:
http://blog.liu.se/olafhartig/documents/graphql-schemas-for-property-graphs/
http://olafhartig.de/files/HartigHidders_GRADES2019_Preprint.pdf
https://github.com/LiUGraphQL/pgschema-to-apischema/wiki/Overview-of-the-Approach

Originally discussed in #284, and somewhat related to #274.

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

No branches or pull requests

1 participant