865 questions
0
votes
0
answers
18
views
Ambiguous column when joining table using createQuery
In my database all tables have key Id. How should I join tables correctly?
For example, right now I'm trying to join the Users and Companies tables like this:
export class UserService<ServiceParams ...
0
votes
1
answer
24
views
How to track the usage log of a FeatherJS gateway?
I have created a microservice gateway with FeatherJS and I want to track usage logs. Can you please advise me on the steps to do this or recommend a library?
1
vote
1
answer
840
views
how to read data from .xlsx file with exceljs
I am sending a .xlsx file through body form-data with key=excel, type=file, and value=text.xlsx. I want to read the values obtained from the excel file.
async create(data, params) {
console....
1
vote
1
answer
345
views
How do I set a custom response header in Feathers V5?
I need to set up an end point for Prometheus. The end point requires a custom header:
"Content-Type": "text/plain; version=0.0.4; charset=utf-8"
I tried setting up a custom hook (...
0
votes
1
answer
48
views
Passing JWT on server FeathersJS 5
when my server starts, I need to fetch data from external API and then save them into my database. This works well, but I have little problem.
My function for saving
import { EventFetcher } from '....
0
votes
1
answer
61
views
How to add a new service on top of an existing path
I'm trying to build a service whose path I wanted to extend from an existing path. Here's my scenario. I have one service called instances which has, among others, the path /instances/<id>/ ...
0
votes
1
answer
245
views
How to load initial data in a Database table in feathers.js
Here's a problem I'm banging my head around since months now:
I'm searching for an elegant,consistent way to initialize a table, the first time it is created, whithin feathers-knex
I'm using feathers....
1
vote
0
answers
1k
views
Using FeathersJS typebox schema how do I specify a conditionally required field?
I am writing my first feathersjs application and I do not know how to specify a conditionally required field in the feathers schema (which is based on ajv and typebox). Basically, I have an '...
0
votes
1
answer
77
views
Create a query between two timestamps in feathersjs
How do I create a query in feathersjs where I can find all the rows between two timestamps. I am using mysql as the database.
This is what I have so far:
const moment = require("moment");
.....
1
vote
1
answer
68
views
WebSockets not working if nodeProcessCountPerApplication is set to anything else than 1
We have a nodeJS express app using feathers und we use websockets hosted on Windows Server with iisnode.
If we set nodeProcessCountPerApplication to 1 everything works fine.
If we set it to 2 or zero ...
0
votes
1
answer
122
views
feathers.js V5 How to check if user is loggedin without using authenticate hook
How to check if a user is logged in Feathers,it seems only when using the authenticate hook will user be populated in the context params. is there a way to check on a non-restricted path like in the ...
0
votes
1
answer
87
views
Add custom saved params on featherjs
Im noobs use FeatherJS and I stuck on roles and permissions management in FeatherJS
I have tables contains users, users_role, and roles. Table roles have relationship with two permissions table. I ...
0
votes
1
answer
157
views
How to access the user object when it's in a feathers-sequelize many-to-many association?
I'm trying to build a hook that will restrict certain user actions to specified security roles. But I'm having trouble accessing the user record from a second hook, when the users model is associated ...
1
vote
1
answer
83
views
Await two Promises in feathersJS
// users.hooks.js
const userDeletion = require('../userdeletion/userDeletion');
const triggerUserDeletion = () => {
return async (context) => {
const userDeletionRes = userDeletion(...
0
votes
1
answer
1k
views
How to upload a base64 encoded image and save to mysql database?
Currently, I am encoding images in a Vue.js application to base64 and save them in a MySQL database using feathers.js and feathers-objection. The data type in the table is LONGTEXT, which works fine ...
0
votes
1
answer
100
views
Feathersjs link or unlink existing account (accessToken) oauth login
Is there a way to link or unlink existing account (accessToken) oauth login to feathersjs
1
vote
1
answer
141
views
Configure FeahtersJS with Sequelize ORM when using serverless
I'm trying to create a solution with FeathersJS and deploying it to AWS lambda function using serverless framework.
I used feathers generate app to create my application and choose sequelize as ORM to ...
0
votes
1
answer
431
views
Feathers js how to customize get service endpoint
So I want to attach a url to my user requests which is in another service. How to customize get request?
const { Service } = require('feathers-sequelize')
exports.Users = class Users extends Service {...
0
votes
1
answer
520
views
Auto increment from a custom id in sequelize with feathers-js not working
I am trying to create a table that autoincrements starting from 1000.
Following this example, here's my code:
const Sequelize = require("sequelize");
const DataTypes = Sequelize.DataTypes;
...
-1
votes
1
answer
540
views
feathers js: how to validate access token
So after authenticating I get an access token in which I store in browser session. My question is, in case user refreshes, how do I validate the token?
1
vote
2
answers
232
views
Feathersjs logger and hooks
Using FeathersJS and Sequelize-MariaDB for this particular App.
The DB and Service seem OK from the basic FeathersCLI initialisation
We then remove the logger module and replace it with our in-house ...
1
vote
0
answers
250
views
Using VueJS + FeathersJS + Feathers-Vuex, getting this error: Uncaught TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.default is undefined
Here is the error:
Uncaught TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.default is undefined
<anonymous> index.js:7
js app.js:96
__webpack_require__ app.js:397
fn app.js:643
&...
0
votes
1
answer
697
views
How to use feathers with graphql?
I want to build graphql in feathers.
And try below method。
from index.js
/* eslint-disable no-console */
const logger = require('./logger');
const app = require('./app');
const port = app.get('port');...
0
votes
0
answers
783
views
Recursively populate parent-child tree from MongoDB collection
I have a MongoDB database with a collection, using a mixture of Parent and Child References.
Each document in the collection includes two properties: parentId and childIds.
The parentId property is an ...
0
votes
1
answer
174
views
How to prevent multiple validations with async requests?
I have a user's item that needs to be validated 10 times (variable value) by other users. And when the item is validated 10 times, the item's owner gets a number of points.
But my problem is, if 400 ...