Skip to content

databaseListDocuments#filters with "OR"ย #1174

Closed

Description

@kutear

๐Ÿš€ Feature

https://appwrite.io/docs/client/database#databaseListDocuments

image

how can i query database with OR๏ผŒ such as query by type=1 OR type=2

by the way, it's ready to support IN? ref: #826

Have you spent some time to check if this issue has been raised before?

yes

Have you read the Code of Conduct?

yes

Pitch

(Please explain why this feature should be implemented and how it would be used. Add examples, if applicable.)

Activity

  1. TorstenDittmann commented on May 24, 2021

    @TorstenDittmann
    Contributor

    Hey @kutear ๐Ÿ‘‹๐Ÿป

    Currently we do not offer OR or IN operators for querying our database. We are planning to add this kind of features to our current database refactoring - you can read more about it appwrite/rfc#21 here if you are interested.

    Gonna leave this issue open, until we have addressed it ๐Ÿ‘๐Ÿป

  2. added
    enhancement
    on May 24, 2021
  3. eldadfux commented on Dec 21, 2021

    @eldadfux
    Member

    You'll be able to have or functionality similar to a contains operator as part of Appwrite 0.12. more information is available at: https://warm-tray-285.notion.site/Appwrite-0-12-Alpha-The-Database-Refactor-70f2c1d234394d9ab9d0d548fe5449bc

  4. added
    waiting for release
    and removed on Dec 21, 2021
  5. eldadfux commented on Jan 5, 2022

    @eldadfux
    Member

    This fix is now available as part of Appwrite 0.12 which is now officially released. You can learn more at: https://dev.to/appwrite/its-here-announcing-the-release-of-appwrite-012-5c8b

  6. removed
    waiting for release
    on Jan 5, 2022
  7. kutear commented on Feb 26, 2022

    @kutear
    Author

    You'll be able to have or functionality similar to a contains operator as part of Appwrite 0.12. more information is available at: https://warm-tray-285.notion.site/Appwrite-0-12-Alpha-The-Database-Refactor-70f2c1d234394d9ab9d0d548fe5449bc

    @eldadfux Hi, There are some documents for query? I still can't find Query.contains(...) in sdk.

  8. merabtenei commented on Sep 27, 2022

    @merabtenei

    Is there any update on this ? This is quite a basic functionnality. Suppose we have a Chat app with 1 to 1 conversations. to list all messages between User A and User B from a collection with sender, receiver, message attributes we'll need to do a listDocument with send = User A or User B and receiver = User A or User B

  9. merabtenei commented on Nov 2, 2022

    @merabtenei

    This fix is now available as part of Appwrite 0.12 which is now officially released. You can learn more at: https://dev.to/appwrite/its-here-announcing-the-release-of-appwrite-012-5c8b

    I can't find Query.contains anywhere in v1.0.3 of appwrite. Is this still planned ?

  10. 0xDjole commented on Nov 25, 2023

    @0xDjole

    Appwrite sucks. Who is with me?

  11. step135 commented on Dec 22, 2023

    @step135

    Is there any update on this ? This is quite a basic functionality and I don't see it implemented after two years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions