An API that connects multiple Microsoft services, enabling data access and automation across platforms
Afaik contains is not supported, but you can use startsWith() where appropriate:
https://graph.microsoft.com/v1.0/me/drive/root/children?$filter=startsWith(name,'Book')
404 error can also be returned when you have insufficient permissions, so check for that. And yeah, I know it's inconsistent, but the Graph API is a bit of a mess...