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 mo...
I am trying to extend find() method for a service named properties in my FeathersJS app.  What I need is appending in all records returned by find() an array with integers coming from another service named propertyadds. This means I need to change my...
I'm trying to create some REST API with user roles like admin, superadmin etc. I was trying to achieve this by using feathers-permissions module, but there are none working examples and the internet. Have you ever dealt with such task? What I do...
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...
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() {...
im trying to use the new populate hook, but it doesn't seem to work. I just don't know what i'm doing wrong.  I have the merchatTypeMap model related 1:1 to the merchants model, and when i query the merchantTypeMap, it should answer with...
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),...
I'm try to update mongodb document in single field, I have doubt to which method i want to use either patch or update using feathers framework, give an example how we can do it.   const { authenticate } = require('feathers-authentication'...
I'm new to feathersjs framework and try to write aggregation query it's not working properly.  hook.app.query = {     lookup: {       from: "orders",       localField:"serviceLocationId",       foreignField:"serviceLocatio...
I am using featherjs v2.0.3 with sequelize v3.29.0 and I just created three models, the third having a relationship to the other two.    I used the feathers-cli to generate services for each and then edit the model file of each.  So far, so good, the...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.