Skip to content

Commit

Permalink
Remove service config usage
Browse files Browse the repository at this point in the history
  • Loading branch information
DimuthuMadushan committed Jul 5, 2023
1 parent ab6bd69 commit 629ddd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ public type Profile record {|
float height;
|};

@graphql:ServiceConfig {
// This is enabled by default. Use this config to disable constraint validation
validation: true
}
service /graphql on new graphql:Listener(9090) {

resource function get name(Profile profile) returns string {
Expand Down
14 changes: 7 additions & 7 deletions examples/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -2460,25 +2460,25 @@
"isLearnByExample": false
},
{
"name": "File upload",
"url": "graphql-file-upload",
"name": "Input constraint validation",
"url": "graphql-input-constraint-validation",
"verifyBuild": true,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
"disablePlayground": true,
"isLearnByExample": false
},
{
"name": "Hierarchical resource paths",
"url": "graphql-hierarchical-resource-paths",
"name": "File upload",
"url": "graphql-file-upload",
"verifyBuild": true,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
"disablePlayground": true,
"isLearnByExample": false
},
{
"name": "Input constraint validation",
"url": "graphql-input-constraint-validation",
"name": "Hierarchical resource paths",
"url": "graphql-hierarchical-resource-paths",
"verifyBuild": true,
"verifyOutput": false,
"disablePlayground": true,
Expand Down

0 comments on commit 629ddd9

Please sign in to comment.