-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/guide/working with data #449
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This documentation looks great, and the illustrations effectively help with visualization! However, I believe adding some code examples would significantly enhance its utility for hApp developers. It would be beneficial to include examples demonstrating how records/ links are created, updated, deleted, and read using methods like create_entry
, get
, get_details
, delete_link
, create_link
etc.
What do you think?
src/pages/build/working-with-data.md
Outdated
* The **agent ID** of the author | ||
* A timestamp | ||
* The type of action | ||
* The hash of the previous action in the author's history of state changes, called their **source chain** (note: the first action in their chain doesn't contain this) | ||
* The index of the action in the author's source chain | ||
* The **weight** of the action, which is a calculation of the cost of storing the action and can be used for rate limiting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding a link to the docs for each method call they can use to get the respective action data would be very helpful
Here is the ref if I am not mistaken: https://github.com/holochain/holochain/blob/develop/crates/holochain_integrity_types/src/action.rs#L234
Fair enough, the links should suffice then |
Add an overview page for working with data in Holochain. Covers actions/records, entries, links, CRUD, and source chains.