nodejs-graphql-mysql-example icon indicating copy to clipboard operation
nodejs-graphql-mysql-example copied to clipboard

how to get relations data?

Open thephucit opened this issue 7 years ago • 3 comments

Thank for your sharing this example project. however, I don't know how to get relation data Is it able to set hasOne, hasMany, belongsTo for each models?

Thank

thephucit avatar Dec 31 '18 07:12 thephucit

Hello, How Can I do that for join tables? thank you

KLadnany avatar Mar 04 '19 11:03 KLadnany

Hi, you can use Sequelize to solve for MySQL, MariaDB, Postgres or MySQL database you can also visit for another issues

https://sequelize.org/master/manual/getting-started.html

And also a beneficial article for this https://codeburst.io/build-a-rest-api-for-node-mysql-2018-jwt-6957bcfc7ac9

Augustpi avatar Jul 26 '19 18:07 Augustpi

Hello, how can I do the list of id's using graphql

KumariLakshmi avatar Apr 23 '21 09:04 KumariLakshmi