0
Gentlemen, I’m using this code on the Meteor:
var teste = Orders.findOne({name : 'Day'}).day;
To Get the day value on this record:
{_id: "HzoGFKRmYzmH8Yx6A", name: "Day", day: "Jan 27th 18"}
It gives an error, but redeems the amount I want, is there any way to redeem this value without this error?
Where are you running this (
var teste = Orders.findOne({name : 'Day'}).day;
) command, server-side or client-side?– Cristiano Gilberto João