diff --git a/lib/dao.js b/lib/dao.js index bc04d80b..50b9eef9 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -330,7 +330,7 @@ setRemoting(DataAccessObject.exists, { description: 'Check whether a model instance exists in the data source', accepts: {arg: 'id', type: 'any', description: 'Model id', required: true, http: {source: 'path'}}, - returns: {arg: 'exists', type: 'any'}, + returns: {arg: 'exists', type: 'boolean'}, http: {verb: 'get', path: '/:id/exists'} });