mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-13 19:33:55 +03:00
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:
parent
76936f0972
commit
30de5793f0
@ -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.
|
||||
|
||||
:::
|
||||
|
||||
|
@ -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.
|
||||
|
||||
:::
|
||||
|
||||
|
@ -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.
|
||||
|
||||
:::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user