Questions tagged [objectid]

The ID of an object. This is used, among other reasons, to refer back to the object at a later time in the program

Used especially in web programming where space on the stack is limited, objectids are used to refer to objects at different parts of the program, and possibly even across different user sessions, if some marshalling is implemented (as databases, etc).

The ID of an object can also be used to determine if two objects are distinct instances or are indeed the same object, in which case, any modifications made on one would be reflected in the other as well

481 questions
0
votes
1 answer

Parse.com security : Access object of another app if you know the objectId

Is it possible to get data of an object/user on Parse.com, if the objectId of the ParseObject is known? I want to know about it as a security concern, if it is possible for some other app to access objects from my app if the objectId is known?
vj9
  • 1,546
  • 1
  • 11
  • 18
0
votes
0 answers

How to store PFUser objectId with RecipientId

I use Parse.com for backend, I've two views : InboxView (where I receive images from friends), and ChatView. When I send images, I send images with recipientIds of user (that can be multiple users) in "Messages" class (parse). I receive images in my…
Vjardel
  • 1,065
  • 1
  • 13
  • 28
0
votes
1 answer

Mongoose schema mixed type field errantly saving ObjectId field as a String

I am working on chat application and each Event in a conversation has a field named sender - looks like this: var eventSchema = Schema({ sender: { type: {}, //username && user_id fields required: true } } Every time that an…
Jorge Olivero
  • 3,705
  • 9
  • 27
  • 33
0
votes
1 answer

In NodeJs. Why do I get the value from mongodb.ObjectID in the wrong format

var id = new mongodb.ObjectID("545e2fa90293a69004414ae9"); User.findById(id, function(err, user) {}); id value = "T^/©¦AJé"? Why? Help me please!
0
votes
1 answer

Why do I get the value from mongodb.ObjectID in the wrong format (NodeJS)

var id = new mongodb.ObjectID("545e2fa90293a69004414ae9"); var valid = ObjectID.isValid(id); Why do I get this value it - T^/©¦AJé"? Help me please!
0
votes
2 answers

Parse query.whereEqualTo String issue

I am using Parse backend for my android app. I need to query the database for a record that has a field with a specific string value. following is the Parse code strObjectId is a String initialised with a Parse ObjectId as follows String…
Andromeda
  • 21
  • 5
0
votes
1 answer

Mongoose - Defining child's ObjectID in another Schema

There is a similar thread @ Mongoose variable key name. However, he goes with another method instead of solving this. The other method is the OR part of my title. EDIT - IGNORE THIS SECTION, I AM USING THE ALTERNATIVE NOW. Issue now lays with…
Gary
  • 395
  • 2
  • 7
  • 24
0
votes
2 answers

How to show data from mongoDB with ObjectID

i have an "back end" application which write in MongoDb (in database i have _id: with ObjectId("13f6ea...002")) i use meteor app to show information. Everything was good i displays list of information with {{#each}}. But when i wanted show one…
yan
  • 13
  • 1
  • 4
0
votes
1 answer

Null output for objectId in parse.com ios

I am trying to get objectId of babyInfo Class and want to link it to the User class of parse.com. But null objectId is being returned in all of these cases. PFObject *babyInfo = [PFObject objectWithClassName:@"BabyInfo"]; babyInfo[@"babyname"] =…
0
votes
1 answer

Referencing property in mongoDB by taking _id

I have a collection which have a document like this: collection 1 { _id: ObjectID(), name: foo } I would get ObjectID of the above collection and copy into a document of another collection in order to reference correctly. Should I do…
Mazzy
  • 13,354
  • 43
  • 126
  • 207
0
votes
2 answers

Parse Object id issue

ParseObject parseObject = new ParseObject("GameData"); parseObject.setObjectId("id-111"); // it won't work so i created my own id: parseObject.add("id","id-111"); But when every i try to update data for same id then it create different different…
0
votes
1 answer

No converter found capable of converting from type org.bson.types.ObjectId to type org.bson.types.ObjectId

I'm having some trouble to sort out a issue that came out yesterday in my web application. So here's the scenario : I have web application running on Jboos 7 , that often consults a mongodb database. Every document on this database has an ObjectId…
NokusFerreira
  • 135
  • 3
  • 12
0
votes
1 answer

Invalid new ObjectID(id) but its a valid ID in the DB

im trying to convert a String id from the page in a new ObjectID, so i can work using it person.getId(); the page send a String id, but to populate, i have to transform it in a ObjectID (or it will print "EXPECTED A OBJECT BUT WAS A STRING) so i…
user2582318
  • 1,607
  • 5
  • 29
  • 47
0
votes
2 answers

Mongo Objectid collision possibility VS MD5

Mongo objectid, and MD5 hash function, which one is more likely to collide, now I am building a website, and look for a way to index my products. Thanks in advance.
user2002692
  • 971
  • 2
  • 17
  • 34
0
votes
1 answer

Parse PFObject ID to map annotation title & subtitle

I'm using the parse framework to collect objects in a class and display them on a map. Currently, the annotation titles display the "CreatedAt" string, and the subtitles display the "coordinates". How can I change the title and subtitle to another…
user3429966
  • 95
  • 1
  • 10