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 135f8b8 commit aabe4c4Copy full SHA for aabe4c4
src/__tests__/cache.test.js
@@ -132,6 +132,12 @@ describe('createCachingMethods', () => {
132
expect(collection.find.mock.calls.length).toBe(1)
133
})
134
135
+ it(`memoizes with Dataloader`, async () => {
136
+ await api.findOneById(docs.one._id)
137
138
+ expect(collection.find.mock.calls.length).toBe(1)
139
+ })
140
+
141
it('finds by field', async () => {
142
const foundDocs = await api.findByFields({ foo: 'bar' })
143
0 commit comments