Use Forest Admin with a read-only database
Please be sure of your agent type and version and pick the right documentation accordingly.
This is the documentation of the forest-express-sequelize
and forest-express-mongoose
Node.js agents that will soon reach end-of-support.
forest-express-sequelize
v9 and forest-express-mongoose
v9 are replaced by @forestadmin/agent
v1.
Please check your agent type and version and read on or switch to the right documentation.
Use Forest Admin with a read-only database
Although you'd be denying yourself some native features of Forest Admin (CRUD), this may be mandatory for you because of your project's architecture or security requirements.
If you only want some fields to be read-only, check out this section.
To set up Forest Admin with a read-only database, follow those steps:
Step 1: set all your collections as read-only
A collection can be set as read-only from its settings, accessible using the Layout Editor mode:
You must disable all permissions there, as described in this section.
Repeat this for each of your collections.
Step 2 (optional): interact with your data using Smart Actions
At this point, your Forest interface allows you only to browse your data and not interact with it.
You still have the opportunity to interact with your data according to your processes with a little coding:
Create and manage Smart ActionsLast updated