Data Types

StringProperty

// Some code

class Project(VertexModel):
    graph = graph
    properties = {
        'name': StringProperty(min_length=1, max_length=10, trim_whitespaces=True)
    }

IntegerProperty

// Some code
from invana.ogm import fields  
class Project(VertexModel):
    graph = graph
    properties = {
        'age': fields.IntegerProperty(min_value=1, max_value=100)
    }

FloatProperty

// Some code
from invana.ogm import fields  
class Project(VertexModel):
    graph = graph
    properties = {
        'rating': fields.FloatProperty(min_value=1, max_value=100)
    }

BooleanProperty

DateTimeProperty

Last updated

Was this helpful?