Created by: rvantonder
type QueryInfo
which is an interface that either refers to our current query logic (type OrdinaryQuery
) or type AndOrQuery
(which is the new part I'll be filling in).I introduced typeQueryInfo
because it's going to be a real challenge for me to migrate the current query logic otherwise. We also want to preserve a fall back while transitioning. I've extracted the essential interface of Query
so that most dependencies on query-related things do not know what the underlying type is. Over time, I will be trimming/renaming the QueryInfo
interface. When we are ready to switch over to only AndOrQuery
, QueryInfo
will disappear, and AndOrQuery
will simply become Query
.