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'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 rematch(https://github.com/rematch/rematch) to in React JS, and for backend Its Feathers. If I want to fetch the records from database with certain conditions, I am able to pass the query from in API call in React code. Ex.  const empData...
I have a service results that handles all CRUD Operations for the results service in feathersjs. How would I create a route /results/:id/hr_bar_graph which basically fetches the result at that particular id and uses the resulting data to create an ba...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.