Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Some types are saved as empty objects #2588

Open
MartinLyne opened this issue Feb 11, 2025 · 0 comments
Open

[QUESTION] Some types are saved as empty objects #2588

MartinLyne opened this issue Feb 11, 2025 · 0 comments
Labels

Comments

@MartinLyne
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant