properties 

How to add properties to a vertex label or edge label.

Synopsis

properties('name').add()

Description

Properties can be added to vertices and edges. A property key must be created prior to adding it to either type of element. Allowed characters for the name are alphabetical or underscore.

Examples

Add a property key to a vertex label. The property key nationality must exist prior to adding it to the vertex label.
schema.vertexLabel('author').properties('nationality').add()
Add more than one property to a vertex label.
schema.vertexLabel('author').properties('nationality', 'age', 'assocRestaurants').add()