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

x/drash/src/services/graphql/graphql.ts>GraphQL.LoneAnonymousOperationRule

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

Lone anonymous operation

A GraphQL document is only valid if when it contains an anonymous operation (the query short-hand) that it contains only that one operation definition.

Parameters

context: ASTValidationContext