Skip to content

Commit

Permalink
Merge pull request #231 from MohamedSabthar/subg
Browse files Browse the repository at this point in the history
Update graphql timestamp version
  • Loading branch information
MohamedSabthar authored Sep 14, 2023
2 parents a9b4e09 + 81cd8b7 commit 87f60d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand All @@ -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",
Expand Down

0 comments on commit 87f60d6

Please sign in to comment.