From 9943d49f2bb503877301bf3f38bb435c4bf45ac6 Mon Sep 17 00:00:00 2001 From: Paul d'Aoust Date: Fri, 29 Mar 2024 13:06:48 -0700 Subject: [PATCH] add mention of scaffolding tool --- src/pages/build/guide/entries.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/build/guide/entries.md b/src/pages/build/guide/entries.md index 737895ff8..5f70d4eaa 100644 --- a/src/pages/build/guide/entries.md +++ b/src/pages/build/guide/entries.md @@ -395,6 +395,10 @@ match maybe_details { } ``` +## Scaffolding an entry type and CRUD API + +The Holochain dev tool command `hc scaffold entry-type ` generates the code for a simple entry type and a CRUD API. It presents an interface that lets you define a struct and its fields, then asks you to choose whether to implement update and delete functions for it along with the default create and read functions. + ## Community CRUD libraries If the scaffolder doesn't support your desired functionality, or is too low-level, there are some community-maintained libraries that offer opinionated and high-level ways to work with entries. Some of them also offer permissions management.