Setting depth per field #207
Ontopic
started this conversation in
Feature Requests & Ideas
Replies: 1 comment 5 replies
-
Ahhh!!!! Setting max depth on a field basis would be a great feature to have—and best part, it's going to take about 5 minutes for us to implement 💥 Give us a bit here. Might even be today. Thinking the API would look like this: // Example relationship field config
{
name: 'someFieldNameHere',
type: 'relationship',
relationTo: 'someCollection',
maxDepth: 1, // new field option
} What do you think? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a 1-on-1 relationship between two collections that keep an in-sync relationship with each other. A pattern I feel is quite useful. An issues is however that I'm basically getting the full data of the sibling I'm requesting twice, since the other sibling holds a relationship to the requested sibling and is filling that (depending on depth).
What would be a way to limit the depth on certain fields? Or even omit them form results
Beta Was this translation helpful? Give feedback.
All reactions