Seems to be working for me. Got the result →
"data": [
{
"phone.phone_number": 222222222,
"~link_customer_phone": [
{
"customer.name": "Bob"
},
{
"customer.name": "Charlie"
}
]
}
]
}
First let me correct the schema a bit, it should be as follows →
<customer.country_code>: string @index(exact) .
<customer.id>: int @index(int) .
<customer.name>: string @index(term) .
<customer.registration_time>: datetime .
<dgraph.drop.op>: string .
<dgraph.graphql.p_query>: string @index(sha256) .
<dgraph.graphql.schema>: string .
<dgraph.graphql.xid>: string @index(exact) @upsert .
<link_customer_phone>: [uid] @reverse .
<phone.country_code>: string .
<phone.phone_number>: int @index(int) .
<phone.registration_time>: datetime .
type <Customer> {
customer.country_code
customer.id
customer.registration_time
customer.name
link_customer_phone
}
type <Phone> {
phone.country_code
phone.phone_number
phone.registration_time
}
type <dgraph.graphql> {
dgraph.graphql.schema
dgraph.graphql.xid
}
type <dgraph.graphql.persisted_query> {
dgraph.graphql.p_query
}
Also are you possibly running the image on M1 ? (Docker M1 has stability issues)