Display/edit a nested document

This example shows you how to use a smart field to display and update a nested document.

Nested document in Forest Admin are not visible in the table view and are are displayed as a JSON in the details view. To make the document information more visible you can choose to display a smart field.

Requirements

  • An admin backend running on forest-express-mongoose

How it works

Directory: /models

This directory contains the users.js file where the model is declared.

Directory: /forest

This directory contains the users.js file where the Smart Field fistnameis declared.

Last updated

Was this helpful?