You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

feathers-findone

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers-findone

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

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
49
-27.94%
Maintainers
1
Weekly downloads
 
Created
Source

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()

Keywords

feathers

FAQs

Package last updated on 25 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts