Docs: Clarify multiple subscriptions. Specifically for AI understanding.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10162
GitOrigin-RevId: 05351d7b369f5a7b52c5287fdac426885219da9f
This commit is contained in:
Sean Park-Ross 2023-08-31 13:21:12 +02:00 committed by hasura-bot
parent 76936f0972
commit 30de5793f0
3 changed files with 9 additions and 6 deletions

View File

@ -33,10 +33,11 @@ delivered to clients every **1 sec**.
You can turn any query into a subscription by simply replacing `query` with `subscription` as the operation type.
:::info Caveat
:::info Single subscription in each query caveat
Hasura follows the [GraphQL spec](https://graphql.github.io/graphql-spec/June2018/#sec-Single-root-field) which allows
for only one root field in a subscription.
for only one root field in a subscription. You also cannot execute multiple separate subscriptions in one query. To
have multiple subscriptions running at the same time they must be in separate queries.
:::

View File

@ -24,10 +24,11 @@ Hasura works with most [Postgres compatible flavours](/databases/postgres/index.
:::
:::info Caveat
:::info Single subscription in each query caveat
Hasura follows the [GraphQL spec](https://graphql.github.io/graphql-spec/June2018/#sec-Single-root-field) which allows
for only one root field in a subscription.
for only one root field in a subscription. You also cannot execute multiple separate subscriptions in one query. To
have multiple subscriptions running at the same time they must be in separate queries.
:::

View File

@ -26,10 +26,11 @@ See more details on
You can turn any query into a subscription by simply replacing `query` with `subscription` as the operation type.
:::info Caveat
:::info Single subscription in each query caveat
Hasura follows the [GraphQL spec](https://graphql.github.io/graphql-spec/June2018/#sec-Single-root-field) which allows
for only one root field in a subscription.
for only one root field in a subscription. You also cannot execute multiple separate subscriptions in one query. To
have multiple subscriptions running at the same time they must be in separate queries.
:::