func QueryWithCount(qb Queryer, sceneFilter *models.SceneFilterType, findFilter *models.FindFilterType) ([]*models.Scene, int, error) {
	// this was moved from the queryBuilder code
	// left here so that calling functions can reference this instead
	result, err := qb.Query(QueryOptions(sceneFilter, findFilter, true))
	if err != nil {
		return nil, 0, err
	}

	scenes, err := result.Resolve()
	if err != nil {
		return nil, 0, err
	}

	return scenes, result.Count, nil
}
// QueryWithCount queries for scenes, returning the scene objects and the total count.
QueryWithCount queries for scenes, returning the scene objects and the total count.
// QueryWithCount queries for scenes returning the scene objects and the total count .
func QueryWithCount(qb Queryer, sceneFilter *models.SceneFilterType, findFilter *models.FindFilterType) ([]*models.Scene, int, error) {
	result, err := qb.Query(QueryOptions(sceneFilter, findFilter, true))
	if err != nil {
		return nil, 0, err
	}
	scenes, err := result.Resolve()
	if err != nil {
		return nil, 0, err
	}
	return scenes, result.Count, nil
}
func QueryWithCount ( qb Queryer , sceneFilter * models . SceneFilterType , findFilter * models . FindFilterType ) ( [ ] * models . Scene , int , error ) { result , err := qb . Query ( QueryOptions ( sceneFilter , findFilter , true ) ) if err != nil { return nil , 0 , err } scenes , err := result . Resolve ( ) if err != nil { return nil , 0 , err } return scenes , result . Count , nil }
QueryWithCount queries for scenes, returning the scene objects and the total count.
QueryWithCount queries for scenes returning the scene objects and the total count .
// this was moved from the queryBuilder code // left here so that calling functions can reference this instead