Coder Social home page Coder Social logo

Comments (3)

TobiasBuchholz avatar TobiasBuchholz commented on September 14, 2024 1

This is a bug in the iOS implementation. I've created a fix for that which will be released in the upcoming version.

from plugin.firebase.

TobiasBuchholz avatar TobiasBuchholz commented on September 14, 2024

The exception gets thrown inside of the Xamarin.Firebase.iOS.CloudFirestore package, so I'm afraid there is not much I can do about it.

What are you trying to accomplish with your query or what kind of object is value? I guess these methods are only working well with number or string values. One of the tests in FirestoreTestFixture uses these methods and is working fine on android and iOS.

[Fact]
 public async Task gets_data_with_compound_query()
{
    var sut = CrossFirebaseFirestore.Current;
    var collection = sut.GetCollection("pokemons");
            
    var smallWaterPokemons = await collection
        .WhereEqualsTo("poke_type", PokeType.Water)
        .WhereGreaterThanOrEqualsTo("height_in_cm", 50)
        .WhereLessThan("height_in_cm", 100)
        .GetDocumentsAsync<Pokemon>();
            
    Assert.Single(smallWaterPokemons.Documents);
}

from plugin.firebase.

Mataboge avatar Mataboge commented on September 14, 2024

value is of type DateTimeOffset , it is a timestamp, I use it as a limiter to fetch documents that changed after a specific time

from plugin.firebase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.