Skip to content

Commit

Permalink
0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lorensr committed Sep 4, 2021
1 parent 327f6ae commit 4129737
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apollo-datasource-mongodb",
"version": "0.5.1",
"version": "0.5.2",
"description": "Apollo data source for MongoDB",
"main": "dist/index.js",
"types": "index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions src/__tests__/cache.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,13 @@ describe('createCachingMethods', () => {
expect(collection.find.mock.calls.length).toBe(1)
})

// See datasource.test.js, where we test against a database instance
// (so we don't have to update our already-complex collection.find mock)
//
// it('finds by nested ObjectID field', async () => {
// const foundDocs = await api.findByFields({ 'nested._id': objectID })

// expect(foundDocs[0]).toBe(docs.three)
// expect(foundDocs.length).toBe(1)

// expect(collection.find.mock.calls.length).toBe(1)
// })

Expand Down
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export const isCollectionOrModel = x =>

export const getCollection = x => (isModel(x) ? x.collection : x)

const DEBUG = true
const DEBUG = false

export const log = (...args) => DEBUG && console.log(...args)

0 comments on commit 4129737

Please sign in to comment.