help wanted
倉庫指標
- Star
- (12,520 star)
- PR 合併指標
- (平均合併 5天 2小時) (30 天內合併 1 個 PR)
描述
Hi, is it possible chain two dataloaders? I have one resolver where I need using two dataloaders, is it possible? I can't use SQL join because it's slow.
async (row, _, { dataSources }) => {
const partialData = await dataloader1(dataSources).load(row.id);
if (partialData === null) {
return null;
}
return await dataloader2(dataSources).load(partialData.id);
}