-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Hello, i have a new proposal, allow to return a value of nested field in an alias
it`s a very good if you have a lot of nested fields and a client only need a field inside.
example:
Data:
{
"id": 1,
"nested_one": {
"id": 1,
"nested_two": {
"id": 1
}
}
}
Today: query={nested1: nested_one{id, nested2: nested_two{id}}} return
{
"nested1": {
"id": 1,
"nested2": {
"id": 1
}
}
}
Proposal query={nested1: nested_one__id, nested2: nested_one__nested_two__id} or maybe a dotted version query={nested1: nested_one.id, nested2: nested_one.nested_two.id} and return
{
"nested1": 1
"nested2": 1
}
Metadata
Metadata
Assignees
Labels
No labels