LiteDB icon indicating copy to clipboard operation
LiteDB copied to clipboard

[QUESTION] Some types are saved as empty objects

Open MartinLyne opened this issue 11 months ago • 0 comments

Hi, first of thanks for LiteDB, its great.

I'm trying to Upsert some documents and have noticed that some types work fine but others end up empty even though they are definitely populated when they are upserted (printing before and after)

This is for a Godot 4 project, the types I've tried are Godot.Vector2 and System.Numerics.Vector2, but both fail to persist.

Seems interesting because more complicated types like Godot.Color work fine.

Is there something I should do other than split the X,Y components to save them as ints?

Futher info" On my POCO the field is non-nullable Vector2, the document is retrieved and deserialized successfully but the value is 0,0. Checking with a client I see the value as a doument with 0 fields (using OneBella)

Thanks for any help!

MartinLyne avatar Feb 11 '25 02:02 MartinLyne