vapor-community / mongo-driver

MongoDB driver for Fluent
28 stars 26 forks source link

Added support to Int32 on BSON conversion to Node - Gabriel Araujo #21

Closed GabrielAraujo closed 7 years ago

GabrielAraujo commented 7 years ago

Hello,

I added the support for Int32 because when I was configuring a test project I had some documents with int32 attributes.. So when I was trying to list them the int32 was not displaying and I was receiving the error "[FluentMongo] Could not convert BSON to Node: Int32"

After I added the case for Int32 the app started to display the number and the console no longer prompted the error message..

I think this change is needed because the framework can not limit the types the DB can have..

Thank You

tanner0101 commented 7 years ago

Awesome, thanks :)