|
| 1 | +diff --git a/node_modules/apollo-datasource-mongodb/dist/cache.js b/node_modules/apollo-datasource-mongodb/dist/cache.js |
| 2 | +index a89c686..443ba9c 100644 |
| 3 | +--- a/node_modules/apollo-datasource-mongodb/dist/cache.js |
| 4 | ++++ b/node_modules/apollo-datasource-mongodb/dist/cache.js |
| 5 | +@@ -134,7 +134,7 @@ const createCachingMethods = ({ |
| 6 | + $or: filterArray |
| 7 | + }; |
| 8 | + (0, _helpers.log)('filter: ', filter); |
| 9 | +- const findPromise = model ? model.find(filter).exec() : collection.find(filter).toArray(); |
| 10 | ++ const findPromise = model ? model.find(filter).lean().exec() : collection.find(filter).toArray(); |
| 11 | + const results = await findPromise; |
| 12 | + (0, _helpers.log)('results: ', results); |
| 13 | + const orderedDocs = orderDocs(fieldsArray, results); |
1 | 14 | diff --git a/node_modules/apollo-datasource-mongodb/index.d.ts b/node_modules/apollo-datasource-mongodb/index.d.ts
|
2 |
| -index f06b4dd..6c31e07 100644 |
| 15 | +index f06b4dd..f486087 100644 |
3 | 16 | --- a/node_modules/apollo-datasource-mongodb/index.d.ts
|
4 |
| -@@ -39,7 +40,7 @@ declare module 'apollo-datasource-mongodb' { |
| 17 | ++++ b/node_modules/apollo-datasource-mongodb/index.d.ts |
| 18 | +@@ -39,7 +39,7 @@ declare module 'apollo-datasource-mongodb' { |
5 | 19 | protected collection: Collection<TData>
|
6 | 20 | protected model: Model<TData>
|
7 | 21 |
|
|
0 commit comments