You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That happens when Loaders::RecordLoader#perform calls fulfill with a key that wasn't among the keys passed into perform.
The problem is that you are passing an array of ids in as a single key, which it doesn't find using the id of a single record. Instead use Loaders::RecordLoader.for(Product).load_many(Product.ids)
I'm using the base example with RecordLoader, like this in a resolver
Loaders::RecordLoader.for(Product).load(Product.ids)
I'm getting this error:
KeyError (key not found: 6)
6
is the first id loaded. I think its somehow related topromise_for(load_key)
in loader.rb.Has anyone had this happen?
The text was updated successfully, but these errors were encountered: