From 6b4efd36594507c44828923fcc82170a8b006399 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Wed, 25 Sep 2024 06:18:03 +0300 Subject: [PATCH] add example --- spec/Section 4 -- Introspection.md | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/spec/Section 4 -- Introspection.md b/spec/Section 4 -- Introspection.md index 7baa238bc..6e7627d4b 100644 --- a/spec/Section 4 -- Introspection.md +++ b/spec/Section 4 -- Introspection.md @@ -56,6 +56,38 @@ would produce the result: } ``` +Similarly, a request containing the operation: + +```graphql example +{ + __directive(name: "skip") { + name + arguments { + name + type { + name + } + } + } +} +``` + +would produce the result: + +```json example +{ + "__directive": { + "name": "skip", + "arguments": [ + { + "name": "if", + "type": { "name": "Boolean" } + } + ] + } +} +``` + **Reserved Names** Types and fields required by the GraphQL introspection system that are used in