Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/deps.ts>GraphQL.SingleFieldSubscriptionsRule

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
function GraphQL.SingleFieldSubscriptionsRule
import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/deps.ts";
const { SingleFieldSubscriptionsRule } = GraphQL;

Subscriptions must only include one field.

A GraphQL subscription is valid only if it contains a single root field.

Parameters

context: ASTValidationContext