stash/pkg/api/resolver_query_find_scene_m...

16 lines
474 B
Go
Raw Normal View History

2019-02-09 12:30:49 +00:00
package api
import (
"context"
2019-02-14 23:42:52 +00:00
"github.com/stashapp/stash/pkg/models"
2019-02-09 12:30:49 +00:00
)
func (r *queryResolver) FindSceneMarkers(ctx context.Context, sceneMarkerFilter *models.SceneMarkerFilterType, filter *models.FindFilterType) (*models.FindSceneMarkersResultType, error) {
2019-02-09 12:30:49 +00:00
qb := models.NewSceneMarkerQueryBuilder()
sceneMarkers, total := qb.Query(sceneMarkerFilter, filter)
return &models.FindSceneMarkersResultType{
Count: total,
2019-02-09 12:30:49 +00:00
SceneMarkers: sceneMarkers,
}, nil
}