should support _ids of type hash, array etc.