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

Support for relationships from nested action fields #8015

Open
sordina opened this issue Jan 11, 2022 · 0 comments
Open

Support for relationships from nested action fields #8015

sordina opened this issue Jan 11, 2022 · 0 comments
Labels
c/actions Related to actions c/server Related to server k/enhancement New feature or improve an existing feature team-blaam/handover

Comments

@sordina
Copy link
Contributor

sordina commented Jan 11, 2022

Is your proposal related to a problem?

With the addition of support for nested types in actions: (#4796) the next logical functionality is to add support for joining across relationships from within nested fields.

Describe the solution you'd like

If a relationship is established from an associated action type that should be able to be traversed via field selection as with a normal GraphQL query. This would include fields within objects, arrays to arbitrary levels of nesting.

Drawbacks

Particularly tricky scenarios include the following:

  • Joins across actions
  • How to ensure the optimal amount of logic is performed in the DB
  • Lazily traversing fields so that self/co-recursive relationships don't cause infinite loops

Describe alternatives you've considered

Currently we only support relationships from top-level fields.

If the feature is approved, would you be willing to submit a PR?

Yes.

@sordina sordina added k/enhancement New feature or improve an existing feature c/server Related to server c/actions Related to actions labels Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/actions Related to actions c/server Related to server k/enhancement New feature or improve an existing feature team-blaam/handover
Projects
None yet
Development

No branches or pull requests

1 participant