Questions tagged [smartcollection]

This is a complete re-write of the MongoDB Collection implementation for Meteor.

6 questions
40
votes
3 answers

Using Multiple Mongodb Databases with Meteor.js

Is it possible for 2 Meteor.Collections to be retrieving data from 2 different mongdb database servers? Dogs = Meteor.Collection('dogs') // mongodb://192.168.1.123:27017/dogs Cats = Meteor.Collection('cats') //…
Athena Wisdom
  • 6,101
  • 9
  • 36
  • 60
2
votes
2 answers

Meteor.js: MongoDB bulk/batch Upsert

I have been scouring the internet for a few hours to look at a solution where doing bulk upserts in Meteor.js's smart collections is efficient. Scenario: I am hitting an api to get updated info for 200 properties asynchronously every 12 hours. For…
Jehanzeb.Malik
  • 3,332
  • 4
  • 25
  • 41
2
votes
2 answers

Flickering effect when using Meteor's SmartCollection

The results of a query on a SmartCollection Fruits are rendered in a Meteor template. A Python script continuously insert documents in the fruit collection. collections/fruits.js Fruits = new…
Athena Wisdom
  • 6,101
  • 9
  • 36
  • 60
1
vote
1 answer

Loop for editing shopify collections

I'm pretty new to Ruby scripting and have made a script to loop through product collections in Shopify to change the 'product match condition' on all collections but I can't seem to get it to work at all unless I specify the collection ID. I keep…
1
vote
1 answer

Meteor SmartCollection giving inconsistent results

On the browser JS console, News.insert({name: 'Test'}) caused {{count}} to increase from 0 to 1. In mongo console mrt mongo, db.news.find().count() returns 1. However after adding a record via the mongo console db.news.insert({name: 'TestAgain'}),…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
0
votes
2 answers

Meteor Moving from Collection to SmartCollection Breaking Templates

I am using 0.7.0.1 Meteor and am trying to update from Collection to SmartCollection. See below... the first one works and the second one doesnt (but does when I switch back from SmartCollection to Collection). The _id works in both cases but not…
timmyg13
  • 503
  • 1
  • 5
  • 15