Questions tagged [objcmongodb]

ObjCMongoDB is a Mac OS and iOS library for MongoDB and BSON.

ObjCMongoDB is a Mac OS and iOS library for MongoDB and BSON based on the legacy MongoDB C driver.

Documentation

23 questions
4
votes
1 answer

ObjCMongoDB broken? I can't get it to work

Full Disclosure: I'm not an educated programmer, and the entirety of my programming experience is in Javascript and Objective-C. So now you know what you're dealing with. Tread carefully. No sudden moves. I'm writing an iPad app which talks to a…
2
votes
2 answers

Using MongoDB in a Cocoa app

I would like to use MongoDB directly at client side of an Mac OSX app, i.e. I want to store my models in a mongoDB. Is this possible? Most of the documents I saw explained how to access mongoDB that is present in a server.
Kiran Balegar
  • 916
  • 6
  • 16
1
vote
1 answer

Running MongoDB dictionary-based commands through ObjCMongoDB

Other commands work correctly for me, such as: let commandDictionary = ["count": "trials"] let error: NSError? let result = myConnection.runCommandWithDictionary( commandDictionary, onDatabaseName: databaseName, error:…
GarlicFries
  • 8,095
  • 5
  • 36
  • 53
1
vote
1 answer

Does ObjCMongoDB support SSL connection?

I have to create an iOS client using MongoDB and I need to secure the connection. I'm considering ObjCMongoDB library to do it because the interface is in Objective-C. Can we use the ?ssl=true option in the MongoDB URI as described there?
ericg
  • 25
  • 1
  • 6
1
vote
0 answers

How to Geospatial Query in ObjCMongoDB

I'm trying to implement this query in ObjCMongoDB: db..find( { loc : { $near : { $geometry : { type : "Point" , coordinates : [ -121.9 , 37.5 ] } , $maxDistance : 10000 } } }…
user1906825
  • 187
  • 2
  • 9
1
vote
1 answer

ObjCMongoDB authentication

I'm very new to use ObjCMongoDB; I need to connect to a mongoDB from inside my application so I'm trying to integrate ObjCMongoDB.framework into my project. I've read the wiki and I didn't find any reference on connecting to a DB with username and…
1
vote
1 answer

ObjcMongoDB keypath predicate matching nsdate

I am using objmongodb as a tool to communicate with my work's mongodb. i need to create a query for all docs with a field pickup.recommended equaling todays date. I'v tried using: [predicate keyPath:@"pickup.recommended" matches:[NSDate…
Rohan Panchal
  • 1,211
  • 1
  • 11
  • 28
1
vote
1 answer

Writing to a Deployed Meteor's App MongoDB

I have a meteor app in which I am using a mongoDB ObjC driver to write to it from an ios app. This works fine when the meteor app is running locally (port 3000). I simply use dbConn = [MongoConnection connectionForServer:@"127.0.0.1:3002"…
Nate
  • 1,875
  • 15
  • 27
1
vote
2 answers

How to Update a document by replacing it with a new document in a collection of mongoDB

I am using ObjCMongoDB as a cocoa wrapper for accessing mongoDB. I am facing difficulty in a scenario where I have to find and replace a document with a new document. Can any one help me by pointing out the code/API of ObjCMongoDB to use. For…
Kiran Balegar
  • 916
  • 6
  • 16
1
vote
1 answer

ObjCMongoDB framework and SyncServices in OSX

I'm looking for some pointers on how to keep a CoreData model in sync with a MongoDB. I'm leveraging the ObjCMongoDB framework and I can create objects in core data as follows: coreDataObj = [BSONDecoder decodeManagedObjectWithClass:[Hostname…
Jason Kary
  • 93
  • 4
1
vote
1 answer

How to do non-CRUD and non-basic MongoDB commands in ObjCMongoDB?

ObjCMongoDB seems to be documented perfectly well for basic CRUD functionality, but for other mongo commands there's no explanation at all. Specifically, I need to know how to do: db.collection.findAndModify() Any help, as always, would be…
0
votes
1 answer

MongoCursor Implementation

I’m using Paulmelnikow’s ObjCMongoDB to connect to a mongodb in my iOS. I want to load the data in chunks using MongoCursor. I need help to implement this. Thanks.
Vakas
  • 6,291
  • 3
  • 35
  • 47
0
votes
1 answer

ObjCMongoDB db.collection.find()

I want to implement complex queries on mongoDB in my iOS app. I’m using ObjCMongoDB and it’s working perfectly. I’m able to implement the count query on the database, please see the following code commandDict = @{@"count":…
Vakas
  • 6,291
  • 3
  • 35
  • 47
0
votes
0 answers

Can I run custom queries using ObjCMongoDB

I want to run custom queries on mongoDB from an iOS application. I’m using ObjCMongoDB. How can I implement the queries like db.logs.find()
Vakas
  • 6,291
  • 3
  • 35
  • 47
0
votes
2 answers

ObjMongoDB list of all collections in a db

Using ObjcMongodb framework- How to find all the collections in a db similar to show collections (shell command)
Debasis Das
  • 102
  • 7
1
2