Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any full example about database relationship? #141

Closed
kieusonlam opened this issue Jul 19, 2017 · 2 comments
Closed

Is there any full example about database relationship? #141

kieusonlam opened this issue Jul 19, 2017 · 2 comments

Comments

@kieusonlam
Copy link

kieusonlam commented Jul 19, 2017

I want to find an example about database relationship.

I did make a repo about a blog api for practice - Currently It have Post and Tag with Many to Many relationship.
https://github.com/kieusonlam/blogapi
follow this tutorial
https://www.youtube.com/watch?v=TUEhRlKxrOQ

I can create Post and Tag with relation. But how about update relation like I have a post with 3 tag, I want to remove one tag from post or so.

From

{
  "title": "First Post",
  "tags": [
    { "name": "First Tag" },
    { "name": "Second Tag" },
    { "name": "Third Tag" }
  ]
}

to

{
  "title": "First Post",
  "tags": [
    { "name": "First Tag" },
    { "name": "Third Tag" }
  ]
}

What did you guys do in real world application?

@DesignByOnyx
Copy link
Contributor

DesignByOnyx commented Jul 21, 2017

Thanks for putting togethers those guides! However, this is not really the place to ask questions - please use the FeathersJS Slack channel or StackOverflow. This is also more of a sequelize question than a feathers related one. Once you understand how to accomplish this using sequelize, you can then follow the guides on achieving sequelize associations with feathers. If you have any further questions, please feel free to reach out in Slack (join here).

@kieusonlam
Copy link
Author

Thanks you. I see question and help wanted in labels. Then I though I can post question here. Sorry for bordering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants