You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

property_info()

Usage

property_info(type, name)

Description
Returns a property info object for the property of the given type with the given name. A property info object has the following structure:

Field Description Type
dbName Database (Neo4j) name - can be used in Cypher etc. String
jsonName JSON name (as it appears in JSON REST output) String
className Class name of the property type String
declaringClass Name of the declaring class String
defaultValue Default value or null String
contentType Content type or null (String only) String
format Format or null String
readOnly Read-only flag Boolean
system System flag Boolean
indexed Indexed flag Boolean
indexedWhenEmpty Indexed-when-empty flag Boolean
unique Unique flag Boolean
notNull Not-null flag Boolean
dynamic Dynamic flag Boolean
relatedType Related type (for relationship properties) String
type Property type from definition String
uiType Extended property type for Edit Mode (e.g. String, String[] etc.) String
isCollection Collection or entity (optional) String
databaseConverter Database converter type (internal) String
inputConverter Input converter type (internal) String
relationshipType Relationship type (for relationship properties) String

This method can be used to create dynamic forms for a given type, based on a list of property keys or a view definition. See Dynamic Forms

Examples

${property_info('User', 'ownedNodes').uiType}

results in

NodeInterface[]

Search results for "property_info()"

property_info()

Returns a property info object for the property of the given type with the given name. A property info object has the following structure:

Field Description Type
dbName Database (Neo4j) name - can be used in Cypher etc. String
jsonName JSON name (as it appears in JSON REST output) String
className Class name of the property type String
declaringClass Name of the declaring class String
defaultValue Default value or null String
contentType Content type or null (String only) String
format Format or null String
readOnly Read-only flag Boolean
system System flag Boolean
indexed Indexed flag Boolean
indexedWhenEmpty Indexed-when-empty flag Boolean
unique Unique flag Boolean
notNull Not-null flag Boolean
dynamic Dynamic flag Boolean
relatedType Related type (for relationship properties) String
type Property type from definition String
uiType Extended property type for Edit Mode (e.g. String, String[] etc.) String
isCollection Collection or entity (optional) String
databaseConverter Database converter type (internal) String
inputConverter Input converter type (internal) String
relationshipType Relationship type (for relationship properties) String
property_info(type, name)