Add full working example to docs
examosa opened this issue · comments
There's currently a disconnect in the docs between defining the relationships and creating named queries. It's unclear what all of the options for a populates
entry do. A full working example repo/doc would be helpful!
I completely agree. I'm not sure when I'll get to this, but thanks for filing this issue as my reminder.
@marshallswain any luck with this
I forgot that there's already a full example in this repo: https://github.com/marshallswain/feathers-graph-populate/tree/master/src
Check the hooks file for each service to see the current setup. You'll see that the relationships are defined in the service.schema.js file, but I generally just put them at the top of the hooks file, now.