step-up-labs / firebase-database-dotnet

C# library for Firebase Realtime Database.
MIT License
668 stars 168 forks source link

No Key is returned #305

Closed pashaUSA closed 1 year ago

pashaUSA commented 1 year ago

Trying to use the PostAsync method but the Key value is returned, it is not even on the list of available properties

var record= new { Name = "Firebase", Desc = "C#" }; var response = _firebaseClient.Child("Record").PostAsync(record); What am I missing?

bezysoftware commented 1 year ago

You need to await the PostAsync method. See https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/