All will return the collection of object matching the name or id in such case.
So if there are two objects with the name as "test" and one object with id as "test" then all would return 3 objects.