Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
14 lines
486 B
Plaintext
14 lines
486 B
Plaintext
import type { ASTVisitor } from '../../language/visitor';
|
|
import type { ValidationContext } from '../ValidationContext';
|
|
/**
|
|
* Subscriptions must only include a non-introspection field.
|
|
*
|
|
* A GraphQL subscription is valid only if it contains a single root field and
|
|
* that root field is not an introspection field.
|
|
*
|
|
* See https://spec.graphql.org/draft/#sec-Single-root-field
|
|
*/
|
|
export declare function SingleFieldSubscriptionsRule(
|
|
context: ValidationContext,
|
|
): ASTVisitor;
|