From 81cd8b794dd6da2dd8b2021c22c44a23aceb791b Mon Sep 17 00:00:00 2001 From: MohamedSabthar Date: Thu, 14 Sep 2023 15:28:14 +0530 Subject: [PATCH] Update graphql timestamp version --- gradle.properties | 2 +- .../test/resources/graphqlServices/valid/service_11.bal | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index bef745ce..b12c8703 100644 --- a/gradle.properties +++ b/gradle.properties @@ -51,7 +51,7 @@ stdlibHttpVersion=2.10.0-20230911-204400-1c092fe stdlibWebsocketVersion=2.10.0-20230911-221500-317e2e7 # Level 07 -stdlibGraphqlVersion=1.10.0-20230912-160300-47e43f5 +stdlibGraphqlVersion=1.10.0-20230914-151300-376b3a9 # Ballerinax Observer observeVersion=1.2.0-20230911-133500-b3d8db3 diff --git a/graphql-cli/src/test/resources/graphqlServices/valid/service_11.bal b/graphql-cli/src/test/resources/graphqlServices/valid/service_11.bal index 8e5525ff..8e29af86 100644 --- a/graphql-cli/src/test/resources/graphqlServices/valid/service_11.bal +++ b/graphql-cli/src/test/resources/graphqlServices/valid/service_11.bal @@ -34,8 +34,8 @@ public type Category record { string title; }; -function resolveProduct(subgraph:Representation representation) returns Product|error? { - string id = check representation["id"].ensureType(); +isolated function resolveProduct(subgraph:Representation representation) returns Product|error? { + final string id = check representation["id"].ensureType(); return trap products.filter(product => product.id == id).pop(); } @@ -54,14 +54,14 @@ service /product on new graphql:Listener(4001) { } } -Category[] categories = [ +final readonly & Category[] categories = [ { id: "1", title: "Kitchen appliances" } ]; -Product[] products = [ +final readonly & Product[] products = [ { id: "1", title: "Knife",