Skip to content

Commit

Permalink
Update the relation query sample
Browse files Browse the repository at this point in the history
  • Loading branch information
daneshk committed Jun 1, 2023
1 parent 6990cb0 commit 3971087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/persist-relation-queries/persist_relation_queries.md
Original file line number Diff line number Diff line change
@@ -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/).
Expand All @@ -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 :::

Expand Down

0 comments on commit 3971087

Please sign in to comment.