Skip to content
Back to skills

Graphql Knowledge Patch

ASecurity

GraphQL

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentgonodedocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill graphql-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Graphql Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Graphql Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-graphql-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-graphql-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: graphql-knowledge-patch
description: GraphQL
version: "GraphQL-over-HTTP draft 2026-07"
license: MIT
metadata:
  author: Nevaberry
---


# GraphQL knowledge patch

> [!CAUTION]
> Prerelease guidance may change before stable release. The current prerelease
> version is `GraphQL-over-HTTP draft 2026-07`.

Load this skill when working on GraphQL executable documents, schemas,
validation, input coercion, execution results, introspection, or HTTP transport.
Use the references for complete guidance and examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [Language and schema](references/language-and-schema.md) | Descriptions, strings, coordinates, schema validation, deprecation, introspection ordering, input extensions |
| [Execution and coercion](references/execution-and-coercion.md) | Defaults, OneOf inputs, fragments, error paths, subscriptions, request and response metadata |
| [HTTP status codes](references/http-status-codes.md) | Response interpretation, result and request error statuses, mutations over GET, persisted operations |
| [HTTP transport and negotiation](references/http-transport-and-negotiation.md) | Media negotiation, legacy fallback, GET parameters, POST envelopes, authorization, schema selection |

## Validation and schema compatibility

### Subscription root directives

`@skip` and `@include` are forbidden in a subscription's root selection set.
Put conditional selections below the root field.

### Missing operation root types

Validation rejects an operation when the schema lacks its corresponding root
type. A mutation document fails validation against a query-only schema.

### Deprecation constraints

`@deprecated` takes a non-null `reason`. Omit the argument for the default or
pass a string; an explicit `reason: null` is invalid.

An implementing type may deprecate a field only if the corresponding interface
field is also deprecated.

### Introspection flags

Introspection's `includeDeprecated` arguments are non-null. Omit the argument
for the default or pass `true` or `false`; `includeDeprecated: null` is invalid.

### Described schemas

Keep the explicit `schema` definition when the schema itself has a description,
even with conventional root type names.

### Recursive input defaults

Schema validation rejects defaults that recursively reapply themselves through
omitted input fields, including inside list items. For example, `next: Node = {}`
on `Node` reuses its own default indefinitely; use a terminating default such as
`null`.

### Directive-definition cycles

Validate directive definitions for self-references through other directives or
types as well as direct uses.

## Input coercion and execution

### Variables in OneOf literals

Declare a variable used directly as a OneOf field value with a non-null type,
such as `$cat: CatInput!` for `pet: { cat: $cat }`, even though the schema field
is nullable. Count variable-supplied fields when validating that the literal
contains exactly one field.

### OneOf coercion and introspection

Check for exactly one entry with a non-null value both before input-object
coercion and in the resulting map. The OneOf coercion rule classifies failure
of the initial check as a request error and failure of the final check as an
execution error.

`__Type.isOneOf` returns `true` for OneOf input objects, `false` for ordinary
input objects, and `null` for other type kinds.

### Default coercion

Apply the declared type's input coercion when using a default for an omitted
variable or field argument. A field argument supplied by a variable uses the
already coerced variable value directly.

### Field and list errors

Coercion failures during field argument evaluation are execution errors at the
field's response path, even when the input coercion rule calls the failure a
request error.

Report a list element's execution error once at its full indexed path, even
when non-null propagation nulls an enclosing list or all of `data`. When an
error propagates from a non-null response position, the executor may cancel
sibling positions that have yet to yield values.

### Subscription stream failures

A field execution error appears in that event's `errors` list, and the
subscription can still deliver later events. A source stream failure or an
internal exception during event execution completes the response stream with
an error; an internal exception also cancels the source stream.

## Executable documents and coordinates

### Description placement and effect

Put a string immediately before a named operation to document its purpose.
Write the explicit `query` keyword to describe an anonymous query. Place a
variable description immediately before its `$name` in the variable list and
a fragment description immediately before `fragment`.

Descriptions and comments on operation, fragment, and variable definitions
have no effect on validation, execution, or the response. Tooling may still
use them for logging or documentation.

### Quoted strings

Use `"\u{1F680}"` to escape a supplementary character; the legacy fixed-width
pair `"\uD83D\uDE80"` also parses. The parser rejects unpaired surrogates in raw
source or escapes, and escapes above U+10FFFF.

LF and CR require escapes. Other raw control characters are accepted by the
grammar; serializers should escape U+0000–U+001F and U+007F–U+009F when emitting
quoted strings.

### Schema coordinates

A coordinate identifies a type, a member, a field argument, a directive, or
a directive argument. The standalone grammar rejects whitespace, commas,
comments, and other ignored tokens.

A missing final element yields no value. A missing containing type, field,
or directive, or a containing type of the wrong kind, raises an error.
Resolution is undefined for meta-fields and introspection types. Refer to a
union member by its own type coordinate.

## HTTP transport and status handling

### Required response media type

> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.

Clients must include `application/graphql-response+json` in `Accept`. Servers
must support that type and choose the highest-priority supported type offered
by the client. When server support is unknown, the recommended header is
`Accept: application/graphql-response+json, application/json;q=0.9`.

### Response interpretation

> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.

Clients should process `application/graphql-response+json` bodies as GraphQL
responses regardless of HTTP status. A server unable to generate a well-formed
GraphQL response must omit that media type and should send an appropriate
`4xx` or `5xx`.

### Result status codes

> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.

Non-null `data` requires `2xx`, with `200` recommended when `errors` is absent.
An absent `data` entry requires an appropriate `4xx` or `5xx`. For responses
containing both entries, including `data: null`, the status rules recommend
custom `294 Partial Success`; the field-error example still uses `200`.

### Request error status codes

> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.

The draft recommends `400` for invalid JSON or an unparseable GraphQL document.
It recommends `422` for a malformed request envelope, GraphQL validation
failure, failure to determine the operation unambiguously, or variable
coercion failure.

### Mutations over GET

> **Prerelease (`graphql-over-http-draft`):** This guidance may change before stable release.

If `query` and `operationName` select a mutation over `GET`, stop before
execution and return an appropriate `4xx`. The draft recommends
`405 Method Not Allowed`, which requires an `Allow` header.

### Optional request parameters

> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.

An empty optional GET parameter or a JSON `null` value for an optional POST
parameter counts as omission. In GET, encode nonempty `variables` and
`extensions` as JSON before URL encoding. Use `operationName=null` only to
select an operation literally named `null`.

### POST envelope validation

> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.

Servers must ignore unrecognized top-level JSON properties. Envelope validation
requires a string `query` and checks known parameter types independently of
GraphQL parsing and validation.

Files in this skill

  • SKILL.md9.6 KB
  • coverage.json682 B
  • references/execution-and-coercion.md3.3 KB
  • references/http-status-codes.md3.1 KB
  • references/http-transport-and-negotiation.md3.3 KB
  • references/language-and-schema.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.