Questions tagged [minimongo]

Minimongo refers either to [tag:meteor] client-side MongoDB database, or the Python lightweight schemaless object-oriented interface to MongoDB.

For , Minimongo is an in-memory database with nearly full support for operations.

For , Minimongo is a lightweight, schemaless, Pythonic Object-Oriented interface to MongoDB.

It provides a very thin, dynamically typed (schema-less) object management layer for any data stored in any MongoDB collection. Minimongo directly calls the existing pymongo query syntax.

Minimongo can easily layer on top of existing MongoDB collections, and will work properly with almost any existing schema, even from third party applications.

164 questions
1
vote
1 answer

Meteor 1.0 - MinimongoError: can't append to array using string field name [-1]

Meteor 1.0 is built for MongoDB v2.4, which doesn't have the $position API that was introduced in Mongo 2.6. Therefore, I'm unable to add array item(s) to the beginning of a MongoDB array as such: { $push: { : { $each: […
Jon Cursi
  • 3,301
  • 4
  • 27
  • 53
1
vote
1 answer

Meteor Accounts-Entry how to prevent an extraSignupField from being stored to the database?

I'm using Meteor's account-entry package to handle the signin-signup action of my web app. To add a Confirm Password field to the sign up form, this is what I've done (in CoffeeScript): AccountsEntry.config logo: '/logo.png' homeRoute:…
sonlexqt
  • 6,011
  • 5
  • 42
  • 58
1
vote
0 answers

How to insert an element to the middle of an array with MongoDBv2.4/minimongo

I'm writing a music organization app with the latest version of Meteor (A new web framework.). I think that the best way to store playlists is to put each playlist in a document and put the items of the playlist in array inside the document. It…
BonsaiOak
  • 27,741
  • 7
  • 30
  • 54
1
vote
1 answer

MongoError: $each term takes only $slice (and optionally $sort) as complements

I am making a radio automation app that stores it's playlists in a mongoDB. Each document in the playlists collection looks something like this: { 'name': 'My cool playlist', 'items': [ {'fileID': 'Cr4tT47K4EfJGQzfg'}, {'fileID':…
BonsaiOak
  • 27,741
  • 7
  • 30
  • 54
1
vote
1 answer

how to get a collection in minimongo after a query

I'm working on a database monitoring App. in this app the user many kind of queries right after another. For this reason I'm subscribing every time (to pull only the information that he/she needs) the user makes a query, however it seems like the…
juanp_1982
  • 917
  • 2
  • 16
  • 37
1
vote
1 answer

Minimongo Use Cases

In Meteor, minimongo makes it very easy to query the database from within the browser console. But I'm still having trouble understanding why being able to view data in this manner is considered so beneficial. It is nice on occasion to open up the…
1
vote
1 answer

Meteor update several entries on an anonymous collection client side

I got an unexpected behaviour while trying to update all the entries on an anonymous collection (client side). Only one entry is updated instead of all. I expected the following code to return true, it does not: TEST = new Meteor.Collection(null);…
Flavien Volken
  • 19,196
  • 12
  • 100
  • 133
1
vote
1 answer

meteor client minimongo retains subscribed collection info after logout. newly-logged-in-user sees old data

I'm using a publish to limit which data a user sees in their report Meteor.publish("companyReport", function(){ if(!this.userId) return null; var user = Meteor.users.findOne(this.userId); var userCompany = user.profile.company; var userRole =…
aaron p
  • 443
  • 1
  • 5
  • 10
1
vote
1 answer

Meteor - Is it possible to query the database for items with a field that are equal or less than a value?

In my Meteor app my items in the database have a createdOn field with a date object as the value. I'd like to query for all items that were created on or before a certain date. Is there a way to match on items with a value equal or less than a value…
kbascombe
  • 87
  • 5
1
vote
1 answer

Clear local Meteor Mongo collection on user logout

I am starting to heavily use local minimongo collection LocalItems = new Meteor.Collection null SomeOtherItems = new Meteor.Collection null and i'd like to be able to empty all of these local collections when a user logs out; any suggestions?
sillyclown
  • 11
  • 2
0
votes
0 answers

How to get the total number of documents with minimongo from a RemoteDb collection without downloading all documents?

When using minimongo with a RemoteDb collection, I do not want to fetch thousands of rows documents then paginate them on the client, but I'd rather fetch them partially, as the user needs, and cache them on a local collection (e.g. MemoryDb, using…
Yanick Rochon
  • 51,409
  • 25
  • 133
  • 214
0
votes
2 answers

MongoDB and Minimongo sorting null and undefined differently

When sorting ascending in MongoDB, result is that null and undefined are first and then fields with value. When sorting ascending in Minimongo, result is that null is first, then fields with value and then undefined at the end. This difference is…
0
votes
1 answer

Meteor Tracker not receiving subscriptions automatically

I'm creating some templates using Template.onCreated, and am then using Tracker.autorun to make some subscriptions and then collect data from the Server and store them on the client's MiniMongo. Then, I can leave said Template and eventually route…
user2402616
  • 1,434
  • 4
  • 22
  • 38
0
votes
0 answers

Meteor.js, multiple insertions in different collections by submitting a form

I am trying to insert elements in 2 different collections with a submit. Here is the problem : When I try the first submit, it only works for the first insert. If I change the order of inserts, it only works for the first insert too. The problem is…
Kanon
  • 1
  • 1
0
votes
1 answer

inserting/caching in minimongo from Meteor.call

Because I need to pull large amounts of data from the client, I use Meteor.Call to fetch the data. When doing so, the data is not inserted in the minimongo Adapter on the client. Any idea how I can do this ? Can we access the minimongo instance on…
Nathan Schwarz
  • 631
  • 5
  • 19