diff --git a/examples/graphql-directives/graphql_directives.bal b/examples/graphql-directives/graphql_directives.bal index 01955f82ec..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 `profile` 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, 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 :::