Improve uuid
usage in bal persist
learn page
#8141
Labels
Area/LearnPages
Issues related to all the pages of the Learn section.
Category/Content
All written content related issues (Technical content, english language etc)
Type/Improvement
Improvements required on the website.
Description
$subject
The
persist
learn page uses anEmployee
record to add to the data store.https://ballerina.io/learn/manage-data-persistence-with-bal-persist/#create-a-new-employee-record
The provided sample uses
uuid:createType4AsString()
to create a unique id. And in the samples that follow it uses a hard-coded string as an id to retrieve/modify/delete the record entries.https://ballerina.io/learn/manage-data-persistence-with-bal-persist/#retrieve-the-employee-record-by-key
As the generated id can differ randomly, the further samples can fail which may confuse the user.
Similar to the other learn pages, it's better to provide a step-by-step approach to the users where the code context can be gradually developed.
Related website/documentation area
Describe the problem(s)
Describe your solution(s)
Related issue(s) (optional)
Suggested label(s) (optional)
Suggested assignee(s) (optional)
The text was updated successfully, but these errors were encountered: