Stylianos Gakis
08/01/2024, 10:04 AM@include
(or @skip) directive, does the change happen on the client, meaning that I send different requests to the backend depending on what boolean value I pass in them, or does it go as-is to the backend and the backend is the one that is supposed to honor my request to include or skip those fields?
And as a follow-up, if this does rely on my backend doing the right thing, how do I know if my backend will know how to work with this directive or not?Stylianos Gakis
08/01/2024, 10:07 AMEduard Boloș
08/01/2024, 10:15 AMOPERATION_DOCUMENT
returns a constant string.
I assume the reason why this works is that this it's something that is part of the GraphQL specification (here), and the backend GQL stack you use implements this specification correctly. Depending on what you use there, you should be able to find exactly what part of the spec they implement or not.Stylianos Gakis
08/01/2024, 10:25 AMmbonnin
08/01/2024, 10:43 AMmbonnin
08/01/2024, 10:43 AMStylianos Gakis
08/01/2024, 10:45 AM