Hi!
I’m playing around with Grapher and have a case where I want to get some other documents through a link, but where field
is not _id
.
I.e.
import { CollectionA } from './collectionA';
import { CollectionB } from './collectionB';
CollectionA.addLinks({
'documentB': {
type: 'one',
collection: CollectionB,
field: '_id'
}
});
From what I understand that’s gonna search for where documentB._id === documentA._id
. I’m looking to do where documentB.CollectionA_ID == documentA._id
. How can I change the field property in my addLinks
call to account for this?
Thanks