Skip to content

Commit 7eb10de

Browse files
Merge pull request #43 from dadi/feature/handshake-function
Add handshake function
2 parents f0705e9 + dce4d5c commit 7eb10de

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

lib/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,17 @@ DataStore.prototype.find = function ({ query, collection, options = {}, schema,
182182
})
183183
}
184184

185+
/**
186+
* Responds to API with information about the data connector module.
187+
*
188+
* @return {Object}
189+
*/
190+
DataStore.prototype.handshake = function () {
191+
return {
192+
version: '4.1.0'
193+
}
194+
}
195+
185196
/**
186197
* Insert documents into the database
187198
*

0 commit comments

Comments
 (0)