GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
517 stars 74 forks source link

Add arrayValue conversion to from_firebase_type #408

Closed auntiebirdie closed 1 month ago

auntiebirdie commented 1 month ago

While experimenting with retrieving data from Firebase, I encountered an issue where a value wasn't being converted to an Array. This PR adds a fields2array conversion for arrayValue types, assuming there isn't a reason it was excluded—happy to be educated if so!

Tested by making the change to the local copy of this plugin in my project and can confirm that it converts the { "arrayValue" : { ... } } to an array as expected.

WolfgangSenff commented 1 month ago

Oh, interesting! I must have just missed that. Thanks for the fix!