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
Curious why there is an explicit null check in the toString(). Why not treat undefined the same as null and use ''? You can see a pattern that we use a lot in our code and it fails because the map at the end returns undefined.
returnnewRedisDataLoader('prefix',newDataLoader(async(ids)=>{constresults=awaitpool.query(`select * from foo where id = any($1) `,[ids],)constkeyById=keyBy(results.rows,'id')returnids.map((id)=>keyById[id])},{cache: false},),{ONE_HOUR,},)
The text was updated successfully, but these errors were encountered:
Curious why there is an explicit null check in the toString(). Why not treat undefined the same as null and use ''? You can see a pattern that we use a lot in our code and it fails because the map at the end returns undefined.
The text was updated successfully, but these errors were encountered: