Strapi error for backend customization: Undefined attribute level operator id

FYI I encountered this bug bc I had too many ids in the filter (over a 100)

restaurant: {
   id: {
	    $in: user?.restaurantsIDs // 100+ ids in this array throws this error
    }
}

I don’t really know what are the limits on the REST API query params, can’t find it in the docs.