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
3
votes
1 answer

Uncaught Reference Error: collection is not defined---in meteor app

this is the .js file which lies at imports/ui of my meteor project. import React from 'react'; import {Tasks} from './../api/tc'; export default class Task extends React.Component{ render(){ return(
Shaswat Lenka
  • 544
  • 5
  • 11
3
votes
1 answer

merging two collections time stamped data and showing real time result

The Inocmes and Expenses collections used complete separately in many places in whole app. there is only one page which have the below requirement. I don't believe there is no workaround in Mongodb, which really have millions of users :( I am using…
Abdul Hameed
  • 1,008
  • 1
  • 15
  • 35
3
votes
3 answers

How to update property in multiple objects in an array for one document in Meteor collection/minimongo?

My question is almost a duplicate of this question. The difference is that I am using minimongo within the Meteor framework/platform. Given this document: { "_id" : ObjectId("4d2d8deff4e6c1d71fc29a07"), "user_id" :…
3
votes
1 answer

Meteor can't find by id in a Mongo.Collection

I'm trying to select a record by it's _id, but it's not working. I'm having the same problems in the javascript console as in the Meteor code, so I'll run through an example in the console for simplicity. I have two Articles in my collection. I'm…
cgenco
  • 3,370
  • 2
  • 31
  • 36
3
votes
2 answers

Possible to find all client side collections from the console?

I have a meteor.js application and I would like to take a look at what information is included in all client side collections. There are about 20 client side collections and I know that I can access them one by one and have them return their…
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
3
votes
1 answer

How can you tell when Meteor minimongo has been synchronized with the mongo server

I have a Meteor application and I want be able to check on the client side when all the changes made by the client to a published Collection have been written to the server. I've looked at minimongo and the code in the ddp-server, but I don't see…
Peter
  • 31
  • 2
3
votes
1 answer

Does Meteor.call affect optimistic UI?

When I do a Meteor.call instead of a direct collection manipulation on both client and server. Does it remove the optimistic UI changes, aka minimongo changes and simply does direct to server change and wait for update on server before updating the…
Kelvin Zhao
  • 2,243
  • 3
  • 22
  • 31
3
votes
1 answer

Is there any workaround to the Mongo _id field type limitation?

I am using Meteor with a pre-existing database which uses custom objects in the _id field. I have defined the structure with Meteor like this: _id: { type: Object, label: "ID" }, "_id.templateId" : { type: String, label: "Template…
Marco Tribuzio
  • 103
  • 1
  • 1
  • 6
3
votes
1 answer

Where does the _id being generated (and checked)?

The database action insert now seems to be synchronous returning _id right after the insertion, therefore no callback is needed here. The question lies on where does the _id being generated (and checked), since this seems to be a fast synchronous…
Ziac
  • 70
  • 5
3
votes
1 answer

meteor minimongo getting inconsistent collection.findOne() results

I've been trying to debug a chunk of code for some hours now, banging my head against the wall, and finally pinpointed my issues to a place in the code where assigning the results of a collection.findOne() call to a variable is giving me different…
soisystems
  • 194
  • 1
  • 8
3
votes
0 answers

How much database ( size ) is suitable to store in the local storage of Meteor?

I have been using Meteor for a while and totally in love with this framework. However, I have one curiosity. Meteor keep one replica of database in the local storage of browser. But in some cases, for example, fetching details of the user in a…
Amit Gupta
  • 533
  • 6
  • 17
3
votes
1 answer

$and inside $elemMatch not working in Meteor

I have the following query { lessen: { $not: { $elemMatch: { $and: [ {start: {$lt: new Date()}}, {eind: {$gt: new Date()}} ] } } …
Damiaan Dufaux
  • 4,427
  • 1
  • 22
  • 33
2
votes
1 answer

Sorting a meteor pointer based on a record's nested field that may not exist

I have this collection, the objects in them look like: { name: 'Apple', listOrder: { default: 1, wallmart: 1 } color: 'Red' }, { name: 'Orange', listOrder: { default: 2, wallmart: 3 } color: 'Orange' }, { name:…
Spencer Cornwall
  • 289
  • 2
  • 14
2
votes
2 answers

Meteor - using snychronised non-persistent / in-memory MongoDB on the server

in a Meteor app, having real-time reactive updates between all connected clients is achieved with writing in collections, publishing and subscribing the right data. In normal case this means also database writes. But what if I would like to sync…
karlitos
  • 1,604
  • 3
  • 27
  • 59
2
votes
0 answers

Meteor Minimongo insert documents returned from Method leads to Error on subscriptions

Consider a collection created for server and client: export const MyCollection = new Mongo.Collection('myCollection') I receive Documents from the Server due to performance reasons via Methods: server Meteor.methods({ getDocs() { return…
Jankapunkt
  • 8,128
  • 4
  • 30
  • 59
1
2
3
10 11