absinthe-graphql / absinthe_ecto

DEPRECATED: Use dataloader
MIT License
130 stars 36 forks source link

Extracts query_fun resolution to fix associations #21

Closed matthewlehner closed 7 years ago

matthewlehner commented 7 years ago

Previously the query function resolution relied on the association struct containing a queryable attribute. This isn't present in the Ecto.Association.HasThrough struct, so we fall back to Ecto.assoc(parent, association) when no query function is present.

Also, closes #18

benwilson512 commented 7 years ago

Excellent, thank you!