Absinthe Child Project for Parent/Child Fields

Hi, I ran into an issue where I wanted to selectively apply some joins based on if some child fields were included within the top level query of an edge’s node (I think that’s the proper term/order?)

I have a field like so:

widget {
edges {
  node {
    id
    name
    sumOfChildData
  }
 }
}

It would be great if I can somehow check for the sumOfChildData from the resolution to see what fields from my node is required, then I can selectively query for the data.

Something similar is the Absinthe.Resolution.project/1 but that will only give me edges and pageInfo.

I posted the issue on github and was redirected to here: Absinthe.Resolution.project/1 for child fields · Issue #198 · absinthe-graphql/absinthe_relay · GitHub