Creates a mongoose find query based on the value you are trying to find by.