Skip to content

Commit

Permalink
formatted example
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklakan committed Aug 22, 2024
1 parent 09b933f commit e533681
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/graphql/reference/index-directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e533681

Please sign in to comment.