'how to implement an 'or' filter in ReferenceArrayInput

please i want to implement an 'or' filter in ReferenceArrayInput ex. parentId = 1 or null

anyone can help how can i do it

            <ReferenceArrayInput
              source="categoriesIds"
              reference="categories"
              label="Categories"
              filter=???
            >


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source