Skip to content

query json how convert python object #67

@heysion

Description

@heysion

We will need this feature:

def create_bob(name="Bob",firend=Alice):
    p = {
           'name':name,
            'friend':Alice,
           'age':30,
        }
     txn.mutate(set_obj=p)
     txn.commit()

Alice = query(name="Alice")
create_bob(name="Bob",firend=Alice)
schema:
    name: string @index(exact) .                                                                              
    friend: uid @reverse .                                                                                    
    age: int .              

object-Alice
uid: 0x1
name: Alice
age:26

set object Bob:
name: Bob
age:26
friend:_Alice 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions