Skip to content

Commit

Permalink
Merge pull request #5189 from DimuthuMadushan/master
Browse files Browse the repository at this point in the history
Update Descriptions in GraphQL BBE
  • Loading branch information
DimuthuMadushan authored Feb 12, 2024
2 parents bc94105 + da67566 commit b58e728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/graphql-directives/graphql_directives.bal
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/graphql-file-upload/graphql_file_upload.md
Original file line number Diff line number Diff line change
@@ -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 :::

Expand Down

0 comments on commit b58e728

Please sign in to comment.