Flocon/docs/graphql.md
Florent CHAMPIGNY ce1df58b9f
refact: doc content (#455)
Co-authored-by: Florent Champigny <florent@bere.al>
2025-12-24 14:55:53 +01:00

20 lines
737 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 🛰️ GraphQL Request Inspector
Flocon also supports **GraphQL** requests via a dedicated Apollo interceptor.
Just like with REST, all outgoing GraphQL requests made through [Apollo Client](https://www.apollographql.com/docs/android/) are captured and displayed in Flocons interface — allowing you to debug your queries and mutations in real time.
For each GraphQL call, you can inspect:
- Response data or error payload
- Headers, status code, and response time
- The operation type (query / mutation)
```kotlin
ApolloClient.Builder()
// just set your already configured with flocon okhttp interceptor client
.okHttpClient(client)
// regular builder methods
.build()
```