exists

How to identify if a schema element exists.

Synopsis

schema.<schema_element>('person').exists()

Description

Discover if a particular schema element exists using this command. This command can be used with vertexLabel, edgeLabel, or propertyKey.

Examples

Discover if a particular vertex label exists. The return value is a boolean value.
schema.vertexLabel('person').exists()
The resulting list:
==>true