step-up-labs / firebase-database-dotnet

C# library for Firebase Realtime Database.
MIT License
671 stars 170 forks source link

adding slash before .json #267

Closed syedadeel2 closed 2 years ago

syedadeel2 commented 2 years ago

All sort of operation your library adding /.json in the URL see below:

public async Task<IReadOnlyCollection<StaffMember>> GetStaff()
 {
            var result = await FbClient.Child("staff")
                .OrderByKey()
                .OnceAsync<StaffMember>();

            return result.Select(x => new StaffMember(x.Object.Name, x.Key, x.Object.Email, x.Object.Role)).ToArray();
}

see the result

image

cabauman commented 2 years ago

That's normal behavior, so it doesn't break functionality. There are tests here that specifically check for that pattern, and also a few places in the official docs.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

Closing the issue due to inactivity. Feel free to re-open