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
|
|
|
)
|
|
|
|
|
2019-03-26 15:35:06 +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()
|
2019-03-26 15:35:06 +00:00
|
|
|
sceneMarkers, total := qb.Query(sceneMarkerFilter, filter)
|
|
|
|
return &models.FindSceneMarkersResultType{
|
2019-02-14 22:53:32 +00:00
|
|
|
Count: total,
|
2019-02-09 12:30:49 +00:00
|
|
|
SceneMarkers: sceneMarkers,
|
|
|
|
}, nil
|
|
|
|
}
|