ObjectId is a type in BSON. See the spec here: http://bsonspec.org/

See the js impl repo here: https://github.com/mongodb/js-bson

It is not a built in object type in JavaScript therefore there won't be any 
direct v8 types for it.


On Monday, October 15, 2018 at 7:40:06 AM UTC-7, J Decker wrote:
>
> when is there an object id in JS?
> When would you use it?
> I've not encountered objectID.  
> https://www.npmjs.com/package/sack.vfs (has a JSON thing in there)
>
>
>
> On Mon, Oct 15, 2018 at 7:13 AM <aurelien...@aerys.in <javascript:>> 
> wrote:
>
>> I want to do binginds in NodeJS for my C++ code. I use V8 to do it. I 
>> return a bson class in C++ to an object in JS. I'm using type of V8 to 
>> get my fields typed in the JS Object.
>>
>>
>> Example for date :
>>
>> int64_t time = bson_iter_date_time(iter); return Date::New(isolate, time);
>>
>>
>> I don't find a type in C++ V8 for get an ObjectId in my JS object.
>>
>> -- 
>> -- 
>> v8-users mailing list
>> v8-u...@googlegroups.com <javascript:>
>> http://groups.google.com/group/v8-users
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "v8-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to v8-users+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to