Alter criteria atomic api to match the document's.