exists

How to identify if a schema element exists.

Synopsis

schema.<schema_element>('author').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.
gremlin>  schema.vertexLabel('author').exists()
The resulting list:
==>true