This is driving me crazy, but I think it's an issue on my sharepoint online.
Why the heck this is not working?
/_api/web/lists/getByTitle('Documents')/items/?$filter=startswith(ContentTypeId, '0x0101')
The craziest thing is that if I use $filter=ContentTypeId eq '0x0101.................'
, it works.