Questions tagged [feathersjs]

Feathers is a library that extends Express with the ability to easily create shared RESTful web services and real-time APIs using SocketIO and other websocket libraries.

Feathers is a library that extends Express with the ability to easily create shared RESTful web services and real-time APIs using SocketIO and other websocket libraries.

Useful links

Related tags

859 questions
15
votes
3 answers

How to extend a Sequelize model?

Is there a way that I could use a base class that has all the common attributes and methods for my models but not linked with a database table, and then I could extend this base class when defining new models. Here I have created the base, person…
v1shva
  • 1,261
  • 3
  • 13
  • 28
13
votes
1 answer

Feather JS vs Express JS

Recently I have been learning about Feather JS. However I am pretty much confused by the difference between Express and Feather. One of the most important reason people use Feather is because of its capability to provide real time API. Can't Express…
tnkh
  • 1,749
  • 2
  • 14
  • 30
11
votes
2 answers

Why after upgrade feathersjs I receive error: MethodNotAllowed

I upgraded my feathersjs version from 2.x.x to 3.9.0 Now I have a problem with hooks (after) this is my query: app.service('duties').patch(id, { $set: { status: 0 }}, {}); I have below code in my hook after: var query = { "duties._id": result._id…
SeaDog
  • 645
  • 1
  • 9
  • 32
10
votes
3 answers

Jest and RANDOMBYTESREQUEST open handles

I have a FeathersJS api project running Jest for testing. My tests suite is working fine. However, it always ends with the following warning message: Jest has detected the following 2 open handles potentially keeping Jest from exiting: ● …
Soullivaneuh
  • 3,553
  • 3
  • 37
  • 71
10
votes
1 answer

Typescript Object is possibly undefined after type guard error TS2532

I'm using Typescript 2.3.4, Node.JS 8.0.0, and the Feathers framework (version 2.1.1). I am making an express route that uses a service, and when I try to use the service after grabbing the singleton instance on the feathers app, Typescript is…
Sean Newell
  • 1,033
  • 1
  • 10
  • 25
9
votes
3 answers

Nodemailer - email send but not receive

I'm build an API with feathersjs and I need to send an email with an attachment. The email seems to be send but I receive nothing. In my mail.service.js const nodemailer = require('nodemailer'); const transporter = nodemailer.createTransport({ …
Ragnar
  • 2,550
  • 6
  • 36
  • 70
9
votes
1 answer

Feathers calling custom API method

I define my api with something like the below: class MyFeathersApi { feathersClient: any; accountsAPI: any; productsAPI: any; constructor(app) { var port: number = app.get('port'); this.accountsAPI = app.service('/api/accounts'); …
Moshe Shmukler
  • 1,270
  • 2
  • 21
  • 43
8
votes
1 answer

Why am I getting "Cannot log after tests are done?"

This is my first foray into jest. I am attempting to run the "stock" test for my service, i.e., the one feathersjs sets up for you when it creates the service via the cli. The service uses an asychronous function with a callback, where I do some…
boing
  • 499
  • 2
  • 6
  • 22
7
votes
2 answers

Can't listen to event sent from feathers server to client

I'm building a server which uses feathers and socketio. I'm trying to use feathers channels mechanism to notify relevant users (connections) on relevant events. Users belong to groups, so upon connecting to the server, I add the connection to the…
MrBens
  • 1,227
  • 1
  • 9
  • 19
7
votes
1 answer

Feathers - restrict service response to data owned by current user only

In Feathers the goal is to restrict the data accessible on a certain service to the data owned by the currently logged in user only. Assuming that I am using Feathers authentication, the data available on this service is stored in a database table,…
Matty
  • 175
  • 11
7
votes
3 answers

Feathers.js / Sequelize -> Service with relations between two models

I've got feathers.js functioning with mysql via sequelize. This is working, I can collect data from tables. Next step is to define 'joins' in the models. I have a table with a column 'status_id' and 'country_id'. These columns reference to an id in…
7
votes
2 answers

FeathersJS with Firebase architecture

I have an existing Firebase application (Which was built for quick prototyping and which is now grown big, I don't intend to move because existing dependencies and also because ease of use and authentication tied up) and I am trying to build a Rest…
6
votes
1 answer

Add Custom Endpoint For Service ( Feathersjs )

I am new to NodeJS world. I found FeatherJS is a awesome tools/framework to build API service with very less Coding I need to add a custom service endpoint (like : localhost/servicename/custom-end-point ). I also need to grab data from user…
coder618
  • 848
  • 1
  • 9
  • 12
6
votes
1 answer

How to properly define the Typescript type of the feathers client

I'm starting out with feathers 4.3 and Typescript 3.6 and have a question how to properly define the right Typescript type for the feathers client (browser side). I have taken the react chat code from…
Torsten Uhlmann
  • 645
  • 5
  • 13
6
votes
1 answer

FeathersJS seems to limit queries to 1000 even if you set $limit to above 1000

I've been using feathers a lot and love it, but I need to return over 1000 records for a special case. However, no matter what I do, Feathers returns a query resetting $limit to 1000, and only returns 1000 records. I know it's getting my $limit…
Nick Steele
  • 7,419
  • 4
  • 36
  • 33
1
2 3
57 58