The convention with LoopBack is to use snake case for database column names and convert them to camel case for model attributes.
If we're executing scripts directly rather than using LoopBack wrappers (such as repository.find()), we need to explicitly convert the column names to the corresponding model attributes as expected by the client.
The result of snake case is that several planter attributes are missing in the UI, including photo and name.
The convention with LoopBack is to use snake case for database column names and convert them to camel case for model attributes. If we're executing scripts directly rather than using LoopBack wrappers (such as
repository.find()
), we need to explicitly convert the column names to the corresponding model attributes as expected by the client.The result of snake case is that several planter attributes are missing in the UI, including photo and name.