docs: def query(cls, *criteria, **filters):
          """Wrap sqlalchemy query methods.
  
          A wrapper for the filter and filter_by functions of sqlalchemy.
          Define a dict with which columns should be filtered by which values.
  
          .. codeblock:: python
  
              WorkflowObject.query(id=123)
              WorkflowObject.query(status=ObjectStatus.COMPLETED)
  
          The function supports also "hybrid" arguments using WorkflowObjectModel
          indirectly.
  
          .. codeblock:: python
  
              WorkflowObject.query(
                  WorkflowObject.dbmodel.status == ObjectStatus.COMPLETED,
                  user_id=user_id
              )
  
          See also SQLAlchemy BaseQuery's filter and filter_by documentation.
          """
          query = cls.dbmodel.query.filter(
              *criteria).filter_by(**filters)
          return [cls(obj) for obj in query.all()]