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: