Questions tagged [feathers-sequelize]

81 questions
0
votes
1 answer

Sequelizejs: no auto-generation of methods from associations

I am trying to setup a m:n association using feathersjs with sequelize. I am following this 'instruction', but have to adjust to updates feathersjs has gone throught in the meantime. My hook to associate an already created user with an already…
musicformellons
  • 12,283
  • 4
  • 51
  • 86
0
votes
1 answer

How to access the .setup function on a feather-sequelize object?

I want to nest a service behind another one, just as described in the FAQ and this issue As I understood, you need the .setup property to get access to the app object, on which you can add a listener that you link to your service. So far so…
DrakaSAN
  • 7,673
  • 7
  • 52
  • 94
0
votes
0 answers

Why the relationship between the tables not work? [FeathersJS - sequelize]

I have: - the framework Feathers ^2.2.3 - ORM sequelize (feathers-sequelize ^2.3.2) - MySQL database - 2 tables (between them should work communication) in file category.model.js describe the relationship: category.associate = function (models)…
0
votes
1 answer

Feathers sequelize and one time associations

I would like to make for certain feathers services calls that require to load some associations. The problem is, that when I do it the "feathers way" with hooks, the hooks are not one time, but stay on. Is there a way to do a "feathers way one time…
Tino
  • 3,340
  • 5
  • 44
  • 74
0
votes
1 answer

feathersjs/sequelize -> results of a 'find' are not equal to defined 'select'

Situation In a project I have this code to select data from a table. Please note, it is working, I only don't get the result I expect. serviceSurveyQuestions.find({ query: { survey_id: this.survey_id, user_id:…
Edgar Koster
  • 479
  • 1
  • 5
  • 18
0
votes
1 answer

Catch invalid request & return error with feathers-sequelize

I am new to feathers and am building an API, generated with feathers-cli. If the client performs an invalid GET request: eg. http://localhost:3030/stations/?asdfasdf it returns a 500 error: ER_BAD_FIELD_ERROR: Unknown column 'stations.asdfasdf' in…
Finne
  • 150
  • 3
  • 8
1 2 3 4 5
6