Change Password

Input error
Input error
Input error
Submit
v2.x

Modification

5.1 Update Node

  • Update by node id:

    from ultipa import Connection,ULTIPA_REQUEST,FILTER
    conn = Connection(host='host:port', username="root", password="root")
    ret = conn.updateNode(ULTIPA_REQUEST.UpdateNode(id=[1], values={'age': 1}))
    print(ret.toJSON())
    
  • Update by node filter:

    from ultipa import Connection,ULTIPA_REQUEST,FILTER
    conn = Connection(host='host:port', username="root", password="root")
    ufilter = FILTER.EqFilter(name='id',value=1)
    ret = conn.updateNode(ULTIPA_REQUEST.UpdateNode(filter=ufilter,
    		values={'age': 20}))
    print(ret.toJSON())
    

5.2 Update Edge

  • Update by edge id:

    from ultipa import Connection,ULTIPA_REQUEST,FILTER
    conn = Connection(host='host:port', username="root", password="root")
    ret = conn.updateEdge(ULTIPA_REQUEST.UpdateEdge(id=[1], 
    		values={'rank': 1}))
    print(ret.toJSON())
    
  • Update by edge filter:

    from ultipa import Connection,ULTIPA_REQUEST,FILTER
    conn = Connection(host='host:port', username="root", password="root")
    ufilter = FILTER.EqFilter(name='id',value=1)
    ret = conn.updateEdge(ULTIPA_REQUEST.UpdateEdge(filter=ufilter,
    		values={'rank': 20}))
    print(ret.toJSON())