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

Need to Pass the query instead of passing the whole document in Request #605

Open
san-maaran18793 opened this issue Jul 26, 2024 · 1 comment

Comments

@san-maaran18793
Copy link

Hi,

I am new to Flutter and I am using Ferry GraphQL for my API services. I am dealing with multiple queries in a single document. When I send a request, the operation sends the operation name along with the entire query document, which contains multiple queries, to the server. This increases the payload size and results in higher response times. I need to solve this by sending only the specific query instead of the entire document in the operation. We have more than 200 queries, divided into 10 modules. We are using a common file for sending the requests.

@knaeckeKami
Copy link
Collaborator

Hi!

Yes, this is an known issues at the moment.
I recommend splitting your graphql operations up in different files until this is solved.

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

2 participants