Open geofflane opened 2 months ago
The HasManyThrough
field is currently still in beta stage and not really easy to use / configure. It also has some bugs. We are already working on a new version which is basically a rewrite under the hood.
There is a (somewhat) working example in the demo - maybe this will help you in the meantime.
Describe the bug Trying to create a HasManyThrough field to a resource that has a BelongsTo and get an error:
no match of right hand side value: nil
lib/backpex/fields/belongs_to.ex
The assigns is getting the schema for the Root resource and not for the "Through" resource.
Example Schemas and Config
Expected behavior I'd exepect this case to work and display the values from the "Through" resource.