Skip to content

Add support for FieldPath for where-clause querying to Firestore Plugin. #1311

Closed

Description

@t-cun

Querying Firestore doesn't yield results when the Field name consists special characters.
For example [email protected] which consists '.'
Can you include a work around like including ` around the Field name so that it treats special characters as Normal one.

This issue was previously closed without any comments/updates. Re-opening as the issue still exists.

Reference:
flutter/flutter#22712
#626

Activity

  1. added and removed
    type: bugSomething isn't working
    on Oct 25, 2019
  2. jyardin commented on Jan 4, 2020

    @jyardin
    Contributor

    Is there any way to circumvent this problem?

  3. zephyo commented on Feb 22, 2020

    @zephyo

    encountering this, does this have a fix yet?

  4. Ehesp commented on Apr 22, 2020

    @Ehesp
    Member

    You can use the FieldPath class to provide a path/key with special characters: https://github.com/FirebaseExtended/flutterfire/blob/29eb495bddafe3965e3b7f5f097d5122bf5e2d1a/packages/cloud_firestore/cloud_firestore_platform_interface/lib/src/field_path.dart#L7

    Will close, but this should be documented.

  5. reopened this on Apr 22, 2020
  6. Ehesp commented on Apr 22, 2020

    @Ehesp
    Member

    Re-opening to track with testing

  7. Salakar commented on Jul 7, 2020

    @Salakar
    Contributor

    Hey all, as part of our on-going work for #2582, this has been implemented in our Firebase Firestore rework (#2913) - which has now been merged into master. We'll look at publishing some prereleases in the next few days. Thank you

  8. locked and limited conversation to collaborators on Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions