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

There is currently no documentation on defining relationships. #270

Closed
chasinglogic opened this Issue Apr 15, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@chasinglogic

chasinglogic commented Apr 15, 2016

I have been browsing the issues and documentation for this project for a while now. The only guide available shows how to create one model (Post) and how to query / update it however you never relate that to anything.

I found out about #[has_many] and #[belongs_to] by reading #89 however there is no example there that I could glean (which would make sense since that's not the topic of that issue). However that does make it sound like it's possible to define relationships currently in Diesel.

I looked through the rustdoc for this library as well and couldn't find anything that would help either. I'd be willing to write this documentation but unfortunately I can't even figure out how to get started :'(

Ideally the current getting started guide could just be updated to add a relationship to post like comments or user for example.

If I have somehow missed the examples of using these traits I apologize.

@sgrif

This comment has been minimized.

Member

sgrif commented Apr 15, 2016

This is because defining relationships is not a stable/supported feature. It's a work in progress that is likely to change significantly. I'm hoping to have this feature finished for the next release. #89 is the tracking issue for this feature.

@sgrif sgrif closed this Apr 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment