Good evening,
I just started with loopback (literally), so I went for the commands explained in the documentation:
Started the loopback project with the command:
slc loopback
Generated a model with the loopback model generator with the command:
slc loopback:model
When the generator starts, it asks for model name, storing method, base class, plural, whether we want it to be a common model or a server model. After that it asks for the properties of the model.
I have a model that could be like this:
MODEL NAME
Property1 : String,
Property2 : String,
Property3 : Number,
Property4 : {
obj.Property1 : String,
obj.Property2 : String,
obj.Property3 : String
},
Property5 : String
I thought that by choosing "Object" as the type of property it would ask me for additional properties on that object, but it didn't. Now I have no idea how to create those additional properties that are inside the object of this model.
How would I go about creating the properties that are nested inside the Property4 Object? Am I missing something from the loopback:model generator?