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

Nested relations #5

Open
gpind opened this issue May 2, 2023 · 1 comment
Open

Nested relations #5

gpind opened this issue May 2, 2023 · 1 comment

Comments

@gpind
Copy link

gpind commented May 2, 2023

It's possible to express simple collections of foreign keys via :constraints {:foo #{:coll}}, but what about a collection of maps containing foreign keys? For example:

:documents [{:id "1", :type "foo"}
            {:id "2", :type "bar"}]

This is a special case of nested relations. I saw this specmonstah issue, whose closing comment suggests an approach that I don't think applies to datapotato. Does datapotato support nested relations?

@flyingmachine
Copy link
Contributor

Just wanted to let you know I've started looking into this

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

2 participants