-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
Description
Support for aliased fields would be great. The natural format would of course be to set the alias as the property value instead of true
.
const query = {
query: {
fruits: {
name: true,
colour: 'color',
flavour: 'flavor'
}
}
}
should result in:
{
query: {
fruits {
name
colour: 'color'
flavour: 'flavor'
}
}
}
I do realize however that that would introduce breaking changes for people using truthy values.
ylg and willyou