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.
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.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.