Query json how convert python object

Moved from GitHub pydgraph/67

Posted by 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 

martinmr commented :

Can you be more specific? It’s not clear at all what feature you need.

martinmr commented :

Closing due to inactivity.