We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 912c30c commit c3f59bdCopy full SHA for c3f59bd
src/dataLoaders.ts
@@ -82,7 +82,7 @@ export default class DataLoaders {
82
private async batchByField<
83
// eslint-disable-next-line @typescript-eslint/no-explicit-any
84
T extends { [key: string]: any },
85
- FieldType extends object | string
+ FieldType extends ObjectId | string
86
>(collectionName: string, values: ReadonlyArray<FieldType>, fieldName: string): Promise<(T | null | Error)[]> {
87
const valuesMap = new Map<string, FieldType>();
88
0 commit comments