Code Monkey home page Code Monkey logo

Comments (5)

onurdialpad avatar onurdialpad commented on August 16, 2024

Note, datastore emulator with arg --use-firestore-in-datastore-mode works when I post IN filter with single element, payload is

{'kind': [{'name': 'QueryTestEntity'}], 'filter': {'propertyFilter': {'op': 'IN', 'property': {'name': 'str_prop'}, 'value': {'excludeFromIndexes': False, 'arrayValue': {'values': [{'excludeFromIndexes': False, 'stringValue': 'foo'}]}}}}, 'limit': 100}

from firebase-tools.

harshyyy21 avatar harshyyy21 commented on August 16, 2024

Hi @onurdialpad, the Datastore emulator does not support the new query features even for datastore mode, hence why you see that exception.

from firebase-tools.

onurdialpad avatar onurdialpad commented on August 16, 2024

Hi @harshyyy21, thanks for the answer. I thought It is supposed to work with IN filter, since It works with or without --use-firestore-in-datastore-mode when I pass

{'kind': [{'name': 'QueryTestEntity'}], 'filter': {'propertyFilter': {'op': 'IN', 'property': {'name': 'str_prop'}, 'value': {'excludeFromIndexes': False, 'arrayValue': {'values': [{'excludeFromIndexes': False, 'stringValue': 'foo'}]}}}}, 'limit': 100}

to datastore emulator. As far as I know IN filter is something new Firestore supports. Am I missing something?

from firebase-tools.

harshyyy21 avatar harshyyy21 commented on August 16, 2024

When IN was added to Datastore Mode, it was never backfilled into the Datastore Emulator. The query above is essentially an equality with a single value, but as soon as you add multiple values in the array, it will fail with or without the --use-in-firestore-in-datastore-mode flag. IN along with the other new query features are only available via the Firestore emulator.

from firebase-tools.

onurdialpad avatar onurdialpad commented on August 16, 2024

Thanks, closing this then.

from firebase-tools.

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.