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

Recursive Schema support #7128

Open
shans opened this issue Apr 27, 2021 · 0 comments
Open

Recursive Schema support #7128

shans opened this issue Apr 27, 2021 · 0 comments

Comments

@shans
Copy link
Contributor

shans commented Apr 27, 2021

(from b/172182382)

Arcs types do not currently support recursion or co-recursion (e.g. https://en.wikipedia.org/wiki/Recursive_data_type).

There has been some interest in supporting co-recursion and (less) interest in recursion. e.g.

schema Employee
   name: Text
   manager: &Employee // Here's the recursion

Note: Inline recursion should still be an error (to avoid unbounded schema size), recursion needs to broken by an nullable/optional field or some kind of a list/collection field (otherwise these schemas cannot be constructed).

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

No branches or pull requests

1 participant