umbraco-community / umbraco-graphql

An implementation of GraphQL for Umbraco 8 using GraphQL for .NET.
MIT License
64 stars 32 forks source link

Allow "flattening" of query responses to shorten object nesting? #43

Closed PeteDuncanson closed 3 years ago

PeteDuncanson commented 5 years ago

@JackPenney found this the other week after I raised an issue with my queries looking a bit of a mess:

https://www.fourkitchens.com/blog/development/graphql-leveler-controlling-shape-query/

If I have a heavily nested query it would be nice to make the response a little nicer to read and "hoist" the value out of the nesting and into a higher up variable. The article explains it nicely with its _get helper example.

Trouble is this is in javascript and not c# so we can't use it as is but its something to look into.

rasmusjp commented 3 years ago

Hi

Just wanted to let you know that the project is moving to the Umbraco Community GitHub organisation, so we are closing all existing issues.

If you think your issue is still relevant, please feel free to reopen it.

/Rasmus