From 7a9db6a6cfcde5779e8e5908f2840a1ac6e479e3 Mon Sep 17 00:00:00 2001 From: DimuthuMadushan Date: Thu, 8 Feb 2024 13:54:15 +0530 Subject: [PATCH 1/2] Update descriptions in GraphQL BBE --- examples/graphql-directives/graphql_directives.bal | 2 +- examples/graphql-file-upload/graphql_file_upload.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/graphql-directives/graphql_directives.bal b/examples/graphql-directives/graphql_directives.bal index 01955f82ec..25baadd3ce 100644 --- a/examples/graphql-directives/graphql_directives.bal +++ b/examples/graphql-directives/graphql_directives.bal @@ -21,7 +21,7 @@ service /graphql on new graphql:Listener(9090) { // Marks a field as deprecated. # # Deprecated - # The `profile` field is deprecated. Use `profile` instead. + # The `profileeeeeee` field is deprecated. Use `profile` instead. @deprecated resource function get profileeeeeee() returns Profile { return { diff --git a/examples/graphql-file-upload/graphql_file_upload.md b/examples/graphql-file-upload/graphql_file_upload.md index 068bc0c291..9dc7721885 100644 --- a/examples/graphql-file-upload/graphql_file_upload.md +++ b/examples/graphql-file-upload/graphql_file_upload.md @@ -1,6 +1,6 @@ # GraphQL service - File upload -The Ballerina `graphql` module allows uploading files to a GraphQL schema. To enable file uploading in a GraphQL service, add the `graphql:Upload` record as an input parameter of a `remote` method inside a `graphql:Service`. The `graphql:Upload` record includes the details of the file that is being uploaded. The GraphQL file upload follows the _Graphql Multipart Request Spec_ to upload the files. Use this to create a GraphQL API where users can upload files. +The Ballerina `graphql` module allows uploading files to a GraphQL schema. To enable file uploading in a GraphQL service, add the `graphql:Upload` record as an input parameter of a `remote` method inside a `graphql:Service`. The `graphql:Upload` record includes the details of the file that is being uploaded. The GraphQL file upload follows the [_Graphql Multipart Request Spec_](https://github.com/jaydenseric/graphql-multipart-request-spec/tree/master) to upload the files. Use this to create a GraphQL API where users can upload files. ::: code graphql_file_upload.bal ::: From da675661944b75ae0af3f719ebaaae707e646325 Mon Sep 17 00:00:00 2001 From: DimuthuMadushan Date: Fri, 9 Feb 2024 09:45:44 +0530 Subject: [PATCH 2/2] Rename the deprecated field --- examples/graphql-directives/graphql_directives.bal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/graphql-directives/graphql_directives.bal b/examples/graphql-directives/graphql_directives.bal index 25baadd3ce..0a75fbeeea 100644 --- a/examples/graphql-directives/graphql_directives.bal +++ b/examples/graphql-directives/graphql_directives.bal @@ -21,9 +21,9 @@ service /graphql on new graphql:Listener(9090) { // Marks a field as deprecated. # # Deprecated - # The `profileeeeeee` field is deprecated. Use `profile` instead. + # The `profileInfo` field is deprecated. Use `profile` instead. @deprecated - resource function get profileeeeeee() returns Profile { + resource function get profileInfo() returns Profile { return { name: "Walter White", age: 51,