Skip to content

Commit

Permalink
Fix Incorrect Syntax in Spec Example (ballerina-platform#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisaruGuruge authored Aug 24, 2023
1 parent dcee64e commit f2bfdcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/spec/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ _Reviewers_: @shafreenAnfar @ThisaruGuruge @DimuthuMadushan @ldclakmal \
_Created_: 2022/01/06 \
_Updated_: 2023/08/22 \
_Edition_: Swan Lake \
_GraphQL Specification_: [October 2021](https://spec.graphql.org/October2021/)
_GraphQL Specification_: [October 2021](https://spec.graphql.org/October2021/)

## Introduction

Expand Down Expand Up @@ -254,7 +254,7 @@ Since the GraphQL listener uses the `http:Listener` and the `websocket:Listener`
###### Example: Listener Configuration

```ballerina
listener graphql:Listener graphqlListener = = new (9090, timeout = 10);
listener graphql:Listener graphqlListener = new (9090, timeout = 10);
```

>**Note:** If the GraphQL service includes subscription operations, the `httpVersion` of the `graphql:ListenerConfiguration` must be either `"1.0"` or `"1.1"`. Otherwise, this will cause a runtime error when attaching the service to the listener.
Expand Down Expand Up @@ -695,7 +695,7 @@ When the `@graphql:ID` annotation is used, the generated schema will show the fi

>**Note:** If the `@graphql:ID` annotation is used for a field, the values of those fields will always be serialized as strings.

>**Note:** Applying a `@graphql:ID` annotation to an array indicates it as a list of `ID` elements.
>**Note:** Applying a `@graphql:ID` annotation to an array indicates it as a list of `ID` elements.

###### Example: ID Scalar Type
```ballerina
Expand Down Expand Up @@ -3606,7 +3606,7 @@ isolated distinct service class User {
dataloader:DataLoader rePostsLoader = ctx.getDataLoader("rePostsLoader");
Post[] rePosts = check rePostsLoader.get(self.userId);
return [...posts, ...rePosts];
}
Expand Down

0 comments on commit f2bfdcf

Please sign in to comment.