Fetch data from db


import { Order } from ‘./…/Locations.js’;

If I do this console.log(Order.find().fetch()); it gives empty array.If I am using in helper then console array with values,but I want value in an array without using helper.

I want to pass fetch data array as a parameter in given function
function getDistanceFromLatLonInKm(lat1,lon1,lat2,lon2) {




Maybe if I keep posting this on your questions you’ll actually read it:

After a string of questions like this which show a complete misunderstanding of Meteor and no replies to people asking for more information so they can help you, I’m starting to suspect that you’re a bot.

If you’re not, I’d suggest going through the tutorial:

Reading the meteor guide:

Introduction | Meteor Guide

This is the guide for using Meteor, a full-stack JavaScript platform for developing modern web and mobile applications.

And actually engaging with the people that want to help you on the forums!
These hit and run questions are quite frustrating