Skip to content

Commit dce4d5c

Browse files
committed
feat: add handshake function
1 parent f0705e9 commit dce4d5c

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)