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
4
votes
1 answer

Feathers-Sequelize: hasMany returns only first result, flattened

I tried feathers-sequelize today for the first time and am now struggling for a couple hours already on hasMany asociations. I want to do a simple projects (>hasMany>) issues relationship, but I'm just getting the first issue. Desired output: { …
MrSnoozles
  • 860
  • 8
  • 13
4
votes
0 answers

Issue with duplicate sort id on primary key Sequelize & Feathersjs

OK , so I managed to get the default sort order going using this (thank you ) : How Can I set the default Sort order in FeathersJs this is pulling data from mssql I added in an include in the hook to get related…
Martin Thompson
  • 3,415
  • 10
  • 38
  • 62
4
votes
2 answers

http url parameter Invalid Character Error

I have developed a REST API using feathers.js (https://feathersjs.com/). When trying to do a HTTP 'read' request in Flutter using package:http/http.dart I have encountered an error. The http.dart library is unable to correctly parse the query…
kite_n_code
  • 428
  • 5
  • 10
4
votes
1 answer

Restrict feathers service method to user for external but allow any queries for internal calls

I want to restrict calls to a Feathers service method for externals calls with associateCurrentUser. I also want to allow the server to call this service method without restricting it. The use case is that through this service then clients use a…
Matty
  • 175
  • 11
4
votes
1 answer

Writing nested path parameters in FeathersJS

How to generate multi level path parameters in feathers js like below : api.com/category/catergoryId/subCatergory/subCatergoryId
rtvalluri
  • 557
  • 2
  • 6
  • 22
4
votes
1 answer

feathersjs -> socketio https request not working

I have an application made in featherjs which I would like to run with https. I have gotten that working. I did that by changing the 'index.js' file to look like this: const fs = require('fs'); const https = require('https'); const app =…
Edgar Koster
  • 479
  • 1
  • 5
  • 18
4
votes
1 answer

How to decode jwt and get from this userId in feathersjs?

I'm using Feathers framework to my nodejs application and i have done creation of jwt in following way app.service('authentication').hooks({ before: { create: [ authentication.hooks.authenticate(config.strategies), …
KARTHIKEYAN.A
  • 18,210
  • 6
  • 124
  • 133
4
votes
2 answers

How to deploy feathersjs application in pm2?

I'm using feathersjs framework to develop nodejs application and I am trying to implement it in pm2 and it's not working. drwxr-xr-x 8 root root 4096 Sep 20 06:45 ./ drwx------ 12 root root 4096 Sep 20 06:48 ../ drwxr-xr-x 2 root root …
KARTHIKEYAN.A
  • 18,210
  • 6
  • 124
  • 133
4
votes
1 answer

Joi validation feathersjs

I have a feathersjs API with a messages service. I want to validate the message model with feathers-hooks-validate-joi module. Here is my messages-hooks.js file: const validate = require('feathers-hooks-validate-joi'); const schema =…
louis amoros
  • 2,418
  • 3
  • 19
  • 40
4
votes
2 answers

MobX + React Native : way to inject stores

I'm trying to work with MobX for a new project. I started it on May 2017, and everything was working well. I had to stop, and now I go on developing it. I had to make an npm install to manage making it working, but now, I have some problem with…
John
  • 226
  • 1
  • 3
  • 14
4
votes
1 answer

How to check associations feathers-sequelize in service hook

I`am using feathersjs. I have read the documentation. How do I execute this method to check on the service hook feathers-hook, or tell me another method of check. const { disallow } = require('feathers-hooks-common'); function include() { return…
4
votes
1 answer

Feathersjs REST Query $like

I have an problem to send a REST query to featherjs with the $like operator. Table: ID Textfield 1 andreas Query get localhost:3030/table?textfield[$like]=andreas returs the row Query…
Andreas
  • 43
  • 3
4
votes
0 answers

FeathersJS: Custom Method in a Generic Service

Is there any way to expose custom methods (aside from the defaults: [get, find, update, patch, remove]) in a generic service? I have already tried creating one, but it seems to be not accessible when I tried to use it.
Giovanni Lobitos
  • 852
  • 7
  • 19
4
votes
4 answers

MongoDB call inside feathers.js Hook

I want to get the info from a collection inside a feathers.js hook. How can i make the hook wait, until the mongodb call is complete? At the moment it sends the hook without waiting for the call to finish, i tried it with returns and promieses, but…
Hydish
  • 53
  • 8
4
votes
1 answer

How to implement custom / complex operation routes in FeathersJS

I need to implement a bunch of routes that do very custom / complex operations on a FeathersJS app. One of those routes is /Category/disableExclusiveContentsOf/:id. It runs a query against half a dozen database tables to find rows that relate to the…
Gui Prá
  • 5,559
  • 4
  • 34
  • 59
1 2
3
57 58