GraphQL: Recommended fetching without Apollo-client

Hello,

I’m working on a Flutter project and unfortunately the recommended fetching approach using the Apollo-Client doesn’t work here. Flutter’s next choice (zino-app/graphql-flutter) does not support queries via http GET.

So I ended up performing manual http requests and passing the GraphQL query as a query parameter.

Problem here: even medium sized queries return the response 414 (Request-URI Too Large)
All workarounds here end up in separate requests which is not ideal and not scalable.

What does Prismic recommend in order to use GraphQL without the Apollo-Client?

Thank you very much!

Hi,

You should check out this community plugin built just for this task.

There’s also an example here:

I think it should be possible to use POST to retrieve content from the prismic graphql endpoint. This way you can specify the query in the request body.