Skip to main content
There is no Date property type. But if you ingest your dates as strings in the following format yyyy-MM-ddTHH:mm:ss, you can still sort by date and the value can easily be parsed to Date on the client in JavaScript and other languages.

string

Basic string mapping. Since string is the most commonly used property type you can access it without writing the type 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
Filter items:
$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:
  • root For schemas it will contain the source entity and for partial schemas the input. It is possible to access everything from the source entity like root.originId or root.properties.headline. All property values in items that supports expressions can access root.
  • parent If having multidimensional arrays parent can be used to access items of the parent array. For the first array parent will be equal to root. For the next levels parent will be equal to item of the parent array. All property values in items that supports expressions can use parent.

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 use alias of the schema and id or originId of the source entity and optionally a different source than the current source entity.
Reference schemas are typically used when you are mapping data from another entity. Eg. a page has a reference another page entity or media entity.Read more about reference schemas here

Fields

Examples

Property type: reference (static value) with originId
Property type: reference (static value)
Property type: reference (dynamic value)
The 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 a view 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.
Partial schemas are typically used when you want a reusable schema for mapping data that is part of the same entity. Eg. meta data (title, description, …) is the same across different entity types but the data lives on the entity it self.Read more about partial schemas here

Fields

Examples

Property type: partial
The 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.
If you want to pass the entire current source entity to input, you can use {root}.

dynamic

Fields

Examples

Property type: dynamic