string
Basic string mapping. Since string is the most commonly used property type you can access it without writing thetype and value property. This is meant as syntactic sugar making it easier and quicker to work with.
Fields
Examples
Property type: string
Property type: string with value and default
number
Basic number or integer mapping.The size of the number is limited to the size of a C# double.
Fields
Examples
Property type: number
boolean
Basic boolean mapping.Fields
Examples
Property type: boolean
array
Mapping of an array, defining the input to iterate and the items definition. Array property type is designed for working with collections.Fields
string type
A simple example showing how to use a string type in items.
string simple example
$exp input
With expression input, you can reference the desired property on the source entity that is an array.
$exp input
$path input
With path input, you can select the desired items on the source entity using the path selector.
$path input
$path input with filter
$lookup input
Lookup input comparing to $exp allows you to define query-like and criteria match source entities lookup conditions.
$lookup with single property value match
$lookup with a single property
$lookup with filter
Particular lookup filter type allows you to be more flexible with your matching criteria.
Additional
Arrays have some additional properties available:-
rootFor schemas it will contain the source entity and for partial schemas the input. It is possible to access everything from the source entity likeroot.originIdorroot.properties.headline. All property values initemsthat supports expressions can accessroot. -
parentIf having multidimensional arraysparentcan be used to access items of the parent array. For the first arrayparentwill be equal toroot. For the next levelsparentwill be equal toitemof the parent array. All property values initemsthat supports expressions can useparent.
object
Mapping of an object.Fields
Examples
Property type: object
reference
Referencing another schema. The reference property type is a bit different than string, number, boolean, etc. This property types allows referencing other views created from either this Source Entity or from another source entity. When referenced Enterspeed will resolve the view when requested by the Delivery API, so that the data will stay up-to-date. In order to reference desired source entity, you can usealias of the schema and id or originId of the source entity and optionally a different source than the current source entity.
Fields
Examples
Property type: reference (static value) with originId
Property type: reference (static value)
Property type: reference (dynamic value)
alias can either be a static value, like “Seo” or it can be a dynamic value being resolved from the Source Entity that is being processed by Enterspeed. This allows for supporting almost any use case.
Reference response
The response of references differs in V1 and V2+ of the Delivery API. V1 return the id, type and wraps the properties from the referenced view in aview property. The response of references in V2+ is much more clean and only return the actual properties from the referenced schema. If a reference is not found in V2+ the reference information are added in the missingViewReference property in the meta object for debug purpose.
Delivery API V1 uses a nested view property
Delivery API V2+ only returns the actual view properties
partial
Referencing a partial schema to map the data into. The partial mapping property type allows for dynamically including partial schemas into the main schema. This is useful when you need to iterate an array of different objects that has an identifier, like an ID, alias or similar.Fields
Examples
Property type: partial
input defines what goes into the partial schema and the alias is used to resolve what partial schema to use. So in this case we could have partial schema with alias: Block-headline.
dynamic
Fields
Examples
Property type: dynamic