feathers-findone

1.0.2 • Public • Published

feathers-findone

npm version

Adds a .findOne() method to services in Feathers.js v3

Install

npm install feathers-findone --save

Configure on server and client:

const findOne = require('feathers-findone')
 
app.configure(findOne())

Use

app.service('messages').findOne({/* params */})

All it does is set query.$limit = 1 to the params and return the first result of .find()

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    46
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    46
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i feathers-findone

Weekly Downloads

48

Version

1.0.2

License

MIT

Last publish

Collaborators

  • fridays