Filters for queryChannels - Chat

Follow

Comments

6 comments

  • mtorosyan

    We really need contains/regex operator for queries. Is there any chance that you will add them?

    0
    Comment actions Permalink
  • Stephen

    Hello! Thanks for leaving a comment! There is no plan to include regex in our filters though - they are just too slow. 

    1
    Comment actions Permalink
  • mtorosyan

    And what about the contains operator instead of the regex?

    0
    Comment actions Permalink
  • Seetha

    Hi, can you please send us your use case to https://getstream.io/contact/support/? Thanks. 

    0
    Comment actions Permalink
  • IgnacioChang

    Hello!

    Filter for only two members with $eq

    Filter for channels where 'userID1' or 'userID2' are a member

    ---

    These two paragraphs use different syntax. Do they have the same result?  Using $eq in my code does not return any Channel to me

    0
    Comment actions Permalink
  • Clement Fradet Normand

    @Seetha, can the $in filter be used right one with custom meta data keys ? 

    For example using node sdk

    streamChatClient.queryChannels(
    {
    custom_key: { $in: customKeysArray },
    },
    [],
    {
    limit: taskIds.length,
    message_limit: 300,
    state: true,
    watch: false,
    }
    );
     
    Thanks a lot for your help ! 
    0
    Comment actions Permalink

Please sign in to leave a comment.