We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Documented here: http://thinky.io/documentation/api/document/#addrelation http://thinky.io/documentation/api/document/#removerelation
Either the implementation was removed but docs never updated, or it was planned but never implemented. Easy enough to patch in:
Document.prototype.addRelation = function (field, joinedDoc) { let model = this.getModel() let pk = this[model._pk] return model.get(pk).addRelation(field, joinedDoc) } Document.prototype.removeRelation = function (field, joinedDoc) { let model = this.getModel() let pk = this[model._pk] return model.get(pk).removeRelation(field, joinedDoc) }
The text was updated successfully, but these errors were encountered:
Ah thanks, I think I just forgot to actually implement it, but like you said it's pretty straightforward.
Sorry, something went wrong.
12e4e39
No branches or pull requests
Documented here:
http://thinky.io/documentation/api/document/#addrelation
http://thinky.io/documentation/api/document/#removerelation
Either the implementation was removed but docs never updated, or it was planned but never implemented. Easy enough to patch in:
The text was updated successfully, but these errors were encountered: