I20190104-09:37:10.018(1)? _maxListeners: undefined }
W20190104-09:37:10.045(1)? (STDERR) (node:92454) UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
W20190104-09:37:10.046(1)? (STDERR) at JSON.stringify (<anonymous>)
W20190104-09:37:10.046(1)? (STDERR) at Object.DDPCommon.stringifyDDP (packages/ddp-common/utils.js:116:15)
...
And I see that comes from the
const entry = resultGet('searchEntry');
So that indicates to me that there is a JSON.stringify() call somewhere in Meteor.wrapAsync() which don’t like that circular structure of the resulting entry. It needs to return entry.object somehow?