# Package com.codename1.io.graphql

package com.codename1.io.graphql

GraphQL client runtime. `GraphQL` sends queries and mutations over HTTP `POST` and parses the `{"data":...,"errors":[...]}` envelope; `GraphQLResponse` is the typed result wrapper (data and errors can co-exist as a partial result); `GraphQLError` is one entry of the errors array; `GraphQLSubscription` streams subscription payloads over a WebSocket; `GraphQLClients` is the per-`@GraphQLClient` factory registry that the build-time-generated `cn1app.GraphQLClientBootstrap` populates.

End-to-end usage is documented on `com.codename1.annotations.graphql` -- the user-facing entry point is the generated `<Name>.of(endpoint)` factory rather than any class in this package directly.

- Related Packages
  Package
  Description
  com.codename1.io
  Networking, Storage, Filesystem & related API's
- Class
  Description
  GraphQL
  High-level GraphQL-over-HTTP invoker used by generated `@GraphQLClient` implementations.
  GraphQLClients
  Runtime registry that wires `@GraphQLClient`-annotated interfaces to the build-time-generated implementations.
  GraphQLClients.Factory<T>
  Factory the generated bootstrap registers per API interface.
  GraphQLError
  One entry from a GraphQL response `errors` array.
  GraphQLResponse<T>
  Result of a GraphQL query or mutation.
  GraphQLSubscription
  Handle for a live GraphQL subscription.
  GraphQLSubscription.Handler<T>
  Receives the events of one subscription.