From 3971087baa7d9c529d7b13045184a2ce44a39825 Mon Sep 17 00:00:00 2001 From: Danesh Kuruppu Date: Thu, 1 Jun 2023 12:51:16 +0530 Subject: [PATCH] Update the relation query sample --- .../persist-relation-queries/persist_relation_queries.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/persist-relation-queries/persist_relation_queries.md b/examples/persist-relation-queries/persist_relation_queries.md index f44418b742..512db99031 100644 --- a/examples/persist-relation-queries/persist_relation_queries.md +++ b/examples/persist-relation-queries/persist_relation_queries.md @@ -1,8 +1,8 @@ -# Persist read - Select relation fields +# Persist read - Relation queries The bal persist feature provides support to manage data persistence in a Ballerina package. It starts with defining the application's data model. Once the model is defined, the client API is generated with resources based on the model. The generated API can be used to query and manipulate the persistent data in the application. -The generated client API provides support to select relation fields of the entity when retrieving the records/record from the `get` resource method from the data store. +The generated client API provides support to select fields in relational entities when retrieving the records/record from the `get` resource method from the data store. > **Note:** This example uses Ballerina tables as the data store. You can use MySQL and Google Sheets as the data store as well. For more information, see [Supported Data Stores](/learn/supported-data-stores/). @@ -24,7 +24,7 @@ Execute the command below to generate the Ballerina client API. #### Use the generated client API -Using the generated client API, you can retrieve the record with relation fields from the data store with both `get` and `get by key` resource methods. +Using the generated client API, you can retrieve the record with relations from the data store with both `get` and `get by key` resource methods. ::: code persist_relation_queries.bal :::