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

hook object in error handler feather js

I have the following situation, i have a middleware that add a flag when a user is logging //if some situation happend req.feathers.isAuthenticated = true; //else req.feathers.isAuthenticated = false; next(); and i have a hook that check if a user…
stalin
  • 3,442
  • 2
  • 25
  • 25
0
votes
1 answer

create-react-app yields 'the request of a dependency is an expression' in express/lib/view.js

I'm trying to get a jump start with React and like the simplicity of the create-react-app tool created by Facebook and described here: https://facebook.github.io/react/blog/2016/07/22/create-apps-with-no-configuration.html Can anybody tell me what…
Nikola Schou
  • 2,386
  • 3
  • 23
  • 47
0
votes
1 answer

How to compare database fields in FeathersJS

I need to find all records where columnA <= columnB. I don't see any mention of this feature in the documentation. Is it possible? How?
Gui Prá
  • 5,559
  • 4
  • 34
  • 59
0
votes
2 answers

How can I target the current page navigation in Express?

Right now, I am doing this via jQuery, like so: $(".navigation__item a").each(function () { if (window.location.pathname === $(this).attr("href")) { $(this).parent().addClass("active"); } }); However, this isn't full-proof so I'd like to…
NetOperator Wibby
  • 1,354
  • 5
  • 22
  • 44
0
votes
1 answer

FeathersJS Mongoose: Updating matched sub-document not working

I want to update a value of a sub-document where a message has a specific id and an user id is in a recipient array. I want to update a value of the matched object with the specified user id. When I run the following query on the MongoDB CLI,…
tan
  • 51
  • 1
  • 8
0
votes
1 answer

Should I be using Mongoose queries in Feathersjs hooks

I have a Mongodb based Feathers service : Categories and the model is as follows { _id : 'SOMEKEY', categoryName : 'XYZ' categoryItems : [ { item_id : 'ITEMID' } ] } Now I have After hooks on my Items service that on each Create I want…
TJ_
  • 255
  • 3
  • 12
0
votes
0 answers

Using Nunjucks in Feathers

I have a Feathers app. This weekend I decided to migrate the app from Swig to Nunjucks. In an attempt to do this, I have the following in my ./routes/index.js file: 'use strict'; module.exports = function() { const app = this; const path =…
Some User
  • 5,257
  • 13
  • 51
  • 93
0
votes
1 answer

How to set mysql password in yeoman generated config for feathersjs

I am a relative noob for learning node js and have used yeoman to generate an application for the feathers js framework based on their getting started video. This process generates a config/default.js for connecting to the MySQL database that looks…
bkudrle
  • 71
  • 7
0
votes
1 answer

FeathersJS on server with multiple hosts

I have a VPS that runs apache on with many domains (all same IP), but I want to start running nodeJS/feathersJS for some of my sites. I can't seem to figure out how to run multiple instances other than with different ports. However, all the feathers…
0
votes
0 answers

Add data / populate data to the user object

I'm new to FeathersJS and want to add additional data to the user object after authorization. (I want to access the data with app.get('user').newData) First I tried to set a value in hook.result.newData, but it doesn't work. I'm only able to change…
tan
  • 51
  • 1
  • 8
0
votes
1 answer

Mongoose Validation using Feathersjs and Vue

How do I use validation with queries in Mongoose with Feathers/Vue stack? This is what I am experiencing. Any query terms passed to the feathers-mongoose service has to be passed in the Vue model for it to run the query which filters out returned…
armand
  • 693
  • 9
  • 29
0
votes
1 answer

How to update sub-array?

I know how to create things in Feathers (systemService.create(category);), but how would I create something in a sub-collection? I would like to insert category into systemService[0].productCategories, but haven’t figured out how to do that. Here's…
NetOperator Wibby
  • 1,354
  • 5
  • 22
  • 44
0
votes
1 answer

Pass API response data to Handlebars

I am using the feathers js client locally to access a remote feathers server. I am using handlebars (foundation 6 Yeti setup) on the client. This code will pass either an [Object, Object] (the original response) or a json string to the…
BrioDev
  • 105
  • 2
  • 12
0
votes
1 answer

Understanding FeathersJS hooks

I'm following the tutorial. In Asynchronous hooks, there's a snippet like this: todoService.before({ find(hook) { return this.find().then(data => { hook.params.message = 'Ran through promise hook'; hook.data.result = data; //…
anhldbk
  • 4,559
  • 5
  • 29
  • 37
0
votes
1 answer

How to use feathers client with webpack

According to the docs, I can use feathers/client but when I try let feathers = require('feathers/client'); let app = feathers(); which is compiled by webpack, I get ./~/feathers/package.json Module parse failed:…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805