Logo
NeoArc Studio

GraphQL API Documentation

Document GraphQL APIs with queries, mutations, subscriptions, custom scalars, directives, interfaces, and per-operation authentication in NeoArc Studio.

The GraphQL editor documents GraphQL APIs alongside your architecture content. Define server configuration, authentication schemes, operations, custom scalars, directives, and interfaces in a structured format that publishes as a browsable API reference on your documentation site.

Server Configuration

Each GraphQL API definition includes server configuration with fields specific to GraphQL endpoints:

PropertyDescription
URLThe primary GraphQL endpoint (e.g. https://api.example.com/graphql)
WebSocket URLSeparate WebSocket endpoint for subscriptions
Health Check URLOptional health check endpoint for monitoring
Introspection ToggleWhether the server allows introspection queries

Authentication Schemes

Define how clients authenticate with the GraphQL API. Four scheme types are supported:

Bearer Token
Token-based authentication with configurable bearer format (e.g. JWT) and header name. Default header: Authorization.
API Key
Key passed via header or query parameter. Specify the key name and location.
OAuth 2.0
Supports authorization code and client credentials flows. Configure authorization URL, token URL, refresh URL, and scopes.
Custom Header
Define arbitrary headers required for authentication. Each header has a name and optional description.

Set default authentication requirements at the API level. Individual operations override the default when they require a different scheme or additional scopes.

Operations

Document every query, mutation, and subscription your API exposes. Each operation captures a full set of details:

Operation Properties

PropertyDescription
Name and TypeOperation name and type (query, mutation, subscription)
DescriptionRich text description of what the operation does
ArgumentsTyped arguments with nullability, list support, validation rules, default values, and optional data lineage
Return TypeType reference or direct type name with nullability and list indicators
DeprecationMark operations as deprecated with a reason string
ComplexityNumeric complexity hint for rate limiting and cost analysis
Example QuerySDL-format example of how to call the operation
Example VariablesJSON variables to accompany the example query
Example ResponseExpected JSON response for the example query
Auth OverridePer-operation authentication requirements that override the API default

Custom Scalars

Document custom scalar types defined in the GraphQL schema. Each scalar records its name, specification URL (e.g. RFC 3339 for DateTime), serialisation format, example values, and coercion rules (which types coerce to and from this scalar).

Directives

Define directive metadata for the API. Each directive specifies its valid locations across both executable and type system categories, arguments, whether it is repeatable, and whether it is a built-in directive.

Location CategoryLocations
ExecutableQUERY, MUTATION, SUBSCRIPTION, FIELD, FRAGMENT_DEFINITION, FRAGMENT_SPREAD, INLINE_FRAGMENT, VARIABLE_DEFINITION
Type SystemSCHEMA, SCALAR, OBJECT, FIELD_DEFINITION, ARGUMENT_DEFINITION, INTERFACE, UNION, ENUM, ENUM_VALUE, INPUT_OBJECT, INPUT_FIELD_DEFINITION

Interfaces

Document GraphQL interface definitions with their required fields. Each interface lists its fields (with type, nullability, list support, and arguments) and which other interfaces it implements. Directives applied to the interface or its fields are also captured.

SDL Export

Export your GraphQL API documentation to the standard Schema Definition Language (SDL) format. The export generates a complete .graphql schema file with type definitions, queries, mutations, subscriptions, custom scalars, directives, and interfaces. Use the exported SDL with code generation tools, schema registries, and other GraphQL ecosystem tools.

Viewer

The published site includes a GraphQL API browser panel that presents all documented APIs. Readers navigate by operation type, browse individual operations with their full details, and view custom scalars, directives, and interfaces in context.

Operation Browser
Browse operations grouped by type. Each operation displays arguments, return types, examples, and authentication requirements.
Searchable
GraphQL API definitions are included in the published site search index. Find operations by name, argument, or description.
Version Controlled
GraphQL API definitions are JSON files stored in your Git repository. Track changes, review in pull requests, and roll back when needed.

Use Cases

Team API Documentation
Provide a complete reference for all GraphQL operations that teams consume, with authentication details and usage examples.
Client SDK Reference
Document every operation with example queries and variables so client developers have copy-paste-ready code.
Schema Governance
Track directive usage, deprecations, and complexity hints to maintain schema quality and enforce organisational standards.