docs: def __query_spec(self):
          """Get the spec to use for a query."""
          spec = self.__spec
          if not self.__is_command and "$query" not in self.__spec:
              spec = SON({"$query": self.__spec})
          if self.__ordering:
              spec["$orderby"] = self.__ordering
          if self.__explain:
              spec["$explain"] = True
          if self.__hint:
              spec["$hint"] = self.__hint
          if self.__comment:
              spec["$comment"] = self.__comment
          if self.__snapshot:
              spec["$snapshot"] = True
          if self.__max_scan:
              spec["$maxScan"] = self.__max_scan
          return spec