Is Enhanced Filters Limits modification Possible in AppSync?

0

I am using enhanced filters in Appsync subscription, I had a usecase that I need to provide more than 5 item in the list for in operator in Filters. Is the any way that I can modify the limits ?

已提問 2 年前檢視次數 293 次
1 個回答
0

Hello,

Unfortunately, currently we are not supporting limit increase for enhanced filters.

However, as a workaround, you can use OR functionality to overcome the 5 element restriction on in operator. For example:

{
    "filterGroup": [
        {
           "filters" : [
                 {
                    "fieldName" : "severity",
                    "operator" : "in",
                    "value" : [1, 2, 3, 4, 5]
                }
           ]
           
        },
         {
           "filters" : [
                 {
                    "fieldName" : "severity",
                    "operator" : "in",
                    "value" : [6, 7, 8, 9, 10]
                }
           ]
           
        },

    ]
}

This is also mentioned on our AWS Doc under the section - "Note that there are several restrictions for using filters:" which I am adding here for your reference.

https://docs.aws.amazon.com/appsync/latest/devguide/extensions.html

profile pictureAWS
支援工程師
Yash_C
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南