Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Can we do the Average of nested field? #2

Open
sandybs99 opened this issue Dec 5, 2017 · 2 comments
Open

Can we do the Average of nested field? #2

sandybs99 opened this issue Dec 5, 2017 · 2 comments

Comments

@sandybs99
Copy link

Can we do the Average of nested field?

@thepont
Copy link
Contributor

thepont commented Dec 7, 2017

Not currently no. I think It will only work on fields that are the type that is passed to the
AggregationType, I can see how this could be a little limiting.

There is no reason I can see that this couldn't be written, the fields could be iterated through on subtypes and resolvers added for allowing calculations to take place on nested fields.

@sandybs99
Copy link
Author

Thank you. Could you please share how this can be achieved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants