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

Is minimongo present on a server instance running Meteor?

I have a Meteor API with with a job collection and I want to create a Meteor app to deploy on multiple servers to work as distributed workers. Will minimongo be present on these servers as well? (as my server side app is not using the…
mrlarssen
  • 325
  • 8
  • 19
1
vote
0 answers

Exception in queued task: TypeError: Cannot read property 'splice' of undefined , angular-meteor

I am using angular-meteor for my project. When I removed 'autopublish' and added publish methods for my collections, I am getting a following error in console, when I am trying to fetch any data. Exception in queued task: TypeError: Cannot read…
1
vote
1 answer

How can I sort a minimongo cursor by date?

I would like to sort a minimongo cursor using a date field. It appears that $orderBy will be deprecated according to the mongoDB documentation (not that I know if it works with minimongo) and sort() does not seem to work. Is there a way to sort a…
Billybobbonnet
  • 3,156
  • 4
  • 23
  • 49
1
vote
2 answers

Meteor React - Why is findOne on a single document not found in miniMongo when it does exist?

This is such a weird problem. I think it has to do with how I am querying the document. It seems like the Meteor API has changed to query documents but the docs on the website are the same. Here is a document in the database: meteor:PRIMARY>…
Nearpoint
  • 7,202
  • 13
  • 46
  • 74
1
vote
1 answer

Convert nested document collection to model tree structure with parent references

I need to convert a collection with nested documents to a model tree structure with parent references. So this is how my structure looks like: { "_id" : "sdaGREsfRdfGdFdwG", "docTitle" : "Document 1", "group" : [ { …
user3142695
  • 15,844
  • 47
  • 176
  • 332
1
vote
3 answers

Meteor mongo array each returns error

I have a collection with following entry { "_id" : "6z2pQDYozQxEyPZYv", "userId" : "b2dQ6SuPrwmPsLsg8", "communicatingWith" : [ "KMT74bWPoZxDSKdrx", "KMT74bWPoZxDSKdrx" ] } when I query mongo through meteor for the field…
boredmgr
  • 272
  • 1
  • 7
  • 20
1
vote
1 answer

Sorting of the nested array causes no changes in order

I have a collection defined with the following structure: // Websites { _id: "adasdasda", title: "Site 1", comments: [{ text: "nice site 2014", createdOn: "Sat Dec 26 2014 11:28:57 GMT+0100 (CET)" }, { text:…
sziolkow
  • 173
  • 1
  • 12
1
vote
1 answer

How does Meteor handle dependent failed optimistics operations?

How does Meteor's optimistic UI handle server rejections and errors on dependent operations? If I do : var item1Id = Items.insert({list: groceriesId, name: "Watercress"}); // op1 var item = Items.findOne({_id: item1Id}); Items.update(item, {$set:…
opsb
  • 29,325
  • 19
  • 89
  • 99
1
vote
0 answers

Minimongo Error on Serverside Meteor Script?

I'd like to push elements to a mongo array, and I have this query which should would with the current version of meteor mongo (2.6.7). This is the query: Coll.upsert({},{ $push: { 'events': { $each: [{'id':…
lol
  • 3,910
  • 2
  • 37
  • 40
1
vote
1 answer

How does Meteor create a unique MongoDB _id on the client side?

According to Meteor docs about the Mongo.Collection.insert() function, insert will generate a unique ID for the object you pass, insert it in the database, and return the ID. It also works asynchronously: If you do provide a callback, insert…
aedm
  • 5,596
  • 2
  • 32
  • 36
1
vote
0 answers

Minimongo errors when I try to update a document containing an array

I'm having trouble updating an array that is contained in a document using angular-meteor. Minimongo throws an error documentMatches needs a document. The document that throws this error on update is shown below. One thing it contains is an array…
user3413723
  • 11,147
  • 6
  • 55
  • 64
1
vote
0 answers

How does Meteor.js handle realtime computations (realtime leaderboard, for example)

Let's say I have a query like Users.find().sort({score: 1}).limit(3) which I publish on the server. So, I have some code like this: Meteor.publish("leaders", function () { return Users.find().sort({score: 1}).limit(3) }); Now, let's say, there…
Jatin
  • 14,112
  • 16
  • 49
  • 78
1
vote
1 answer

How to find one collection item by an arbitrary property, but not _id, in Meteor?

I have an application that uses Flow Router and its pub/sub mechanics. I also have a collection and template helpers. The code is, on client Template.theCase.helpers({ theCase: function () { var id = FlowRouter.getParam('id'); …
rishat
  • 8,206
  • 4
  • 44
  • 69
1
vote
0 answers

How to connect meteor mongo which is running on different port?

How to connect meteor mongo which is running on different port? I ran meteor on different port using following command meteor --port=3010 I know that minimongo is running on 3011 port. Now i want to connect to mongoshell using 'meteor mongo'…
1
vote
1 answer

Why my helper doesn't re-run when the collection I call inside it is updated?

I have a template with a video player. It gets the video source from a mongo document, using an helper. Here is how it looks like: The helper: 'currentItemUrl' : function() { //I only have one project. Is there a better/cleaner way to obtain it…
Billybobbonnet
  • 3,156
  • 4
  • 23
  • 49