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
2
votes
0 answers

MiniMongo Subchild Sort

I'm using meteor and trying to sort a collection by a child Example: sorting [{foo:{bar:1}},{foo:{bar:9}},{foo:{bar:3}}] by foo.bar. I tried to do it with the following code: Collection.find({},{sort:{"foo.bar":1}}) However, I keep getting the…
mjkaufer
  • 4,047
  • 5
  • 27
  • 55
2
votes
1 answer

Meteor js, how to get side effect of updating whole client side document

I have a Meteor method that I call from the client, which in turn updates all fields in a single document. In the last line of code below I try to immediately run the same update on the client to get the immediate side effects (it assumes the update…
funkyeah
  • 3,074
  • 5
  • 28
  • 47
2
votes
4 answers

Meteor minimongo dynamic cursor

In my client UI I have a form with differents search criterias, and I'd like to reactively update the results list. The search query is transformed into a classical minimongo selector, saved in a Session variable, and then I have observers to do…
mquandalle
  • 2,600
  • 20
  • 24
1
vote
2 answers

Is minimongo's findOne constant time for indexed fields?

I know that findOne is constant time when using it in the following way: collection.findOne(aString) However, I can't seem to find out if it's still constant time when querying an indexed field that isn't _id. For example, I have a collection…
Cereal
  • 3,699
  • 2
  • 23
  • 36
1
vote
1 answer

Aggregate query in MongoDB using javascript trying to convert UTC string date to Date object

I'm trying to group datetimes by the hour and I am uploading data from a json file. The datetimes are in UTC format as strings though. How do I convert them to Date objects using javascript in meteor? var data = Subjects.aggregate([{$match:…
manwitha
  • 37
  • 6
1
vote
0 answers

Meteor package PersistentMongo2 tries duplicate inserts

I am testing meteor-persistent-minimongo2 for offline data support. Although the off-line data feature is working fine, I see some insert failed errors on browser console: WriteError({"code":11000,"index":0,"errmsg":"E11000 duplicate key error.…
Gokhan Karadag
  • 574
  • 6
  • 17
1
vote
1 answer

Looking for symbol to filter all

Is there a search all filter when trying to search through the db? I have multiple select boxes that I would like to get the value of and then according to the values, it searches for the data. I found that I would need to have an if statement for…
user8813240
  • 125
  • 1
  • 7
1
vote
1 answer

Upsert data with a dynamic field name

I just try to do something simple with Mongo but it doesn't work: I want to upsert datas in an object like: module.xxx.yyy then I tried many things like : UsersRights.upsert({ condoId: condoId, userId: manager._id, }, { condoId:…
Victor Castro
  • 1,232
  • 21
  • 40
1
vote
0 answers

Getting the error "Key $ must not start with '$'" in Meteor with Minimongo suddenly

I was able to do an $addToSet operation like this: return Calls.update({ _id: callId }, { $addToSet: { units: { unit: callSign, currentStatus: "AS", statusColor: "yellow", textColor: "black", …
bmcgonag
  • 109
  • 2
  • 17
1
vote
0 answers

Querying in client side minmongo on BSON NumberLong field

I have a field named 'time' that holds nanoseconds timestamps as NumberLong in MongoDB. NumberLong(212431234...) Trying to query it in the browser via time: { $gte: 2134234234... } does not yield the expected results. Is there a limitation…
elpddev
  • 4,314
  • 4
  • 26
  • 47
1
vote
0 answers

Publishing changes to a single field of a subdocument

I have a complicated data structure being built by queries on multiple collections and published. It is working great for the initial creation, and on my local machine all the changes observed are reflected in the client as expected. However, in my…
Paul S.
  • 64,864
  • 9
  • 122
  • 138
1
vote
2 answers

Meteor/Mongodb - arrays, subdocuments & overlapping subscriptions

I'm making a game; players form leagues and make competing predictions. A league looks like this: { leagueName: "Premier League", players:[ {name: "Goodie", secretPrediction: "abc"}, {name: "Baddie", secretPrediction: "def"} …
rubie
  • 1,906
  • 2
  • 20
  • 26
1
vote
2 answers

Exception in setInterval callback: MongoError: Cannot apply $pull to a non-array value

I keep getting this error in cmd while my meteor app is running. It doesn't seem to interfere with anything (nothing that I can see at least) so I can't tell its source. Exception in setInterval callback: MongoError: Cannot apply $pull to a…
wiredfordesign
  • 211
  • 3
  • 11
1
vote
1 answer

Exception in template helper: Error: Match error

I'm trying to perform a custom sort using a comparator function from within a template helper in Meteor. Here is my template helper: Template.move_list.helpers({ assets() { return Assets.find({}, { sort: sortFunction }); } }); And here is…
tim-phillips
  • 997
  • 1
  • 11
  • 22
1
vote
0 answers

Meteor+React getMeteorData not updating with correct data

I'm on the latest Meteor and React. I'm using the mongo $text search feature on the server to filter a query. I'm finding that my local data isn't changing, even though the query is being rerun correctly on the server. My component looks something…
Ruben Martinez Jr.
  • 3,199
  • 5
  • 42
  • 76