-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Toruf objects can have different prop types:
- text
- array
- object
A text prop will simply get replaced unless modified by an object method. Theres several different types of text props mainly:
- textInput (standard)
- link
- image
- textBody
An array prop will reloop a particular section defined with the {[OBJECT]}{/[OBJECT]} tags for all of the elments of that array. if array tags arent use it will simply reloop the text object inside a
object.An object prop is a relation to another object. An item can be related to an instance of another object (1to1) or it can be related to all occurrences or some occurrences of the other object (1toM).
in a 1to1 relation you must iclude the id of the related object. For a 1toM you must exclude the id property. Check out the examples bellow:
1to1
{
"class_room_5":{
"room_number":5,
"teacher":{
"object":"teacher",
"id":"john_smith"
}
}
}
1toM
{
"class_room_5":{
"room_number":5,
"teacher":{
"object":"teacher"
}
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels