@@ -837,6 +837,8 @@ export function serializeInto(
837
837
) ;
838
838
} else if ( value [ '_bsontype' ] === 'Binary' ) {
839
839
index = serializeBinary ( buffer , key , value , index , true ) ;
840
+ } else if ( value [ '_bsontype' ] === 'UUID' ) {
841
+ index = serializeBinary ( buffer , key , value . toBinary ( ) , index ) ;
840
842
} else if ( value [ '_bsontype' ] === 'Symbol' ) {
841
843
index = serializeSymbol ( buffer , key , value , index , true ) ;
842
844
} else if ( value [ '_bsontype' ] === 'DBRef' ) {
@@ -938,6 +940,8 @@ export function serializeInto(
938
940
index = serializeFunction ( buffer , key , value , index , checkKeys , depth , serializeFunctions ) ;
939
941
} else if ( value [ '_bsontype' ] === 'Binary' ) {
940
942
index = serializeBinary ( buffer , key , value , index ) ;
943
+ } else if ( value [ '_bsontype' ] === 'UUID' ) {
944
+ index = serializeBinary ( buffer , key , value . toBinary ( ) , index ) ;
941
945
} else if ( value [ '_bsontype' ] === 'Symbol' ) {
942
946
index = serializeSymbol ( buffer , key , value , index ) ;
943
947
} else if ( value [ '_bsontype' ] === 'DBRef' ) {
@@ -1043,6 +1047,8 @@ export function serializeInto(
1043
1047
index = serializeFunction ( buffer , key , value , index , checkKeys , depth , serializeFunctions ) ;
1044
1048
} else if ( value [ '_bsontype' ] === 'Binary' ) {
1045
1049
index = serializeBinary ( buffer , key , value , index ) ;
1050
+ } else if ( value [ '_bsontype' ] === 'UUID' ) {
1051
+ index = serializeBinary ( buffer , key , value . toBinary ( ) , index ) ;
1046
1052
} else if ( value [ '_bsontype' ] === 'Symbol' ) {
1047
1053
index = serializeSymbol ( buffer , key , value , index ) ;
1048
1054
} else if ( value [ '_bsontype' ] === 'DBRef' ) {
0 commit comments