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

Add set(document_id: String, data: Dictionary) function #442

Merged

Conversation

RemyBENALOUANE
Copy link
Contributor

Add set(document_id: String, data: Dictionary) function in firestore_collection.gd to replace a document by a Dictionary

@SammoWammo1
Copy link

good idea

@WolfgangSenff
Copy link
Collaborator

Looks right. I'll have to pull it down to test and am still waking up, but cool!

Copy link
Collaborator

@WolfgangSenff WolfgangSenff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate to ask, but could you change the name of the function to set_doc? The reason is that set itself is likely to be the name of a function from Godot itself and I want to keep it future proof against likely problems. I haven't pulled it down yet, but I actually thought this would already fail to run because of that issue - just get fails because of it.

@RemyBENALOUANE
Copy link
Contributor Author

Sorry for late reply
It's done 😁

@WolfgangSenff WolfgangSenff merged commit 313ff17 into GodotNuts:main Mar 29, 2025
@WolfgangSenff
Copy link
Collaborator

Nice work, congrats on your first big contribution! And thank you for helping out!

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

Successfully merging this pull request may close these issues.

3 participants