From e533681cecde4a72b110b1bf20f7da3b36c82687 Mon Sep 17 00:00:00 2001 From: Claus Stadler Date: Thu, 22 Aug 2024 18:54:40 +0200 Subject: [PATCH] formatted example --- docs/graphql/reference/index-directive.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/graphql/reference/index-directive.md b/docs/graphql/reference/index-directive.md index 7981ae9..970f75a 100644 --- a/docs/graphql/reference/index-directive.md +++ b/docs/graphql/reference/index-directive.md @@ -31,11 +31,11 @@ The `@index` directive converts a field’s output into a JSON object, where: Consider the following GraphQL schema: ```graphql -type Triples @pattern( - of: "?s ?p ?o", - from: "s", - to: "o" -) @index(by: "?p", oneIf: "false") +{ + triples + @pattern(of: "?s ?p ?o", from: "s", to: "o") + @index(by: "?p", oneIf: "false") +} ``` Given the RDF triples: