You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
Why are more files been generated as needed, when generating a sevice and selecting an db-connection?
In this example with sequelize and mysql, the files users.mongo.js and users.mongoose.js aren't needed. Same happend when selecting mongodb. Then sequelize and mongoose files aren't needed.
Didn't checked all combinations.
I'm expecting only one of them to be genereated.
? What is the name of the service? users
? What would you call one row in the users database? user
? What kind of service is it? Sequelize
? Place service code in which nested folder, e.g. v1/blog? (optional)
? Which path should the service be registered on? /users
? Should this be served by GraphQL? Yes
skip src\services\users\users.class.js
skip src\services\users\users.interface.js
skip src\app.interface.ts
skip src\typings.d.ts
? Which database are you connecting to? MySQL (MariaDB)
? What is the database connection string? mysql://root:@localhost:3306/xyz
skip src\typings.d.ts
No locked version found for mysql2, installing latest.
skip src\typings.d.ts
force config\default.json
create test\services\users.test.js
create src\models\users.model.js
create src\services\users\users.service.js
create src\services\users\users.schema.js create src\services\users\users.mongo.js
create src\services\users\users.mongoose.js
create src\services\users\users.sequelize.js
create src\services\users\users.validate.js
create src\services\users\users.hooks.js
force src\services\index.js
force src\app.js
create src\sequelize.js
The text was updated successfully, but these errors were encountered:
Feathers advertises itself as being able to quickly switch between different databases. That is why all these files are potentially needed.
The reason they are actually generated is because you could add custom code to some of them. For example you added custom code to be used with the Sequelize adapter, and other custom code to be used with the Mongoose adapter.
All the modules are retained because you may be using the Sequelize adapter but, in order to quickly switch to the Mongoose adapter, the Mongoose module must have been retained.
Why are more files been generated as needed, when generating a sevice and selecting an db-connection?
In this example with sequelize and mysql, the files users.mongo.js and users.mongoose.js aren't needed. Same happend when selecting mongodb. Then sequelize and mongoose files aren't needed.
Didn't checked all combinations.
I'm expecting only one of them to be genereated.
? What is the name of the service? users
? What would you call one row in the users database? user
? What kind of service is it? Sequelize
? Place service code in which nested folder, e.g.
v1/blog
? (optional)? Which path should the service be registered on? /users
? Should this be served by GraphQL? Yes
skip src\services\users\users.class.js
skip src\services\users\users.interface.js
skip src\app.interface.ts
skip src\typings.d.ts
? Which database are you connecting to? MySQL (MariaDB)
? What is the database connection string? mysql://root:@localhost:3306/xyz
skip src\typings.d.ts
No locked version found for mysql2, installing latest.
skip src\typings.d.ts
force config\default.json
create test\services\users.test.js
create src\models\users.model.js
create src\services\users\users.service.js
create src\services\users\users.schema.js
create src\services\users\users.mongo.js
create src\services\users\users.mongoose.js
create src\services\users\users.sequelize.js
create src\services\users\users.validate.js
create src\services\users\users.hooks.js
force src\services\index.js
force src\app.js
create src\sequelize.js
The text was updated successfully, but these errors were encountered: