Grapher link by non-_id field


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.


import { CollectionA } from './collectionA';
import { CollectionB } from './collectionB';

    '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?


Just using field: 'CollectionA_ID' should work.