graphql-engine/docs/graphql/manual/api-reference/graphql-api/index.rst

37 lines
845 B
ReStructuredText
Raw Normal View History

GraphQL API Reference
=====================
.. contents:: Table of contents
:backlinks: none
:depth: 1
:local:
All GraphQL requests for queries, subscriptions and mutations are made to the GraphQL API.
Endpoint
--------
2019-09-11 10:17:14 +03:00
All requests are ``POST`` requests to the ``/v1/graphql`` (or ``/v1alpha1/graphql``) endpoint.
.. note::
2019-09-11 10:17:14 +03:00
The ``/v1/graphql`` endpoint returns HTTP 200 status codes for all responses.
This is a **breaking** change from the ``/v1alpha1/graphql`` behaviour, where
request errors and internal errors were responded with 4xx and 5xx status
codes.
Request types
-------------
The following types of requests can be made using the GraphQL API:
- :doc:`Query / Subscription <query>`
- :doc:`Mutation <mutation>`
.. toctree::
:maxdepth: 1
:hidden:
Query / Subscription <query>
Mutation <mutation>