Fauna GraphQL API
The Fauna GraphQL API allows developers to interact with their Fauna databases using standard GraphQL queries and mutations. By uploading a GraphQL schema, Fauna automatically generates the necessary collections, indexes, and resolvers. This API can be used from any programming language or HTTP client without requiring a dedicated Fauna driver. It provides an alternative to FQL for developers who prefer the GraphQL query paradigm and ecosystem tooling.
Fauna GraphQL API is one of 9 APIs that fauna publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Database, GraphQL, Query Language, and Serverless. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.
This API exposes 1 operation across 1 path, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version 1.
Requests are made against a single base URL, https://db.fauna.com.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Fauna GraphQL API declares
1 security scheme
for authenticating requests.
It accepts HTTP bearer tokens (bearerAuth).
By default, every request must be authenticated.
bearerAuth— Fauna authentication secret passed as a bearer token. Secrets can be keys, tokens, or JWTs from third-party identity providers.
Paths & Operations 1
Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.
Execute GraphQL queries and mutations against a Fauna database.
Schemas 4
The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are GraphQLError (4 properties), GraphQLRequest (3 properties), GraphQLResponse (2 properties), GraphQLErrorResponse (1 property). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from fauna 8
Other APIs fauna publishes across the network.