diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-08-27 10:51:01 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-08-27 10:51:01 +0200 |
| commit | b40d8a7e1ef03e6ccbe990572add58cfaa6d8ed9 (patch) | |
| tree | f803e634f92953b457c8418747d67678754e77c3 /src/Language/GraphQL/AST/Encoder.hs | |
| parent | 4b5e25a4d84e992910ad4bdf92b0f8a2213493a8 (diff) | |
| download | graphql-b40d8a7e1ef03e6ccbe990572add58cfaa6d8ed9.tar.gz | |
Parse repeatable directive definitions
Diffstat (limited to 'src/Language/GraphQL/AST/Encoder.hs')
| -rw-r--r-- | src/Language/GraphQL/AST/Encoder.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Language/GraphQL/AST/Encoder.hs b/src/Language/GraphQL/AST/Encoder.hs index 120fb64..afa30de 100644 --- a/src/Language/GraphQL/AST/Encoder.hs +++ b/src/Language/GraphQL/AST/Encoder.hs @@ -159,11 +159,12 @@ typeSystemDefinition formatter = \case <> optempty (directives formatter) operationDirectives <> bracesList formatter (operationTypeDefinition formatter) (NonEmpty.toList operationTypeDefinitions') Full.TypeDefinition typeDefinition' -> typeDefinition formatter typeDefinition' - Full.DirectiveDefinition description' name' arguments' locations + Full.DirectiveDefinition description' name' arguments' repeatable locations -> description formatter description' <> "@" <> Lazy.Text.fromStrict name' <> argumentsDefinition formatter arguments' + <> (if repeatable then " repeatable" else mempty) <> " on" <> pipeList formatter (directiveLocation <$> locations) |
