perak / extract-mongo-schema

Extract schema from Mongo database, including foreign keys
71 stars 22 forks source link

Can't extract arrays with Double type values #37

Closed rafaelparola closed 1 year ago

rafaelparola commented 1 year ago

Hello,

First of all thank you very much for your solution, I'm using it for a university project and it have have been very helpfull.

I'm extracting data from the mondogb sample databases and I'm being able to get everything I want except for the Array that include double values.

The database I'm using is the mondodbs "sample_restaurants" which some of the are like this: image

I'm trying to get the 0 and 1 references inside the array but I'm not being sucessfull.

I'm exctracting data with the following command line: extract-mongo-schema -d "my_conn_string/sample_restaurants" -o schema_restaurants_10.json -r -l 30000 -a "int8Array,BigUint64Array,BigInt64Array,Float64Array,Float32Array,Uint32Array,Uint16Array,ArrayBuffer,Array"

and I'm getting: image

You can see that the grades array is working perfectly but the coordinates under geometry is not. Maybe it could be something with the double data type.

Actually, I'm not sure if I'm doing something wrong in the extraction, or if it could be some issue with the library.

Could you help me with this?

Thank you again, Rafael.