Closed hughesjs closed 2 years ago
Thanks @cosullivan for answering my SO question related to many-many relationships which helps somewhat with this but I would still appreciate some further guidance please. Then I'll be more than happy to contribute to the docs.
So I think my issue isn't actually to do with what I thought it was, so I'm closing this and opening a new issue for the actual issue.
I'm attempting to use this library but there seems to be a lack of information in the docs that's making this difficult.
For instance, it's not clear to me whether
.BackingField()
is required or not. It's also not clear when we have to use the various relationship building methods.The best guess I can make from the quick-start is that
.With()
is used for eachtype
your API can return and then you useBelongsTo()
orHasMany()
for any relationships that get returned for that object. However, that then raises the question of what we do when there's a single has relationship (there's no.Has()
) or when an object might belong to many other objects.This has currently led to me having developed quite a complicated model for the ESA's discosWeb API but I'm unable to get it to work. I get this error:
But because of the lack of docs, I'm not even sure where to start. If you'd take a look at this PR and point me in the right direction, I'd really appreciate it.
If someone would be so kind as to explain this to me in a bit of detail, I'm more than happy to prepare additional docs and to contribute them with a PR.