Adding include field in query filters #644
fyrepenguin
started this conversation in
Ideas
Replies: 2 comments
-
@fyrepenguin Is that a normal pattern in GraphQL? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@deshetti, I noticed that in a REST API of ghost CMS https://ghost.org/docs/content-api/#include, not sure about it in GraphQL and need to check with @shreeharsha-factly on performance benefits |
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
-
When we're querying data for posts, categories, or any other field we're getting data from other tables for media, claims, categories, tags, users, ratings, claimants, formats, etc
since we might not need all those fields every time we make the query or every theme that we develop, if we add another filter called
include
oradd
which takes those fields in there like below and then we make the calls to the respective tables depending on those from the API to DB, I think we might be able to increase performance and decrease the load on the DB as well.Beta Was this translation helpful? Give feedback.
All reactions