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

Duplicate IDs in Local Collection when Meteor subscription changes

Here's my scenario: I have a collection of calendar events. Some events have a recurrence rule attached to them. When I subscribe to events in the client, I'm creating a new local collection called LocalEvents. I loop through all of my events that…
Sean
  • 2,609
  • 1
  • 18
  • 34
0
votes
2 answers

Minimongo nested query embed documents

i want to search into an embed document in mongodb and return only what i'm looking for. Here's the document: "_id" : "yH8HmCPz6H6E8Hinq", "between" : [ "4bgdLrztpqgwAkZP4", "9jZhXHjAkoY7mmX7B" ], "messages" : [ { "content" :…
0
votes
0 answers

How convert Untrust Code to Trusted Code in Meteor?

I have read the documentation meteor, and the following code is running in a Trusted Code mode, it is a server code and is within a meteor methods {multi: true} must be update the property of the all documents in the collection brought by the query.…
TigerSpirt
  • 161
  • 1
  • 12
0
votes
1 answer

Add array object to minimongo

I have a chat app, that is using Ionic 2 and Meteor with MongoDB. It works perfectly. However, everything is stored in the MongoDB on the server, so each time a user wants to view their messages, they need to be connected to the Meteor/Mongo Server…
Richard
  • 8,193
  • 28
  • 107
  • 228
0
votes
1 answer

Remove delivered messages from the in memory Meteor's Minimongo

I'm trying a simple to build a simple chat server. The main objective, for now, is to send the message from one client to another client, without saving into the DB, consuming less memory. I'm using Meteor 1.4.1. So far I'm able to send and receive…
Ankit Balyan
  • 1,319
  • 19
  • 31
0
votes
1 answer

Get near Users in Meteor using $near query

I have a mobile app that wants to show near users. Each 30 seconds, I want to update the near users list. In this case, for this feature, I am not using the Meteor real-time sync since I think it's too heavy. I think it's better to ask the list each…
DeLac
  • 1,068
  • 13
  • 43
0
votes
1 answer

How to publish a limited number of records from a collection in Meteor?

so I'm familiar with Collection.find({}, {limit: someNumber}). Here's my problem: I have lots of records in Collection that have a createdAt field for sorting. I'm displaying a paginated list of them on the client. I'm publishing that collection and…
0
votes
1 answer

creating new field for certain records in miniMongo

This Meteor client code tries to create selected fields an sets their values to true, the miniMongo is not being updated. There are few items in the indexes array. How can it be fixed? Thanks let res = myColMini.update({ index: { $in:…
Fred J.
  • 5,759
  • 10
  • 57
  • 106
0
votes
1 answer

How to get documents from MiniMongo where value is nested?

I have a Meteor application with a Mongo database containing documents with the following structure: _id: "1234567890", blocks: [{ type: "block", block_id: "foobar", items: [ { type: "sub", …
JoeTidee
  • 24,754
  • 25
  • 104
  • 149
0
votes
0 answers

Meteor: Publish & Subscribe. How to get field from document in collection?

So I have the following publish method that creates a Room with many parameters: Meteor.publish('addRoom', function publishFunction(options, admin, adminKey, members, roomName, isOpen, finalChoice, timeStamp) { //add relevant info to collection …
bafrick
  • 17
  • 5
0
votes
1 answer

Adding a collection to a running meteor

I am trying to add a new collection to deployed meteor app. I've deployed my app using meteor up. I am using only the server-side of the meteor app for my ionic 2 app. I've tried to use the mongo CLI on the server but I got this error while trying…
0
votes
3 answers

Meteor and MongoDB: How to set an object in a table

I have a problem with Meteor and MongoDB. I'm coding a little game. I use accounts-ui and when an account is created I add some fields to this account : Accounts.onCreateUser(function(options, user) { user.money = 0; user.rate = 0; …
DeepSiderZ
  • 67
  • 1
  • 2
  • 9
0
votes
1 answer

Meteor - difference Client and Server side when accessing remote database

Hi Meteor newbie here. As I am prototyping an app, I get issues accessing a remote database on the client side of my app. More specifically, I run meteor MONGO_URL="mongodb://__id__:__pwd__@__address__.mlab.com:21010/meteor" meteor and have in a…
FizBack
  • 33
  • 7
0
votes
1 answer

Sorting and summing up periods of time in mongo

On a small test-site i'd like to log the approximately period of time a user actively spends on certain link groups per day. Thereofore on any user click i save a document like this: Example document: { "routeGroup": "a", "time": new Date() } The…
Raggamuffin
  • 699
  • 1
  • 6
  • 19
0
votes
1 answer

Concatenate results of two queries in a template helper

I have two collections: Commands and CommandHistory. I am trying to make an output that received the results of both of them, combined, where anything from CommandHistory is bold. That is, something that looked like: **Do the thing** <--|…
corvid
  • 10,733
  • 11
  • 61
  • 130