Questions tagged [mongohq]

Compose (formerly MongoHQ) is a Database-as-a-Service (DBaaS) platform for securely hosting and managing databases instances including MongoDB.

Compose (formerly MongoHQ) is a Database-as-a-Service (DBaaS) platform for securely hosting and managing databases instances including MongoDB.

More information:

148 questions
0
votes
1 answer

heroku: rake db:migrate fails with mongoDB

running heroku run rake db:migrate and getting the error: Running `rake db:migrate` attached to terminal... up, run.9259 DEPRECATION WARNING: railtie_name is deprecated and has no effect. (called from at…
Tom
  • 9,275
  • 25
  • 89
  • 147
0
votes
1 answer

Mongodb Long Query data is not being inserted

we are facing a very weird problem while on insertion query, it's working fine on local mongodb but its causing problem on MongoHQ. When data is a little bit long in in insertion query, Rails, Mongo Id query, MongoHq return true but actually data…
naveed
  • 809
  • 6
  • 7
0
votes
1 answer

Connecting to MongoHQ on Node, error

I'm trying to connect an app I have built to a MongoHQ Database. This is the code: mongo = require('mongodb') Server = mongo.Server Db = mongo.Db BSON = mongo.BSONPure; con = null; server = new Server('staff.mongohq.com', 'THE_PORT',…
Arjun Bajaj
  • 1,932
  • 7
  • 24
  • 41
0
votes
1 answer

Authenticating in MongoDB with node-native

I'm having problems with saving a document in MongoDB in my Nodejitsu/MongoHQ app. Locally all works fine, but the MongoHQ db requires authentification and it fails with working user/pass (connecting to MongoDB shell with the same credentials works…
skazhy
  • 4,421
  • 7
  • 30
  • 32
0
votes
1 answer

MongoDB / MongoHQ field=>value size limit?

I'm querying my MongoDB which is hosted as a trial account over at MongoHQ for a document which has a field containing over 1000 values. When I try to retrieve this document, my query simply doesn't return anything. If I try shortening the field to…
Rohan Deshpande
  • 694
  • 8
  • 22
0
votes
1 answer

Heroku and mongoHQ: Connection failed

I have the following environment variable on Heroku : MONGOHQ_URL: mongodb://heroku:password%40mongohq%2Estaff%2Ecom:10056/app6186345 Originally the error was : Database name cannot contain '.' I escaped '.' and '@'and I still have the same…
Jeremy D
  • 4,787
  • 1
  • 31
  • 38
0
votes
1 answer

Why is this query returning the database object?

mongo.connect(mongostr, {}, function(error, db){ var mycoll = db.collection("newuser"); mycoll.find({'userID':12345}, {'userID':true}, function(err, value) { console.log(value); …
dsp_099
  • 5,801
  • 17
  • 72
  • 128
0
votes
1 answer

How to create multiple mongoDB databases and share them on heroku?

I've popped into console and ran the "heroku addons:add mongohq:free" which added an environment variable: ENV['MONGOHQ_URL']. It is a url that looks like this: mongodb://heroku:xxxxxxxxxxxxxxxxxxxxxxxxx@staff.mongohq.com:10059/appxxxxxx I want to…
dsp_099
  • 5,801
  • 17
  • 72
  • 128
0
votes
1 answer

Establish a simple mongohq connection

Is there a way to establish a connection to a cloud mongoDB (such as mongoHQ), with no drivers or third party apps, from a localhost server? In other words, I want to host my php files locally, and connect to a mongoDB on the cloud. I've been doing…
0
votes
1 answer

mongoid creating different collections on mongohq

I have this model class Noticia include Mongoid::Document include Mongoid::Timestamps include Mongoid::Slug belongs_to :user field :titulo, :type => String field :conteudo, :type => String field :tags, :type => Array index :tags …
Luiz E.
  • 6,769
  • 10
  • 58
  • 98
0
votes
1 answer

Mongoose and MongoHQ

why mongoose doesn't connect to MongoHQ I am using the given URL mongoose.connect('mongodb://' + user + ':' + pass + '@' + host + ':' + port + '/' + name) it doesn't report any errors but nothing changes on database
Issam Zoli
  • 2,724
  • 1
  • 21
  • 35
-1
votes
1 answer

Cannot connect to MongoHQ from Express.js code

I'm new to Node and Express and am having difficulty getting data out of my database in Express. When run from console the first code example below runs and returns data, but when I try and do the same thing from within Express it doesn't…
user2900166
  • 499
  • 1
  • 5
  • 11
-2
votes
1 answer

Are Mongo ObjectID's Supposed To Spell Words?

I was doing some work today when I noticed something strange in one of my MongoDB documents: Is it normal for Mongo to spell words within an ObjectID or is this indicative that there's an issue with the randomization that generates the _id…
AJB
  • 7,389
  • 14
  • 57
  • 88
1 2 3
9
10