I have to return documents that are between two dateTime values or if the dateTime field does not exist, use the createdAt field. I\'m using this query:
{ d