Make it possible to select fields or depth on Slate rich text field internal link for GraphQL #2320
mvdve
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
I think this issue is quite a big performance / security problem. Taking it to extremes with for example 1000 internal links could result in over 3k in queries where one would be possible (only the richtext json data). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When fetching content over GraphQL, all relationship data is returned from the node selected in the rich text internal link element. This includes the direct node but also it's relationships.
So I have for example an event node with a location and category relationship. When selecting this event in the rich text internal link element, the whole event with full location and category is populated within the GraphQL query. This adds a lot of extra data and database round trips which is not useful for a simple link where only a slug and title are needed.
I tried using the global maxDepth setting by setting this to 1 or even 0 but it had no effect (bug?).
There are several solution:
Beta Was this translation helpful? Give feedback.
All reactions