I’m not sure, but my guess is it needs the struct in order to figure out what to preload.
What if instead of:
select: [s.id, s.title, s.authors]
You used:
select: struct(s, [:id, :title])
I’m not sure, but my guess is it needs the struct in order to figure out what to preload.
What if instead of:
select: [s.id, s.title, s.authors]
You used:
select: struct(s, [:id, :title])