Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Handling Mongo's ObjectId type
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Geoff Schmidt  
View profile  
 More options Sep 28 2012, 10:07 pm
From: Geoff Schmidt <gschm...@meteor.com>
Date: Fri, 28 Sep 2012 19:06:54 -0700
Local: Fri, Sep 28 2012 10:06 pm
Subject: Handling Mongo's ObjectId type

Right now Meteor does a poor job of handling Mongo databases that contain
the native Mongo ObjectId type. See for example Xavier's ticket 61:

https://github.com/meteor/meteor/issues/61

Below is a thread that Glasser, Matt, and I were having. I thought we
should move discussion to the list.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Glasser  
View profile  
 More options Sep 28 2012, 10:26 pm
From: David Glasser <glas...@meteor.com>
Date: Fri, 28 Sep 2012 19:26:13 -0700
Local: Fri, Sep 28 2012 10:26 pm
Subject: Re: [meteor-core] Handling Mongo's ObjectId type

That sounds good.

What does the DDP ID look like, though? Ie, the id field of the msg:data
message. Are you proposing that it may now be any EJSON object? That's fine
by me, but you were suggesting when we talked today that such ids may
likely be used in URLs. (By the core system, or were you just thinking by
apps?) Not sure how pretty that ends up.

When and who should do this? (At least implementing enough to support
object ID).
On Sep 28, 2012 7:07 PM, "Geoff Schmidt" <gschm...@meteor.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Coleman  
View profile  
 More options Sep 28 2012, 11:00 pm
From: Tom Coleman <t...@thesnail.org>
Date: Sat, 29 Sep 2012 12:59:59 +1000
Local: Fri, Sep 28 2012 10:59 pm
Subject: Re: [meteor-core] Handling Mongo's ObjectId type

Perhaps date can be a custom type too? (date, 1348887460489) (where 1348887460489 is the the timestamp).

El 29/09/2012, a las 12:06 PM, Geoff Schmidt <gschm...@meteor.com (mailto:gschm...@meteor.com)> escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Greenspan  
View profile  
 More options Sep 29 2012, 1:05 am
From: David Greenspan <da...@meteor.com>
Date: Fri, 28 Sep 2012 22:05:12 -0700
Local: Sat, Sep 29 2012 1:05 am
Subject: Re: [meteor-core] Handling Mongo's ObjectId type

If object _ids aren't strings on the client, it's going to make a lot of
code messy (in minimongo and apps).  No more maps keyed on ids.  I don't
know why Mongo has ObjectId objects, but can we just map them
bidirectionally to strings in our mongo driver?

I do like the wire protocol that isn't constrained to JSONable objects, and
I assume it would be useful.

-- David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Glasser  
View profile  
 More options Oct 2 2012, 2:32 pm
From: David Glasser <glas...@meteor.com>
Date: Tue, 2 Oct 2012 11:32:29 -0700
Local: Tues, Oct 2 2012 2:32 pm
Subject: Re: [meteor-core] Handling Mongo's ObjectId type
One option is that we may need to implement a javascript map class
whose keys are (immutable) JSON/EJSON objects and use that in a lot of
places instead just an object. The syntax would be worse, but it's
already the case that Javascript objects make poor maps (eg, needing
to use hasOwnProperty/_.has).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »