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 limited attributes in relationship data? #161

Open
cmars opened this issue Feb 7, 2022 · 0 comments
Open

Allow limited attributes in relationship data? #161

cmars opened this issue Feb 7, 2022 · 0 comments

Comments

@cmars
Copy link
Contributor

cmars commented Feb 7, 2022

While we do not want to allow compound documents as defined in JSON API, there is probably a case to be made for a small number of attributes that are useful/necessary for making "sense" of a relationship.

Allowing attributes here could be reasonable, if we can define the limits of when and how they should be applied.

Pitfalls seem to be:

  • Dumping the entire contents of related entities out of laziness (so where to draw the line?)
  • One-to-many (pagination of relationships is a definite no-go -- use GraphQL for that)

"Just use GraphQL for that" could be an answer to this question -- simply don't allow it -- but for a small number of fields, you're perhaps being pricinpled for its own sake and unhelpful...

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