In this scenario, the result, the thing returned from the add function, is the link instance. I see that the other Link operations similarly return the link instance, I assume to allow chaining.
My question is, is it possible to get the document id or the document itself, of the comment that was created? I can't see a way to do it as the return from the update is never stored anywhere. This isn't as much of an issue with other link operations like set but the add operation is a particular case where it'd be useful.
Hi,
First of, let me say this is a fantastic package. I've found a specific situation that isn't accounted for in many links.
Consider this contrived situation - adding a link from the many side to create a comment linked to a particular post:
In this scenario, the
result
, the thing returned from theadd
function, is the link instance. I see that the other Link operations similarly return the link instance, I assume to allow chaining.My question is, is it possible to get the document id or the document itself, of the comment that was created? I can't see a way to do it as the return from the update is never stored anywhere. This isn't as much of an issue with other link operations like
set
but theadd
operation is a particular case where it'd be useful.Is there something I'm missing?