From e6bcff07670881c31f82b33bdcad4df5b8b0965d Mon Sep 17 00:00:00 2001 From: Friendly C <52448715+friendlycrab@users.noreply.github.com> Date: Tue, 2 Jul 2019 13:17:18 +0200 Subject: [PATCH] Remove generated GraphQL files --- .gitignore | 4 + .travis.yml | 1 + pkg/models/generated_exec.go | 12700 ------------------------- pkg/models/generated_models.go | 453 - ui/v2/src/core/generated-graphql.tsx | 2524 ----- 5 files changed, 5 insertions(+), 15677 deletions(-) delete mode 100644 pkg/models/generated_exec.go delete mode 100644 pkg/models/generated_models.go delete mode 100644 ui/v2/src/core/generated-graphql.tsx diff --git a/.gitignore b/.gitignore index 43b3b8e7d..5733d06a3 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,10 @@ # Packr2 artifacts **/*-packr.go +# GraphQL generated output +pkg/models/generated_*.go +ui/v2/src/core/generated-*.tsx + #### # Jetbrains #### diff --git a/.travis.yml b/.travis.yml index 8ee2d9695..5a2824fc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ before_install: script: #- make lint #- make vet +- make gqlgen - go test before_deploy: - docker pull stashappdev/compiler diff --git a/pkg/models/generated_exec.go b/pkg/models/generated_exec.go deleted file mode 100644 index 41d0c4dc2..000000000 --- a/pkg/models/generated_exec.go +++ /dev/null @@ -1,12700 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package models - -import ( - "bytes" - "context" - "errors" - "io" - "strconv" - "sync" - "sync/atomic" - - "github.com/99designs/gqlgen/graphql" - "github.com/99designs/gqlgen/graphql/introspection" - "github.com/vektah/gqlparser" - "github.com/vektah/gqlparser/ast" -) - -// region ************************** generated!.gotpl ************************** - -// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. -func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { - return &executableSchema{ - resolvers: cfg.Resolvers, - directives: cfg.Directives, - complexity: cfg.Complexity, - } -} - -type Config struct { - Resolvers ResolverRoot - Directives DirectiveRoot - Complexity ComplexityRoot -} - -type ResolverRoot interface { - Gallery() GalleryResolver - Mutation() MutationResolver - Performer() PerformerResolver - Query() QueryResolver - Scene() SceneResolver - SceneMarker() SceneMarkerResolver - Studio() StudioResolver - Subscription() SubscriptionResolver - Tag() TagResolver -} - -type DirectiveRoot struct { -} - -type ComplexityRoot struct { - ConfigGeneralResult struct { - DatabasePath func(childComplexity int) int - GeneratedPath func(childComplexity int) int - Stashes func(childComplexity int) int - } - - ConfigInterfaceResult struct { - CSS func(childComplexity int) int - CSSEnabled func(childComplexity int) int - } - - ConfigResult struct { - General func(childComplexity int) int - Interface func(childComplexity int) int - } - - FindGalleriesResultType struct { - Count func(childComplexity int) int - Galleries func(childComplexity int) int - } - - FindPerformersResultType struct { - Count func(childComplexity int) int - Performers func(childComplexity int) int - } - - FindSceneMarkersResultType struct { - Count func(childComplexity int) int - SceneMarkers func(childComplexity int) int - } - - FindScenesResultType struct { - Count func(childComplexity int) int - Scenes func(childComplexity int) int - } - - FindStudiosResultType struct { - Count func(childComplexity int) int - Studios func(childComplexity int) int - } - - Gallery struct { - Checksum func(childComplexity int) int - Files func(childComplexity int) int - ID func(childComplexity int) int - Path func(childComplexity int) int - Title func(childComplexity int) int - } - - GalleryFilesType struct { - Index func(childComplexity int) int - Name func(childComplexity int) int - Path func(childComplexity int) int - } - - MarkerStringsResultType struct { - Count func(childComplexity int) int - ID func(childComplexity int) int - Title func(childComplexity int) int - } - - Mutation struct { - ConfigureGeneral func(childComplexity int, input ConfigGeneralInput) int - ConfigureInterface func(childComplexity int, input ConfigInterfaceInput) int - PerformerCreate func(childComplexity int, input PerformerCreateInput) int - PerformerDestroy func(childComplexity int, input PerformerDestroyInput) int - PerformerUpdate func(childComplexity int, input PerformerUpdateInput) int - SceneMarkerCreate func(childComplexity int, input SceneMarkerCreateInput) int - SceneMarkerDestroy func(childComplexity int, id string) int - SceneMarkerUpdate func(childComplexity int, input SceneMarkerUpdateInput) int - SceneUpdate func(childComplexity int, input SceneUpdateInput) int - StudioCreate func(childComplexity int, input StudioCreateInput) int - StudioDestroy func(childComplexity int, input StudioDestroyInput) int - StudioUpdate func(childComplexity int, input StudioUpdateInput) int - TagCreate func(childComplexity int, input TagCreateInput) int - TagDestroy func(childComplexity int, input TagDestroyInput) int - TagUpdate func(childComplexity int, input TagUpdateInput) int - } - - Performer struct { - Aliases func(childComplexity int) int - Birthdate func(childComplexity int) int - CareerLength func(childComplexity int) int - Checksum func(childComplexity int) int - Country func(childComplexity int) int - Ethnicity func(childComplexity int) int - EyeColor func(childComplexity int) int - FakeTits func(childComplexity int) int - Favorite func(childComplexity int) int - Height func(childComplexity int) int - ID func(childComplexity int) int - ImagePath func(childComplexity int) int - Instagram func(childComplexity int) int - Measurements func(childComplexity int) int - Name func(childComplexity int) int - Piercings func(childComplexity int) int - SceneCount func(childComplexity int) int - Scenes func(childComplexity int) int - Tattoos func(childComplexity int) int - Twitter func(childComplexity int) int - URL func(childComplexity int) int - } - - Query struct { - AllPerformers func(childComplexity int) int - AllStudios func(childComplexity int) int - AllTags func(childComplexity int) int - Configuration func(childComplexity int) int - Directories func(childComplexity int, path *string) int - FindGalleries func(childComplexity int, filter *FindFilterType) int - FindGallery func(childComplexity int, id string) int - FindPerformer func(childComplexity int, id string) int - FindPerformers func(childComplexity int, performerFilter *PerformerFilterType, filter *FindFilterType) int - FindScene func(childComplexity int, id *string, checksum *string) int - FindSceneMarkers func(childComplexity int, sceneMarkerFilter *SceneMarkerFilterType, filter *FindFilterType) int - FindScenes func(childComplexity int, sceneFilter *SceneFilterType, sceneIds []int, filter *FindFilterType) int - FindStudio func(childComplexity int, id string) int - FindStudios func(childComplexity int, filter *FindFilterType) int - FindTag func(childComplexity int, id string) int - MarkerStrings func(childComplexity int, q *string, sort *string) int - MarkerWall func(childComplexity int, q *string) int - MetadataClean func(childComplexity int) int - MetadataExport func(childComplexity int) int - MetadataGenerate func(childComplexity int, input GenerateMetadataInput) int - MetadataImport func(childComplexity int) int - MetadataScan func(childComplexity int, input ScanMetadataInput) int - SceneMarkerTags func(childComplexity int, sceneID string) int - SceneWall func(childComplexity int, q *string) int - ScrapeFreeones func(childComplexity int, performerName string) int - ScrapeFreeonesPerformerList func(childComplexity int, query string) int - Stats func(childComplexity int) int - ValidGalleriesForScene func(childComplexity int, sceneID *string) int - } - - Scene struct { - Checksum func(childComplexity int) int - Date func(childComplexity int) int - Details func(childComplexity int) int - File func(childComplexity int) int - Gallery func(childComplexity int) int - ID func(childComplexity int) int - IsStreamable func(childComplexity int) int - Path func(childComplexity int) int - Paths func(childComplexity int) int - Performers func(childComplexity int) int - Rating func(childComplexity int) int - SceneMarkers func(childComplexity int) int - Studio func(childComplexity int) int - Tags func(childComplexity int) int - Title func(childComplexity int) int - URL func(childComplexity int) int - } - - SceneFileType struct { - AudioCodec func(childComplexity int) int - Bitrate func(childComplexity int) int - Duration func(childComplexity int) int - Framerate func(childComplexity int) int - Height func(childComplexity int) int - Size func(childComplexity int) int - VideoCodec func(childComplexity int) int - Width func(childComplexity int) int - } - - SceneMarker struct { - ID func(childComplexity int) int - Preview func(childComplexity int) int - PrimaryTag func(childComplexity int) int - Scene func(childComplexity int) int - Seconds func(childComplexity int) int - Stream func(childComplexity int) int - Tags func(childComplexity int) int - Title func(childComplexity int) int - } - - SceneMarkerTag struct { - SceneMarkers func(childComplexity int) int - Tag func(childComplexity int) int - } - - ScenePathsType struct { - ChaptersVtt func(childComplexity int) int - Preview func(childComplexity int) int - Screenshot func(childComplexity int) int - Stream func(childComplexity int) int - Vtt func(childComplexity int) int - Webp func(childComplexity int) int - } - - ScrapedPerformer struct { - Aliases func(childComplexity int) int - Birthdate func(childComplexity int) int - CareerLength func(childComplexity int) int - Country func(childComplexity int) int - Ethnicity func(childComplexity int) int - EyeColor func(childComplexity int) int - FakeTits func(childComplexity int) int - Height func(childComplexity int) int - Instagram func(childComplexity int) int - Measurements func(childComplexity int) int - Name func(childComplexity int) int - Piercings func(childComplexity int) int - Tattoos func(childComplexity int) int - Twitter func(childComplexity int) int - URL func(childComplexity int) int - } - - StatsResultType struct { - GalleryCount func(childComplexity int) int - PerformerCount func(childComplexity int) int - SceneCount func(childComplexity int) int - StudioCount func(childComplexity int) int - TagCount func(childComplexity int) int - } - - Studio struct { - Checksum func(childComplexity int) int - ID func(childComplexity int) int - ImagePath func(childComplexity int) int - Name func(childComplexity int) int - SceneCount func(childComplexity int) int - URL func(childComplexity int) int - } - - Subscription struct { - MetadataUpdate func(childComplexity int) int - } - - Tag struct { - ID func(childComplexity int) int - Name func(childComplexity int) int - SceneCount func(childComplexity int) int - SceneMarkerCount func(childComplexity int) int - } -} - -type GalleryResolver interface { - Title(ctx context.Context, obj *Gallery) (*string, error) - Files(ctx context.Context, obj *Gallery) ([]*GalleryFilesType, error) -} -type MutationResolver interface { - SceneUpdate(ctx context.Context, input SceneUpdateInput) (*Scene, error) - SceneMarkerCreate(ctx context.Context, input SceneMarkerCreateInput) (*SceneMarker, error) - SceneMarkerUpdate(ctx context.Context, input SceneMarkerUpdateInput) (*SceneMarker, error) - SceneMarkerDestroy(ctx context.Context, id string) (bool, error) - PerformerCreate(ctx context.Context, input PerformerCreateInput) (*Performer, error) - PerformerUpdate(ctx context.Context, input PerformerUpdateInput) (*Performer, error) - PerformerDestroy(ctx context.Context, input PerformerDestroyInput) (bool, error) - StudioCreate(ctx context.Context, input StudioCreateInput) (*Studio, error) - StudioUpdate(ctx context.Context, input StudioUpdateInput) (*Studio, error) - StudioDestroy(ctx context.Context, input StudioDestroyInput) (bool, error) - TagCreate(ctx context.Context, input TagCreateInput) (*Tag, error) - TagUpdate(ctx context.Context, input TagUpdateInput) (*Tag, error) - TagDestroy(ctx context.Context, input TagDestroyInput) (bool, error) - ConfigureGeneral(ctx context.Context, input ConfigGeneralInput) (*ConfigGeneralResult, error) - ConfigureInterface(ctx context.Context, input ConfigInterfaceInput) (*ConfigInterfaceResult, error) -} -type PerformerResolver interface { - Name(ctx context.Context, obj *Performer) (*string, error) - URL(ctx context.Context, obj *Performer) (*string, error) - Twitter(ctx context.Context, obj *Performer) (*string, error) - Instagram(ctx context.Context, obj *Performer) (*string, error) - Birthdate(ctx context.Context, obj *Performer) (*string, error) - Ethnicity(ctx context.Context, obj *Performer) (*string, error) - Country(ctx context.Context, obj *Performer) (*string, error) - EyeColor(ctx context.Context, obj *Performer) (*string, error) - Height(ctx context.Context, obj *Performer) (*string, error) - Measurements(ctx context.Context, obj *Performer) (*string, error) - FakeTits(ctx context.Context, obj *Performer) (*string, error) - CareerLength(ctx context.Context, obj *Performer) (*string, error) - Tattoos(ctx context.Context, obj *Performer) (*string, error) - Piercings(ctx context.Context, obj *Performer) (*string, error) - Aliases(ctx context.Context, obj *Performer) (*string, error) - Favorite(ctx context.Context, obj *Performer) (bool, error) - ImagePath(ctx context.Context, obj *Performer) (*string, error) - SceneCount(ctx context.Context, obj *Performer) (*int, error) - Scenes(ctx context.Context, obj *Performer) ([]*Scene, error) -} -type QueryResolver interface { - FindScene(ctx context.Context, id *string, checksum *string) (*Scene, error) - FindScenes(ctx context.Context, sceneFilter *SceneFilterType, sceneIds []int, filter *FindFilterType) (*FindScenesResultType, error) - FindSceneMarkers(ctx context.Context, sceneMarkerFilter *SceneMarkerFilterType, filter *FindFilterType) (*FindSceneMarkersResultType, error) - FindPerformer(ctx context.Context, id string) (*Performer, error) - FindPerformers(ctx context.Context, performerFilter *PerformerFilterType, filter *FindFilterType) (*FindPerformersResultType, error) - FindStudio(ctx context.Context, id string) (*Studio, error) - FindStudios(ctx context.Context, filter *FindFilterType) (*FindStudiosResultType, error) - FindGallery(ctx context.Context, id string) (*Gallery, error) - FindGalleries(ctx context.Context, filter *FindFilterType) (*FindGalleriesResultType, error) - FindTag(ctx context.Context, id string) (*Tag, error) - MarkerWall(ctx context.Context, q *string) ([]*SceneMarker, error) - SceneWall(ctx context.Context, q *string) ([]*Scene, error) - MarkerStrings(ctx context.Context, q *string, sort *string) ([]*MarkerStringsResultType, error) - ValidGalleriesForScene(ctx context.Context, sceneID *string) ([]*Gallery, error) - Stats(ctx context.Context) (*StatsResultType, error) - SceneMarkerTags(ctx context.Context, sceneID string) ([]*SceneMarkerTag, error) - ScrapeFreeones(ctx context.Context, performerName string) (*ScrapedPerformer, error) - ScrapeFreeonesPerformerList(ctx context.Context, query string) ([]string, error) - Configuration(ctx context.Context) (*ConfigResult, error) - Directories(ctx context.Context, path *string) ([]string, error) - MetadataImport(ctx context.Context) (string, error) - MetadataExport(ctx context.Context) (string, error) - MetadataScan(ctx context.Context, input ScanMetadataInput) (string, error) - MetadataGenerate(ctx context.Context, input GenerateMetadataInput) (string, error) - MetadataClean(ctx context.Context) (string, error) - AllPerformers(ctx context.Context) ([]*Performer, error) - AllStudios(ctx context.Context) ([]*Studio, error) - AllTags(ctx context.Context) ([]*Tag, error) -} -type SceneResolver interface { - Title(ctx context.Context, obj *Scene) (*string, error) - Details(ctx context.Context, obj *Scene) (*string, error) - URL(ctx context.Context, obj *Scene) (*string, error) - Date(ctx context.Context, obj *Scene) (*string, error) - Rating(ctx context.Context, obj *Scene) (*int, error) - - File(ctx context.Context, obj *Scene) (*SceneFileType, error) - Paths(ctx context.Context, obj *Scene) (*ScenePathsType, error) - IsStreamable(ctx context.Context, obj *Scene) (bool, error) - SceneMarkers(ctx context.Context, obj *Scene) ([]*SceneMarker, error) - Gallery(ctx context.Context, obj *Scene) (*Gallery, error) - Studio(ctx context.Context, obj *Scene) (*Studio, error) - Tags(ctx context.Context, obj *Scene) ([]*Tag, error) - Performers(ctx context.Context, obj *Scene) ([]*Performer, error) -} -type SceneMarkerResolver interface { - Scene(ctx context.Context, obj *SceneMarker) (*Scene, error) - - PrimaryTag(ctx context.Context, obj *SceneMarker) (*Tag, error) - Tags(ctx context.Context, obj *SceneMarker) ([]*Tag, error) - Stream(ctx context.Context, obj *SceneMarker) (string, error) - Preview(ctx context.Context, obj *SceneMarker) (string, error) -} -type StudioResolver interface { - Name(ctx context.Context, obj *Studio) (string, error) - URL(ctx context.Context, obj *Studio) (*string, error) - ImagePath(ctx context.Context, obj *Studio) (*string, error) - SceneCount(ctx context.Context, obj *Studio) (*int, error) -} -type SubscriptionResolver interface { - MetadataUpdate(ctx context.Context) (<-chan string, error) -} -type TagResolver interface { - SceneCount(ctx context.Context, obj *Tag) (*int, error) - SceneMarkerCount(ctx context.Context, obj *Tag) (*int, error) -} - -type executableSchema struct { - resolvers ResolverRoot - directives DirectiveRoot - complexity ComplexityRoot -} - -func (e *executableSchema) Schema() *ast.Schema { - return parsedSchema -} - -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { - ec := executionContext{nil, e} - _ = ec - switch typeName + "." + field { - - case "ConfigGeneralResult.databasePath": - if e.complexity.ConfigGeneralResult.DatabasePath == nil { - break - } - - return e.complexity.ConfigGeneralResult.DatabasePath(childComplexity), true - - case "ConfigGeneralResult.generatedPath": - if e.complexity.ConfigGeneralResult.GeneratedPath == nil { - break - } - - return e.complexity.ConfigGeneralResult.GeneratedPath(childComplexity), true - - case "ConfigGeneralResult.stashes": - if e.complexity.ConfigGeneralResult.Stashes == nil { - break - } - - return e.complexity.ConfigGeneralResult.Stashes(childComplexity), true - - case "ConfigInterfaceResult.css": - if e.complexity.ConfigInterfaceResult.CSS == nil { - break - } - - return e.complexity.ConfigInterfaceResult.CSS(childComplexity), true - - case "ConfigInterfaceResult.cssEnabled": - if e.complexity.ConfigInterfaceResult.CSSEnabled == nil { - break - } - - return e.complexity.ConfigInterfaceResult.CSSEnabled(childComplexity), true - - case "ConfigResult.general": - if e.complexity.ConfigResult.General == nil { - break - } - - return e.complexity.ConfigResult.General(childComplexity), true - - case "ConfigResult.interface": - if e.complexity.ConfigResult.Interface == nil { - break - } - - return e.complexity.ConfigResult.Interface(childComplexity), true - - case "FindGalleriesResultType.count": - if e.complexity.FindGalleriesResultType.Count == nil { - break - } - - return e.complexity.FindGalleriesResultType.Count(childComplexity), true - - case "FindGalleriesResultType.galleries": - if e.complexity.FindGalleriesResultType.Galleries == nil { - break - } - - return e.complexity.FindGalleriesResultType.Galleries(childComplexity), true - - case "FindPerformersResultType.count": - if e.complexity.FindPerformersResultType.Count == nil { - break - } - - return e.complexity.FindPerformersResultType.Count(childComplexity), true - - case "FindPerformersResultType.performers": - if e.complexity.FindPerformersResultType.Performers == nil { - break - } - - return e.complexity.FindPerformersResultType.Performers(childComplexity), true - - case "FindSceneMarkersResultType.count": - if e.complexity.FindSceneMarkersResultType.Count == nil { - break - } - - return e.complexity.FindSceneMarkersResultType.Count(childComplexity), true - - case "FindSceneMarkersResultType.scene_markers": - if e.complexity.FindSceneMarkersResultType.SceneMarkers == nil { - break - } - - return e.complexity.FindSceneMarkersResultType.SceneMarkers(childComplexity), true - - case "FindScenesResultType.count": - if e.complexity.FindScenesResultType.Count == nil { - break - } - - return e.complexity.FindScenesResultType.Count(childComplexity), true - - case "FindScenesResultType.scenes": - if e.complexity.FindScenesResultType.Scenes == nil { - break - } - - return e.complexity.FindScenesResultType.Scenes(childComplexity), true - - case "FindStudiosResultType.count": - if e.complexity.FindStudiosResultType.Count == nil { - break - } - - return e.complexity.FindStudiosResultType.Count(childComplexity), true - - case "FindStudiosResultType.studios": - if e.complexity.FindStudiosResultType.Studios == nil { - break - } - - return e.complexity.FindStudiosResultType.Studios(childComplexity), true - - case "Gallery.checksum": - if e.complexity.Gallery.Checksum == nil { - break - } - - return e.complexity.Gallery.Checksum(childComplexity), true - - case "Gallery.files": - if e.complexity.Gallery.Files == nil { - break - } - - return e.complexity.Gallery.Files(childComplexity), true - - case "Gallery.id": - if e.complexity.Gallery.ID == nil { - break - } - - return e.complexity.Gallery.ID(childComplexity), true - - case "Gallery.path": - if e.complexity.Gallery.Path == nil { - break - } - - return e.complexity.Gallery.Path(childComplexity), true - - case "Gallery.title": - if e.complexity.Gallery.Title == nil { - break - } - - return e.complexity.Gallery.Title(childComplexity), true - - case "GalleryFilesType.index": - if e.complexity.GalleryFilesType.Index == nil { - break - } - - return e.complexity.GalleryFilesType.Index(childComplexity), true - - case "GalleryFilesType.name": - if e.complexity.GalleryFilesType.Name == nil { - break - } - - return e.complexity.GalleryFilesType.Name(childComplexity), true - - case "GalleryFilesType.path": - if e.complexity.GalleryFilesType.Path == nil { - break - } - - return e.complexity.GalleryFilesType.Path(childComplexity), true - - case "MarkerStringsResultType.count": - if e.complexity.MarkerStringsResultType.Count == nil { - break - } - - return e.complexity.MarkerStringsResultType.Count(childComplexity), true - - case "MarkerStringsResultType.id": - if e.complexity.MarkerStringsResultType.ID == nil { - break - } - - return e.complexity.MarkerStringsResultType.ID(childComplexity), true - - case "MarkerStringsResultType.title": - if e.complexity.MarkerStringsResultType.Title == nil { - break - } - - return e.complexity.MarkerStringsResultType.Title(childComplexity), true - - case "Mutation.configureGeneral": - if e.complexity.Mutation.ConfigureGeneral == nil { - break - } - - args, err := ec.field_Mutation_configureGeneral_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.ConfigureGeneral(childComplexity, args["input"].(ConfigGeneralInput)), true - - case "Mutation.configureInterface": - if e.complexity.Mutation.ConfigureInterface == nil { - break - } - - args, err := ec.field_Mutation_configureInterface_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.ConfigureInterface(childComplexity, args["input"].(ConfigInterfaceInput)), true - - case "Mutation.performerCreate": - if e.complexity.Mutation.PerformerCreate == nil { - break - } - - args, err := ec.field_Mutation_performerCreate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.PerformerCreate(childComplexity, args["input"].(PerformerCreateInput)), true - - case "Mutation.performerDestroy": - if e.complexity.Mutation.PerformerDestroy == nil { - break - } - - args, err := ec.field_Mutation_performerDestroy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.PerformerDestroy(childComplexity, args["input"].(PerformerDestroyInput)), true - - case "Mutation.performerUpdate": - if e.complexity.Mutation.PerformerUpdate == nil { - break - } - - args, err := ec.field_Mutation_performerUpdate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.PerformerUpdate(childComplexity, args["input"].(PerformerUpdateInput)), true - - case "Mutation.sceneMarkerCreate": - if e.complexity.Mutation.SceneMarkerCreate == nil { - break - } - - args, err := ec.field_Mutation_sceneMarkerCreate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.SceneMarkerCreate(childComplexity, args["input"].(SceneMarkerCreateInput)), true - - case "Mutation.sceneMarkerDestroy": - if e.complexity.Mutation.SceneMarkerDestroy == nil { - break - } - - args, err := ec.field_Mutation_sceneMarkerDestroy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.SceneMarkerDestroy(childComplexity, args["id"].(string)), true - - case "Mutation.sceneMarkerUpdate": - if e.complexity.Mutation.SceneMarkerUpdate == nil { - break - } - - args, err := ec.field_Mutation_sceneMarkerUpdate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.SceneMarkerUpdate(childComplexity, args["input"].(SceneMarkerUpdateInput)), true - - case "Mutation.sceneUpdate": - if e.complexity.Mutation.SceneUpdate == nil { - break - } - - args, err := ec.field_Mutation_sceneUpdate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.SceneUpdate(childComplexity, args["input"].(SceneUpdateInput)), true - - case "Mutation.studioCreate": - if e.complexity.Mutation.StudioCreate == nil { - break - } - - args, err := ec.field_Mutation_studioCreate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.StudioCreate(childComplexity, args["input"].(StudioCreateInput)), true - - case "Mutation.studioDestroy": - if e.complexity.Mutation.StudioDestroy == nil { - break - } - - args, err := ec.field_Mutation_studioDestroy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.StudioDestroy(childComplexity, args["input"].(StudioDestroyInput)), true - - case "Mutation.studioUpdate": - if e.complexity.Mutation.StudioUpdate == nil { - break - } - - args, err := ec.field_Mutation_studioUpdate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.StudioUpdate(childComplexity, args["input"].(StudioUpdateInput)), true - - case "Mutation.tagCreate": - if e.complexity.Mutation.TagCreate == nil { - break - } - - args, err := ec.field_Mutation_tagCreate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.TagCreate(childComplexity, args["input"].(TagCreateInput)), true - - case "Mutation.tagDestroy": - if e.complexity.Mutation.TagDestroy == nil { - break - } - - args, err := ec.field_Mutation_tagDestroy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.TagDestroy(childComplexity, args["input"].(TagDestroyInput)), true - - case "Mutation.tagUpdate": - if e.complexity.Mutation.TagUpdate == nil { - break - } - - args, err := ec.field_Mutation_tagUpdate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.TagUpdate(childComplexity, args["input"].(TagUpdateInput)), true - - case "Performer.aliases": - if e.complexity.Performer.Aliases == nil { - break - } - - return e.complexity.Performer.Aliases(childComplexity), true - - case "Performer.birthdate": - if e.complexity.Performer.Birthdate == nil { - break - } - - return e.complexity.Performer.Birthdate(childComplexity), true - - case "Performer.career_length": - if e.complexity.Performer.CareerLength == nil { - break - } - - return e.complexity.Performer.CareerLength(childComplexity), true - - case "Performer.checksum": - if e.complexity.Performer.Checksum == nil { - break - } - - return e.complexity.Performer.Checksum(childComplexity), true - - case "Performer.country": - if e.complexity.Performer.Country == nil { - break - } - - return e.complexity.Performer.Country(childComplexity), true - - case "Performer.ethnicity": - if e.complexity.Performer.Ethnicity == nil { - break - } - - return e.complexity.Performer.Ethnicity(childComplexity), true - - case "Performer.eye_color": - if e.complexity.Performer.EyeColor == nil { - break - } - - return e.complexity.Performer.EyeColor(childComplexity), true - - case "Performer.fake_tits": - if e.complexity.Performer.FakeTits == nil { - break - } - - return e.complexity.Performer.FakeTits(childComplexity), true - - case "Performer.favorite": - if e.complexity.Performer.Favorite == nil { - break - } - - return e.complexity.Performer.Favorite(childComplexity), true - - case "Performer.height": - if e.complexity.Performer.Height == nil { - break - } - - return e.complexity.Performer.Height(childComplexity), true - - case "Performer.id": - if e.complexity.Performer.ID == nil { - break - } - - return e.complexity.Performer.ID(childComplexity), true - - case "Performer.image_path": - if e.complexity.Performer.ImagePath == nil { - break - } - - return e.complexity.Performer.ImagePath(childComplexity), true - - case "Performer.instagram": - if e.complexity.Performer.Instagram == nil { - break - } - - return e.complexity.Performer.Instagram(childComplexity), true - - case "Performer.measurements": - if e.complexity.Performer.Measurements == nil { - break - } - - return e.complexity.Performer.Measurements(childComplexity), true - - case "Performer.name": - if e.complexity.Performer.Name == nil { - break - } - - return e.complexity.Performer.Name(childComplexity), true - - case "Performer.piercings": - if e.complexity.Performer.Piercings == nil { - break - } - - return e.complexity.Performer.Piercings(childComplexity), true - - case "Performer.scene_count": - if e.complexity.Performer.SceneCount == nil { - break - } - - return e.complexity.Performer.SceneCount(childComplexity), true - - case "Performer.scenes": - if e.complexity.Performer.Scenes == nil { - break - } - - return e.complexity.Performer.Scenes(childComplexity), true - - case "Performer.tattoos": - if e.complexity.Performer.Tattoos == nil { - break - } - - return e.complexity.Performer.Tattoos(childComplexity), true - - case "Performer.twitter": - if e.complexity.Performer.Twitter == nil { - break - } - - return e.complexity.Performer.Twitter(childComplexity), true - - case "Performer.url": - if e.complexity.Performer.URL == nil { - break - } - - return e.complexity.Performer.URL(childComplexity), true - - case "Query.allPerformers": - if e.complexity.Query.AllPerformers == nil { - break - } - - return e.complexity.Query.AllPerformers(childComplexity), true - - case "Query.allStudios": - if e.complexity.Query.AllStudios == nil { - break - } - - return e.complexity.Query.AllStudios(childComplexity), true - - case "Query.allTags": - if e.complexity.Query.AllTags == nil { - break - } - - return e.complexity.Query.AllTags(childComplexity), true - - case "Query.configuration": - if e.complexity.Query.Configuration == nil { - break - } - - return e.complexity.Query.Configuration(childComplexity), true - - case "Query.directories": - if e.complexity.Query.Directories == nil { - break - } - - args, err := ec.field_Query_directories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Directories(childComplexity, args["path"].(*string)), true - - case "Query.findGalleries": - if e.complexity.Query.FindGalleries == nil { - break - } - - args, err := ec.field_Query_findGalleries_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindGalleries(childComplexity, args["filter"].(*FindFilterType)), true - - case "Query.findGallery": - if e.complexity.Query.FindGallery == nil { - break - } - - args, err := ec.field_Query_findGallery_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindGallery(childComplexity, args["id"].(string)), true - - case "Query.findPerformer": - if e.complexity.Query.FindPerformer == nil { - break - } - - args, err := ec.field_Query_findPerformer_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindPerformer(childComplexity, args["id"].(string)), true - - case "Query.findPerformers": - if e.complexity.Query.FindPerformers == nil { - break - } - - args, err := ec.field_Query_findPerformers_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindPerformers(childComplexity, args["performer_filter"].(*PerformerFilterType), args["filter"].(*FindFilterType)), true - - case "Query.findScene": - if e.complexity.Query.FindScene == nil { - break - } - - args, err := ec.field_Query_findScene_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindScene(childComplexity, args["id"].(*string), args["checksum"].(*string)), true - - case "Query.findSceneMarkers": - if e.complexity.Query.FindSceneMarkers == nil { - break - } - - args, err := ec.field_Query_findSceneMarkers_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindSceneMarkers(childComplexity, args["scene_marker_filter"].(*SceneMarkerFilterType), args["filter"].(*FindFilterType)), true - - case "Query.findScenes": - if e.complexity.Query.FindScenes == nil { - break - } - - args, err := ec.field_Query_findScenes_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindScenes(childComplexity, args["scene_filter"].(*SceneFilterType), args["scene_ids"].([]int), args["filter"].(*FindFilterType)), true - - case "Query.findStudio": - if e.complexity.Query.FindStudio == nil { - break - } - - args, err := ec.field_Query_findStudio_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindStudio(childComplexity, args["id"].(string)), true - - case "Query.findStudios": - if e.complexity.Query.FindStudios == nil { - break - } - - args, err := ec.field_Query_findStudios_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindStudios(childComplexity, args["filter"].(*FindFilterType)), true - - case "Query.findTag": - if e.complexity.Query.FindTag == nil { - break - } - - args, err := ec.field_Query_findTag_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FindTag(childComplexity, args["id"].(string)), true - - case "Query.markerStrings": - if e.complexity.Query.MarkerStrings == nil { - break - } - - args, err := ec.field_Query_markerStrings_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.MarkerStrings(childComplexity, args["q"].(*string), args["sort"].(*string)), true - - case "Query.markerWall": - if e.complexity.Query.MarkerWall == nil { - break - } - - args, err := ec.field_Query_markerWall_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.MarkerWall(childComplexity, args["q"].(*string)), true - - case "Query.metadataClean": - if e.complexity.Query.MetadataClean == nil { - break - } - - return e.complexity.Query.MetadataClean(childComplexity), true - - case "Query.metadataExport": - if e.complexity.Query.MetadataExport == nil { - break - } - - return e.complexity.Query.MetadataExport(childComplexity), true - - case "Query.metadataGenerate": - if e.complexity.Query.MetadataGenerate == nil { - break - } - - args, err := ec.field_Query_metadataGenerate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.MetadataGenerate(childComplexity, args["input"].(GenerateMetadataInput)), true - - case "Query.metadataImport": - if e.complexity.Query.MetadataImport == nil { - break - } - - return e.complexity.Query.MetadataImport(childComplexity), true - - case "Query.metadataScan": - if e.complexity.Query.MetadataScan == nil { - break - } - - args, err := ec.field_Query_metadataScan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.MetadataScan(childComplexity, args["input"].(ScanMetadataInput)), true - - case "Query.sceneMarkerTags": - if e.complexity.Query.SceneMarkerTags == nil { - break - } - - args, err := ec.field_Query_sceneMarkerTags_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.SceneMarkerTags(childComplexity, args["scene_id"].(string)), true - - case "Query.sceneWall": - if e.complexity.Query.SceneWall == nil { - break - } - - args, err := ec.field_Query_sceneWall_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.SceneWall(childComplexity, args["q"].(*string)), true - - case "Query.scrapeFreeones": - if e.complexity.Query.ScrapeFreeones == nil { - break - } - - args, err := ec.field_Query_scrapeFreeones_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ScrapeFreeones(childComplexity, args["performer_name"].(string)), true - - case "Query.scrapeFreeonesPerformerList": - if e.complexity.Query.ScrapeFreeonesPerformerList == nil { - break - } - - args, err := ec.field_Query_scrapeFreeonesPerformerList_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ScrapeFreeonesPerformerList(childComplexity, args["query"].(string)), true - - case "Query.stats": - if e.complexity.Query.Stats == nil { - break - } - - return e.complexity.Query.Stats(childComplexity), true - - case "Query.validGalleriesForScene": - if e.complexity.Query.ValidGalleriesForScene == nil { - break - } - - args, err := ec.field_Query_validGalleriesForScene_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ValidGalleriesForScene(childComplexity, args["scene_id"].(*string)), true - - case "Scene.checksum": - if e.complexity.Scene.Checksum == nil { - break - } - - return e.complexity.Scene.Checksum(childComplexity), true - - case "Scene.date": - if e.complexity.Scene.Date == nil { - break - } - - return e.complexity.Scene.Date(childComplexity), true - - case "Scene.details": - if e.complexity.Scene.Details == nil { - break - } - - return e.complexity.Scene.Details(childComplexity), true - - case "Scene.file": - if e.complexity.Scene.File == nil { - break - } - - return e.complexity.Scene.File(childComplexity), true - - case "Scene.gallery": - if e.complexity.Scene.Gallery == nil { - break - } - - return e.complexity.Scene.Gallery(childComplexity), true - - case "Scene.id": - if e.complexity.Scene.ID == nil { - break - } - - return e.complexity.Scene.ID(childComplexity), true - - case "Scene.is_streamable": - if e.complexity.Scene.IsStreamable == nil { - break - } - - return e.complexity.Scene.IsStreamable(childComplexity), true - - case "Scene.path": - if e.complexity.Scene.Path == nil { - break - } - - return e.complexity.Scene.Path(childComplexity), true - - case "Scene.paths": - if e.complexity.Scene.Paths == nil { - break - } - - return e.complexity.Scene.Paths(childComplexity), true - - case "Scene.performers": - if e.complexity.Scene.Performers == nil { - break - } - - return e.complexity.Scene.Performers(childComplexity), true - - case "Scene.rating": - if e.complexity.Scene.Rating == nil { - break - } - - return e.complexity.Scene.Rating(childComplexity), true - - case "Scene.scene_markers": - if e.complexity.Scene.SceneMarkers == nil { - break - } - - return e.complexity.Scene.SceneMarkers(childComplexity), true - - case "Scene.studio": - if e.complexity.Scene.Studio == nil { - break - } - - return e.complexity.Scene.Studio(childComplexity), true - - case "Scene.tags": - if e.complexity.Scene.Tags == nil { - break - } - - return e.complexity.Scene.Tags(childComplexity), true - - case "Scene.title": - if e.complexity.Scene.Title == nil { - break - } - - return e.complexity.Scene.Title(childComplexity), true - - case "Scene.url": - if e.complexity.Scene.URL == nil { - break - } - - return e.complexity.Scene.URL(childComplexity), true - - case "SceneFileType.audio_codec": - if e.complexity.SceneFileType.AudioCodec == nil { - break - } - - return e.complexity.SceneFileType.AudioCodec(childComplexity), true - - case "SceneFileType.bitrate": - if e.complexity.SceneFileType.Bitrate == nil { - break - } - - return e.complexity.SceneFileType.Bitrate(childComplexity), true - - case "SceneFileType.duration": - if e.complexity.SceneFileType.Duration == nil { - break - } - - return e.complexity.SceneFileType.Duration(childComplexity), true - - case "SceneFileType.framerate": - if e.complexity.SceneFileType.Framerate == nil { - break - } - - return e.complexity.SceneFileType.Framerate(childComplexity), true - - case "SceneFileType.height": - if e.complexity.SceneFileType.Height == nil { - break - } - - return e.complexity.SceneFileType.Height(childComplexity), true - - case "SceneFileType.size": - if e.complexity.SceneFileType.Size == nil { - break - } - - return e.complexity.SceneFileType.Size(childComplexity), true - - case "SceneFileType.video_codec": - if e.complexity.SceneFileType.VideoCodec == nil { - break - } - - return e.complexity.SceneFileType.VideoCodec(childComplexity), true - - case "SceneFileType.width": - if e.complexity.SceneFileType.Width == nil { - break - } - - return e.complexity.SceneFileType.Width(childComplexity), true - - case "SceneMarker.id": - if e.complexity.SceneMarker.ID == nil { - break - } - - return e.complexity.SceneMarker.ID(childComplexity), true - - case "SceneMarker.preview": - if e.complexity.SceneMarker.Preview == nil { - break - } - - return e.complexity.SceneMarker.Preview(childComplexity), true - - case "SceneMarker.primary_tag": - if e.complexity.SceneMarker.PrimaryTag == nil { - break - } - - return e.complexity.SceneMarker.PrimaryTag(childComplexity), true - - case "SceneMarker.scene": - if e.complexity.SceneMarker.Scene == nil { - break - } - - return e.complexity.SceneMarker.Scene(childComplexity), true - - case "SceneMarker.seconds": - if e.complexity.SceneMarker.Seconds == nil { - break - } - - return e.complexity.SceneMarker.Seconds(childComplexity), true - - case "SceneMarker.stream": - if e.complexity.SceneMarker.Stream == nil { - break - } - - return e.complexity.SceneMarker.Stream(childComplexity), true - - case "SceneMarker.tags": - if e.complexity.SceneMarker.Tags == nil { - break - } - - return e.complexity.SceneMarker.Tags(childComplexity), true - - case "SceneMarker.title": - if e.complexity.SceneMarker.Title == nil { - break - } - - return e.complexity.SceneMarker.Title(childComplexity), true - - case "SceneMarkerTag.scene_markers": - if e.complexity.SceneMarkerTag.SceneMarkers == nil { - break - } - - return e.complexity.SceneMarkerTag.SceneMarkers(childComplexity), true - - case "SceneMarkerTag.tag": - if e.complexity.SceneMarkerTag.Tag == nil { - break - } - - return e.complexity.SceneMarkerTag.Tag(childComplexity), true - - case "ScenePathsType.chapters_vtt": - if e.complexity.ScenePathsType.ChaptersVtt == nil { - break - } - - return e.complexity.ScenePathsType.ChaptersVtt(childComplexity), true - - case "ScenePathsType.preview": - if e.complexity.ScenePathsType.Preview == nil { - break - } - - return e.complexity.ScenePathsType.Preview(childComplexity), true - - case "ScenePathsType.screenshot": - if e.complexity.ScenePathsType.Screenshot == nil { - break - } - - return e.complexity.ScenePathsType.Screenshot(childComplexity), true - - case "ScenePathsType.stream": - if e.complexity.ScenePathsType.Stream == nil { - break - } - - return e.complexity.ScenePathsType.Stream(childComplexity), true - - case "ScenePathsType.vtt": - if e.complexity.ScenePathsType.Vtt == nil { - break - } - - return e.complexity.ScenePathsType.Vtt(childComplexity), true - - case "ScenePathsType.webp": - if e.complexity.ScenePathsType.Webp == nil { - break - } - - return e.complexity.ScenePathsType.Webp(childComplexity), true - - case "ScrapedPerformer.aliases": - if e.complexity.ScrapedPerformer.Aliases == nil { - break - } - - return e.complexity.ScrapedPerformer.Aliases(childComplexity), true - - case "ScrapedPerformer.birthdate": - if e.complexity.ScrapedPerformer.Birthdate == nil { - break - } - - return e.complexity.ScrapedPerformer.Birthdate(childComplexity), true - - case "ScrapedPerformer.career_length": - if e.complexity.ScrapedPerformer.CareerLength == nil { - break - } - - return e.complexity.ScrapedPerformer.CareerLength(childComplexity), true - - case "ScrapedPerformer.country": - if e.complexity.ScrapedPerformer.Country == nil { - break - } - - return e.complexity.ScrapedPerformer.Country(childComplexity), true - - case "ScrapedPerformer.ethnicity": - if e.complexity.ScrapedPerformer.Ethnicity == nil { - break - } - - return e.complexity.ScrapedPerformer.Ethnicity(childComplexity), true - - case "ScrapedPerformer.eye_color": - if e.complexity.ScrapedPerformer.EyeColor == nil { - break - } - - return e.complexity.ScrapedPerformer.EyeColor(childComplexity), true - - case "ScrapedPerformer.fake_tits": - if e.complexity.ScrapedPerformer.FakeTits == nil { - break - } - - return e.complexity.ScrapedPerformer.FakeTits(childComplexity), true - - case "ScrapedPerformer.height": - if e.complexity.ScrapedPerformer.Height == nil { - break - } - - return e.complexity.ScrapedPerformer.Height(childComplexity), true - - case "ScrapedPerformer.instagram": - if e.complexity.ScrapedPerformer.Instagram == nil { - break - } - - return e.complexity.ScrapedPerformer.Instagram(childComplexity), true - - case "ScrapedPerformer.measurements": - if e.complexity.ScrapedPerformer.Measurements == nil { - break - } - - return e.complexity.ScrapedPerformer.Measurements(childComplexity), true - - case "ScrapedPerformer.name": - if e.complexity.ScrapedPerformer.Name == nil { - break - } - - return e.complexity.ScrapedPerformer.Name(childComplexity), true - - case "ScrapedPerformer.piercings": - if e.complexity.ScrapedPerformer.Piercings == nil { - break - } - - return e.complexity.ScrapedPerformer.Piercings(childComplexity), true - - case "ScrapedPerformer.tattoos": - if e.complexity.ScrapedPerformer.Tattoos == nil { - break - } - - return e.complexity.ScrapedPerformer.Tattoos(childComplexity), true - - case "ScrapedPerformer.twitter": - if e.complexity.ScrapedPerformer.Twitter == nil { - break - } - - return e.complexity.ScrapedPerformer.Twitter(childComplexity), true - - case "ScrapedPerformer.url": - if e.complexity.ScrapedPerformer.URL == nil { - break - } - - return e.complexity.ScrapedPerformer.URL(childComplexity), true - - case "StatsResultType.gallery_count": - if e.complexity.StatsResultType.GalleryCount == nil { - break - } - - return e.complexity.StatsResultType.GalleryCount(childComplexity), true - - case "StatsResultType.performer_count": - if e.complexity.StatsResultType.PerformerCount == nil { - break - } - - return e.complexity.StatsResultType.PerformerCount(childComplexity), true - - case "StatsResultType.scene_count": - if e.complexity.StatsResultType.SceneCount == nil { - break - } - - return e.complexity.StatsResultType.SceneCount(childComplexity), true - - case "StatsResultType.studio_count": - if e.complexity.StatsResultType.StudioCount == nil { - break - } - - return e.complexity.StatsResultType.StudioCount(childComplexity), true - - case "StatsResultType.tag_count": - if e.complexity.StatsResultType.TagCount == nil { - break - } - - return e.complexity.StatsResultType.TagCount(childComplexity), true - - case "Studio.checksum": - if e.complexity.Studio.Checksum == nil { - break - } - - return e.complexity.Studio.Checksum(childComplexity), true - - case "Studio.id": - if e.complexity.Studio.ID == nil { - break - } - - return e.complexity.Studio.ID(childComplexity), true - - case "Studio.image_path": - if e.complexity.Studio.ImagePath == nil { - break - } - - return e.complexity.Studio.ImagePath(childComplexity), true - - case "Studio.name": - if e.complexity.Studio.Name == nil { - break - } - - return e.complexity.Studio.Name(childComplexity), true - - case "Studio.scene_count": - if e.complexity.Studio.SceneCount == nil { - break - } - - return e.complexity.Studio.SceneCount(childComplexity), true - - case "Studio.url": - if e.complexity.Studio.URL == nil { - break - } - - return e.complexity.Studio.URL(childComplexity), true - - case "Subscription.metadataUpdate": - if e.complexity.Subscription.MetadataUpdate == nil { - break - } - - return e.complexity.Subscription.MetadataUpdate(childComplexity), true - - case "Tag.id": - if e.complexity.Tag.ID == nil { - break - } - - return e.complexity.Tag.ID(childComplexity), true - - case "Tag.name": - if e.complexity.Tag.Name == nil { - break - } - - return e.complexity.Tag.Name(childComplexity), true - - case "Tag.scene_count": - if e.complexity.Tag.SceneCount == nil { - break - } - - return e.complexity.Tag.SceneCount(childComplexity), true - - case "Tag.scene_marker_count": - if e.complexity.Tag.SceneMarkerCount == nil { - break - } - - return e.complexity.Tag.SceneMarkerCount(childComplexity), true - - } - return 0, false -} - -func (e *executableSchema) Query(ctx context.Context, op *ast.OperationDefinition) *graphql.Response { - ec := executionContext{graphql.GetRequestContext(ctx), e} - - buf := ec.RequestMiddleware(ctx, func(ctx context.Context) []byte { - data := ec._Query(ctx, op.SelectionSet) - var buf bytes.Buffer - data.MarshalGQL(&buf) - return buf.Bytes() - }) - - return &graphql.Response{ - Data: buf, - Errors: ec.Errors, - Extensions: ec.Extensions, - } -} - -func (e *executableSchema) Mutation(ctx context.Context, op *ast.OperationDefinition) *graphql.Response { - ec := executionContext{graphql.GetRequestContext(ctx), e} - - buf := ec.RequestMiddleware(ctx, func(ctx context.Context) []byte { - data := ec._Mutation(ctx, op.SelectionSet) - var buf bytes.Buffer - data.MarshalGQL(&buf) - return buf.Bytes() - }) - - return &graphql.Response{ - Data: buf, - Errors: ec.Errors, - Extensions: ec.Extensions, - } -} - -func (e *executableSchema) Subscription(ctx context.Context, op *ast.OperationDefinition) func() *graphql.Response { - ec := executionContext{graphql.GetRequestContext(ctx), e} - - next := ec._Subscription(ctx, op.SelectionSet) - if ec.Errors != nil { - return graphql.OneShot(&graphql.Response{Data: []byte("null"), Errors: ec.Errors}) - } - - var buf bytes.Buffer - return func() *graphql.Response { - buf := ec.RequestMiddleware(ctx, func(ctx context.Context) []byte { - buf.Reset() - data := next() - - if data == nil { - return nil - } - data.MarshalGQL(&buf) - return buf.Bytes() - }) - - if buf == nil { - return nil - } - - return &graphql.Response{ - Data: buf, - Errors: ec.Errors, - Extensions: ec.Extensions, - } - } -} - -type executionContext struct { - *graphql.RequestContext - *executableSchema -} - -func (ec *executionContext) FieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) (ret interface{}) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - res, err := ec.ResolverMiddleware(ctx, next) - if err != nil { - ec.Error(ctx, err) - return nil - } - return res -} - -func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { - if ec.DisableIntrospection { - return nil, errors.New("introspection disabled") - } - return introspection.WrapSchema(parsedSchema), nil -} - -func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { - if ec.DisableIntrospection { - return nil, errors.New("introspection disabled") - } - return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil -} - -var parsedSchema = gqlparser.MustLoadSchema( - &ast.Source{Name: "graphql/schema/schema.graphql", Input: `"""The query root for this schema""" -type Query { - """Find a scene by ID or Checksum""" - findScene(id: ID, checksum: String): Scene - """A function which queries Scene objects""" - findScenes(scene_filter: SceneFilterType, scene_ids: [Int!], filter: FindFilterType): FindScenesResultType! - - """A function which queries SceneMarker objects""" - findSceneMarkers(scene_marker_filter: SceneMarkerFilterType filter: FindFilterType): FindSceneMarkersResultType! - - """Find a performer by ID""" - findPerformer(id: ID!): Performer - """A function which queries Performer objects""" - findPerformers(performer_filter: PerformerFilterType, filter: FindFilterType): FindPerformersResultType! - - """Find a studio by ID""" - findStudio(id: ID!): Studio - """A function which queries Studio objects""" - findStudios(filter: FindFilterType): FindStudiosResultType! - - findGallery(id: ID!): Gallery - findGalleries(filter: FindFilterType): FindGalleriesResultType! - - findTag(id: ID!): Tag - - """Retrieve random scene markers for the wall""" - markerWall(q: String): [SceneMarker!]! - """Retrieve random scenes for the wall""" - sceneWall(q: String): [Scene!]! - - """Get marker strings""" - markerStrings(q: String, sort: String): [MarkerStringsResultType]! - """Get the list of valid galleries for a given scene ID""" - validGalleriesForScene(scene_id: ID): [Gallery!]! - """Get stats""" - stats: StatsResultType! - """Organize scene markers by tag for a given scene ID""" - sceneMarkerTags(scene_id: ID!): [SceneMarkerTag!]! - - # Scrapers - - """Scrape a performer using Freeones""" - scrapeFreeones(performer_name: String!): ScrapedPerformer - """Scrape a list of performers from a query""" - scrapeFreeonesPerformerList(query: String!): [String!]! - - # Config - """Returns the current, complete configuration""" - configuration: ConfigResult! - """Returns an array of paths for the given path""" - directories(path: String): [String!]! - - # Metadata - - """Start an import. Returns the job ID""" - metadataImport: String! - """Start an export. Returns the job ID""" - metadataExport: String! - """Start a scan. Returns the job ID""" - metadataScan(input: ScanMetadataInput!): String! - """Start generating content. Returns the job ID""" - metadataGenerate(input: GenerateMetadataInput!): String! - """Clean metadata. Returns the job ID""" - metadataClean: String! - - # Get everything - - allPerformers: [Performer!]! - allStudios: [Studio!]! - allTags: [Tag!]! -} - -type Mutation { - sceneUpdate(input: SceneUpdateInput!): Scene - - sceneMarkerCreate(input: SceneMarkerCreateInput!): SceneMarker - sceneMarkerUpdate(input: SceneMarkerUpdateInput!): SceneMarker - sceneMarkerDestroy(id: ID!): Boolean! - - performerCreate(input: PerformerCreateInput!): Performer - performerUpdate(input: PerformerUpdateInput!): Performer - performerDestroy(input: PerformerDestroyInput!): Boolean! - - studioCreate(input: StudioCreateInput!): Studio - studioUpdate(input: StudioUpdateInput!): Studio - studioDestroy(input: StudioDestroyInput!): Boolean! - - tagCreate(input: TagCreateInput!): Tag - tagUpdate(input: TagUpdateInput!): Tag - tagDestroy(input: TagDestroyInput!): Boolean! - - """Change general configuration options""" - configureGeneral(input: ConfigGeneralInput!): ConfigGeneralResult! - configureInterface(input: ConfigInterfaceInput!): ConfigInterfaceResult! -} - -type Subscription { - """Update from the metadata manager""" - metadataUpdate: String! -} - -schema { - query: Query - mutation: Mutation - subscription: Subscription -}`}, - &ast.Source{Name: "graphql/schema/types/config.graphql", Input: `input ConfigGeneralInput { - """Array of file paths to content""" - stashes: [String!] - """Path to the SQLite database""" - databasePath: String - """Path to generated files""" - generatedPath: String -} - -type ConfigGeneralResult { - """Array of file paths to content""" - stashes: [String!]! - """Path to the SQLite database""" - databasePath: String! - """Path to generated files""" - generatedPath: String! -} - -input ConfigInterfaceInput { - """Custom CSS""" - css: String - cssEnabled: Boolean -} - -type ConfigInterfaceResult { - """Custom CSS""" - css: String - cssEnabled: Boolean -} - -"""All configuration settings""" -type ConfigResult { - general: ConfigGeneralResult! - interface: ConfigInterfaceResult! -}`}, - &ast.Source{Name: "graphql/schema/types/filters.graphql", Input: `enum SortDirectionEnum { - ASC - DESC -} - -input FindFilterType { - q: String - page: Int - per_page: Int - sort: String - direction: SortDirectionEnum -} - -enum ResolutionEnum { - "240p", LOW - "480p", STANDARD - "720p", STANDARD_HD - "1080p", FULL_HD - "4k", FOUR_K -} - -input PerformerFilterType { - """Filter by favorite""" - filter_favorites: Boolean -} - -input SceneMarkerFilterType { - """Filter to only include scene markers with this tag""" - tag_id: ID - """Filter to only include scene markers with these tags""" - tags: [ID!] - """Filter to only include scene markers attached to a scene with these tags""" - scene_tags: [ID!] - """Filter to only include scene markers with these performers""" - performers: [ID!] -} - -input SceneFilterType { - """Filter by rating""" - rating: IntCriterionInput - """Filter by resolution""" - resolution: ResolutionEnum - """Filter to only include scenes which have markers. ` + "`" + `true` + "`" + ` or ` + "`" + `false` + "`" + `""" - has_markers: String - """Filter to only include scenes missing this property""" - is_missing: String - """Filter to only include scenes with this studio""" - studio_id: ID - """Filter to only include scenes with these tags""" - tags: [ID!] - """Filter to only include scenes with this performer""" - performer_id: ID -} - -enum CriterionModifier { - """=""" - EQUALS, - """!=""" - NOT_EQUALS, - """>""" - GREATER_THAN, - """<""" - LESS_THAN, - """IS NULL""" - IS_NULL, - """IS NOT NULL""" - NOT_NULL, - INCLUDES, - EXCLUDES, -} - -input IntCriterionInput { - value: Int! - modifier: CriterionModifier! -}`}, - &ast.Source{Name: "graphql/schema/types/gallery.graphql", Input: `"""Gallery type""" -type Gallery { - id: ID! - checksum: String! - path: String! - title: String - - """The files in the gallery""" - files: [GalleryFilesType!]! # Resolver -} - -type GalleryFilesType { - index: Int! - name: String - path: String -} - -type FindGalleriesResultType { - count: Int! - galleries: [Gallery!]! -}`}, - &ast.Source{Name: "graphql/schema/types/metadata.graphql", Input: `input GenerateMetadataInput { - sprites: Boolean! - previews: Boolean! - markers: Boolean! - transcodes: Boolean! -} - -input ScanMetadataInput { - nameFromMetadata: Boolean! -}`}, - &ast.Source{Name: "graphql/schema/types/performer.graphql", Input: `type Performer { - id: ID! - checksum: String! - name: String - url: String - twitter: String - instagram: String - birthdate: String - ethnicity: String - country: String - eye_color: String - height: String - measurements: String - fake_tits: String - career_length: String - tattoos: String - piercings: String - aliases: String - favorite: Boolean! - - image_path: String # Resolver - scene_count: Int # Resolver - scenes: [Scene!]! -} - -input PerformerCreateInput { - name: String - url: String - birthdate: String - ethnicity: String - country: String - eye_color: String - height: String - measurements: String - fake_tits: String - career_length: String - tattoos: String - piercings: String - aliases: String - twitter: String - instagram: String - favorite: Boolean - """This should be base64 encoded""" - image: String! -} - -input PerformerUpdateInput { - id: ID! - name: String - url: String - birthdate: String - ethnicity: String - country: String - eye_color: String - height: String - measurements: String - fake_tits: String - career_length: String - tattoos: String - piercings: String - aliases: String - twitter: String - instagram: String - favorite: Boolean - """This should be base64 encoded""" - image: String -} - -input PerformerDestroyInput { - id: ID! -} - -type FindPerformersResultType { - count: Int! - performers: [Performer!]! -}`}, - &ast.Source{Name: "graphql/schema/types/scene-marker-tag.graphql", Input: `type SceneMarkerTag { - tag: Tag! - scene_markers: [SceneMarker!]! -}`}, - &ast.Source{Name: "graphql/schema/types/scene-marker.graphql", Input: `type SceneMarker { - id: ID! - scene: Scene! - title: String! - seconds: Float! - primary_tag: Tag! - tags: [Tag!]! - - """The path to stream this marker""" - stream: String! # Resolver - """The path to the preview image for this marker""" - preview: String! # Resolver -} - -input SceneMarkerCreateInput { - title: String! - seconds: Float! - scene_id: ID! - primary_tag_id: ID! - tag_ids: [ID!] -} - -input SceneMarkerUpdateInput { - id: ID! - title: String! - seconds: Float! - scene_id: ID! - primary_tag_id: ID! - tag_ids: [ID!] -} - -type FindSceneMarkersResultType { - count: Int! - scene_markers: [SceneMarker!]! -} - -type MarkerStringsResultType { - count: Int! - id: ID! - title: String! -}`}, - &ast.Source{Name: "graphql/schema/types/scene.graphql", Input: `type SceneFileType { - size: String - duration: Float - video_codec: String - audio_codec: String - width: Int - height: Int - framerate: Float - bitrate: Int -} - -type ScenePathsType { - screenshot: String # Resolver - preview: String # Resolver - stream: String # Resolver - webp: String # Resolver - vtt: String # Resolver - chapters_vtt: String # Resolver -} - -type Scene { - id: ID! - checksum: String! - title: String - details: String - url: String - date: String - rating: Int - path: String! - - file: SceneFileType! # Resolver - paths: ScenePathsType! # Resolver - is_streamable: Boolean! # Resolver - - scene_markers: [SceneMarker!]! - gallery: Gallery - studio: Studio - tags: [Tag!]! - performers: [Performer!]! -} - -input SceneUpdateInput { - clientMutationId: String - id: ID! - title: String - details: String - url: String - date: String - rating: Int - studio_id: ID - gallery_id: ID - performer_ids: [ID!] - tag_ids: [ID!] -} - -type FindScenesResultType { - count: Int! - scenes: [Scene!]! -}`}, - &ast.Source{Name: "graphql/schema/types/scraped-performer.graphql", Input: `"""A performer from a scraping operation...""" -type ScrapedPerformer { - name: String - url: String - twitter: String - instagram: String - birthdate: String - ethnicity: String - country: String - eye_color: String - height: String - measurements: String - fake_tits: String - career_length: String - tattoos: String - piercings: String - aliases: String -}`}, - &ast.Source{Name: "graphql/schema/types/stats.graphql", Input: `type StatsResultType { - scene_count: Int! - gallery_count: Int! - performer_count: Int! - studio_count: Int! - tag_count: Int! -}`}, - &ast.Source{Name: "graphql/schema/types/studio.graphql", Input: `type Studio { - id: ID! - checksum: String! - name: String! - url: String - - image_path: String # Resolver - scene_count: Int # Resolver -} - -input StudioCreateInput { - name: String! - url: String - """This should be base64 encoded""" - image: String! -} - -input StudioUpdateInput { - id: ID! - name: String - url: String - """This should be base64 encoded""" - image: String -} - -input StudioDestroyInput { - id: ID! -} - -type FindStudiosResultType { - count: Int! - studios: [Studio!]! -}`}, - &ast.Source{Name: "graphql/schema/types/tag.graphql", Input: `type Tag { - id: ID! - name: String! - - scene_count: Int # Resolver - scene_marker_count: Int # Resolver -} - -input TagCreateInput { - name: String! -} - -input TagUpdateInput { - id: ID! - name: String! -} - -input TagDestroyInput { - id: ID! -}`}, -) - -// endregion ************************** generated!.gotpl ************************** - -// region ***************************** args.gotpl ***************************** - -func (ec *executionContext) field_Mutation_configureGeneral_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 ConfigGeneralInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNConfigGeneralInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigGeneralInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_configureInterface_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 ConfigInterfaceInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNConfigInterfaceInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigInterfaceInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_performerCreate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 PerformerCreateInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNPerformerCreateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerCreateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_performerDestroy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 PerformerDestroyInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNPerformerDestroyInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerDestroyInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_performerUpdate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 PerformerUpdateInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNPerformerUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerUpdateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_sceneMarkerCreate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 SceneMarkerCreateInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNSceneMarkerCreateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerCreateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_sceneMarkerDestroy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_sceneMarkerUpdate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 SceneMarkerUpdateInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNSceneMarkerUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerUpdateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_sceneUpdate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 SceneUpdateInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNSceneUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneUpdateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_studioCreate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 StudioCreateInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNStudioCreateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudioCreateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_studioDestroy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 StudioDestroyInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNStudioDestroyInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudioDestroyInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_studioUpdate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 StudioUpdateInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNStudioUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudioUpdateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_tagCreate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 TagCreateInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNTagCreateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTagCreateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_tagDestroy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 TagDestroyInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNTagDestroyInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTagDestroyInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_tagUpdate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 TagUpdateInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNTagUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTagUpdateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["name"]; ok { - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["name"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_directories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *string - if tmp, ok := rawArgs["path"]; ok { - arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["path"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_findGalleries_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *FindFilterType - if tmp, ok := rawArgs["filter"]; ok { - arg0, err = ec.unmarshalOFindFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindFilterType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_findGallery_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_findPerformer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_findPerformers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *PerformerFilterType - if tmp, ok := rawArgs["performer_filter"]; ok { - arg0, err = ec.unmarshalOPerformerFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerFilterType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["performer_filter"] = arg0 - var arg1 *FindFilterType - if tmp, ok := rawArgs["filter"]; ok { - arg1, err = ec.unmarshalOFindFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindFilterType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Query_findSceneMarkers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *SceneMarkerFilterType - if tmp, ok := rawArgs["scene_marker_filter"]; ok { - arg0, err = ec.unmarshalOSceneMarkerFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerFilterType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["scene_marker_filter"] = arg0 - var arg1 *FindFilterType - if tmp, ok := rawArgs["filter"]; ok { - arg1, err = ec.unmarshalOFindFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindFilterType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Query_findScene_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *string - if tmp, ok := rawArgs["id"]; ok { - arg0, err = ec.unmarshalOID2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["checksum"]; ok { - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["checksum"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Query_findScenes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *SceneFilterType - if tmp, ok := rawArgs["scene_filter"]; ok { - arg0, err = ec.unmarshalOSceneFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneFilterType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["scene_filter"] = arg0 - var arg1 []int - if tmp, ok := rawArgs["scene_ids"]; ok { - arg1, err = ec.unmarshalOInt2ᚕint(ctx, tmp) - if err != nil { - return nil, err - } - } - args["scene_ids"] = arg1 - var arg2 *FindFilterType - if tmp, ok := rawArgs["filter"]; ok { - arg2, err = ec.unmarshalOFindFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindFilterType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Query_findStudio_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_findStudios_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *FindFilterType - if tmp, ok := rawArgs["filter"]; ok { - arg0, err = ec.unmarshalOFindFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindFilterType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_findTag_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_markerStrings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *string - if tmp, ok := rawArgs["q"]; ok { - arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["q"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["sort"]; ok { - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["sort"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Query_markerWall_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *string - if tmp, ok := rawArgs["q"]; ok { - arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["q"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_metadataGenerate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 GenerateMetadataInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNGenerateMetadataInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGenerateMetadataInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_metadataScan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 ScanMetadataInput - if tmp, ok := rawArgs["input"]; ok { - arg0, err = ec.unmarshalNScanMetadataInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScanMetadataInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_sceneMarkerTags_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["scene_id"]; ok { - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["scene_id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_sceneWall_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *string - if tmp, ok := rawArgs["q"]; ok { - arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["q"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_scrapeFreeonesPerformerList_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["query"]; ok { - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["query"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_scrapeFreeones_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["performer_name"]; ok { - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["performer_name"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_validGalleriesForScene_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *string - if tmp, ok := rawArgs["scene_id"]; ok { - arg0, err = ec.unmarshalOID2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["scene_id"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["includeDeprecated"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["includeDeprecated"] = arg0 - return args, nil -} - -// endregion ***************************** args.gotpl ***************************** - -// region **************************** field.gotpl ***************************** - -func (ec *executionContext) _ConfigGeneralResult_stashes(ctx context.Context, field graphql.CollectedField, obj *ConfigGeneralResult) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ConfigGeneralResult", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Stashes, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2ᚕstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ConfigGeneralResult_databasePath(ctx context.Context, field graphql.CollectedField, obj *ConfigGeneralResult) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ConfigGeneralResult", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DatabasePath, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _ConfigGeneralResult_generatedPath(ctx context.Context, field graphql.CollectedField, obj *ConfigGeneralResult) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ConfigGeneralResult", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeneratedPath, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _ConfigInterfaceResult_css(ctx context.Context, field graphql.CollectedField, obj *ConfigInterfaceResult) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ConfigInterfaceResult", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CSS, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ConfigInterfaceResult_cssEnabled(ctx context.Context, field graphql.CollectedField, obj *ConfigInterfaceResult) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ConfigInterfaceResult", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CSSEnabled, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) _ConfigResult_general(ctx context.Context, field graphql.CollectedField, obj *ConfigResult) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ConfigResult", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.General, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*ConfigGeneralResult) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNConfigGeneralResult2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigGeneralResult(ctx, field.Selections, res) -} - -func (ec *executionContext) _ConfigResult_interface(ctx context.Context, field graphql.CollectedField, obj *ConfigResult) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ConfigResult", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Interface, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*ConfigInterfaceResult) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNConfigInterfaceResult2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigInterfaceResult(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindGalleriesResultType_count(ctx context.Context, field graphql.CollectedField, obj *FindGalleriesResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindGalleriesResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Count, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindGalleriesResultType_galleries(ctx context.Context, field graphql.CollectedField, obj *FindGalleriesResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindGalleriesResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Galleries, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Gallery) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNGallery2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindPerformersResultType_count(ctx context.Context, field graphql.CollectedField, obj *FindPerformersResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindPerformersResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Count, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindPerformersResultType_performers(ctx context.Context, field graphql.CollectedField, obj *FindPerformersResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindPerformersResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Performers, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Performer) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNPerformer2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindSceneMarkersResultType_count(ctx context.Context, field graphql.CollectedField, obj *FindSceneMarkersResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindSceneMarkersResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Count, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindSceneMarkersResultType_scene_markers(ctx context.Context, field graphql.CollectedField, obj *FindSceneMarkersResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindSceneMarkersResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SceneMarkers, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*SceneMarker) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNSceneMarker2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindScenesResultType_count(ctx context.Context, field graphql.CollectedField, obj *FindScenesResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindScenesResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Count, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindScenesResultType_scenes(ctx context.Context, field graphql.CollectedField, obj *FindScenesResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindScenesResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Scenes, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Scene) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNScene2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindStudiosResultType_count(ctx context.Context, field graphql.CollectedField, obj *FindStudiosResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindStudiosResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Count, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _FindStudiosResultType_studios(ctx context.Context, field graphql.CollectedField, obj *FindStudiosResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "FindStudiosResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Studios, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Studio) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNStudio2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx, field.Selections, res) -} - -func (ec *executionContext) _Gallery_id(ctx context.Context, field graphql.CollectedField, obj *Gallery) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Gallery", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNID2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _Gallery_checksum(ctx context.Context, field graphql.CollectedField, obj *Gallery) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Gallery", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Checksum, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Gallery_path(ctx context.Context, field graphql.CollectedField, obj *Gallery) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Gallery", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Path, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Gallery_title(ctx context.Context, field graphql.CollectedField, obj *Gallery) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Gallery", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Gallery().Title(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Gallery_files(ctx context.Context, field graphql.CollectedField, obj *Gallery) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Gallery", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Gallery().Files(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*GalleryFilesType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNGalleryFilesType2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGalleryFilesType(ctx, field.Selections, res) -} - -func (ec *executionContext) _GalleryFilesType_index(ctx context.Context, field graphql.CollectedField, obj *GalleryFilesType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "GalleryFilesType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Index, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _GalleryFilesType_name(ctx context.Context, field graphql.CollectedField, obj *GalleryFilesType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "GalleryFilesType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _GalleryFilesType_path(ctx context.Context, field graphql.CollectedField, obj *GalleryFilesType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "GalleryFilesType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Path, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _MarkerStringsResultType_count(ctx context.Context, field graphql.CollectedField, obj *MarkerStringsResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "MarkerStringsResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Count, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _MarkerStringsResultType_id(ctx context.Context, field graphql.CollectedField, obj *MarkerStringsResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "MarkerStringsResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _MarkerStringsResultType_title(ctx context.Context, field graphql.CollectedField, obj *MarkerStringsResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "MarkerStringsResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Title, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_sceneUpdate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_sceneUpdate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().SceneUpdate(rctx, args["input"].(SceneUpdateInput)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Scene) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOScene2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_sceneMarkerCreate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_sceneMarkerCreate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().SceneMarkerCreate(rctx, args["input"].(SceneMarkerCreateInput)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*SceneMarker) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOSceneMarker2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_sceneMarkerUpdate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_sceneMarkerUpdate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().SceneMarkerUpdate(rctx, args["input"].(SceneMarkerUpdateInput)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*SceneMarker) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOSceneMarker2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_sceneMarkerDestroy(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_sceneMarkerDestroy_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().SceneMarkerDestroy(rctx, args["id"].(string)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_performerCreate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_performerCreate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().PerformerCreate(rctx, args["input"].(PerformerCreateInput)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Performer) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOPerformer2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_performerUpdate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_performerUpdate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().PerformerUpdate(rctx, args["input"].(PerformerUpdateInput)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Performer) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOPerformer2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_performerDestroy(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_performerDestroy_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().PerformerDestroy(rctx, args["input"].(PerformerDestroyInput)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_studioCreate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_studioCreate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().StudioCreate(rctx, args["input"].(StudioCreateInput)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Studio) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOStudio2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_studioUpdate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_studioUpdate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().StudioUpdate(rctx, args["input"].(StudioUpdateInput)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Studio) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOStudio2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_studioDestroy(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_studioDestroy_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().StudioDestroy(rctx, args["input"].(StudioDestroyInput)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_tagCreate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_tagCreate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().TagCreate(rctx, args["input"].(TagCreateInput)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Tag) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_tagUpdate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_tagUpdate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().TagUpdate(rctx, args["input"].(TagUpdateInput)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Tag) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_tagDestroy(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_tagDestroy_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().TagDestroy(rctx, args["input"].(TagDestroyInput)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_configureGeneral(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_configureGeneral_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().ConfigureGeneral(rctx, args["input"].(ConfigGeneralInput)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*ConfigGeneralResult) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNConfigGeneralResult2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigGeneralResult(ctx, field.Selections, res) -} - -func (ec *executionContext) _Mutation_configureInterface(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Mutation", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Mutation_configureInterface_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().ConfigureInterface(rctx, args["input"].(ConfigInterfaceInput)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*ConfigInterfaceResult) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNConfigInterfaceResult2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigInterfaceResult(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_id(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNID2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_checksum(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Checksum, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_name(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Name(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_url(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().URL(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_twitter(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Twitter(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_instagram(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Instagram(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_birthdate(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Birthdate(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_ethnicity(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Ethnicity(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_country(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Country(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_eye_color(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().EyeColor(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_height(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Height(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_measurements(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Measurements(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_fake_tits(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().FakeTits(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_career_length(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().CareerLength(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_tattoos(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Tattoos(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_piercings(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Piercings(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_aliases(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Aliases(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_favorite(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Favorite(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_image_path(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().ImagePath(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_scene_count(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().SceneCount(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) _Performer_scenes(ctx context.Context, field graphql.CollectedField, obj *Performer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Performer", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Performer().Scenes(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Scene) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNScene2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findScene(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findScene_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindScene(rctx, args["id"].(*string), args["checksum"].(*string)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Scene) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOScene2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findScenes(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findScenes_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindScenes(rctx, args["scene_filter"].(*SceneFilterType), args["scene_ids"].([]int), args["filter"].(*FindFilterType)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*FindScenesResultType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNFindScenesResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindScenesResultType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findSceneMarkers(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findSceneMarkers_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindSceneMarkers(rctx, args["scene_marker_filter"].(*SceneMarkerFilterType), args["filter"].(*FindFilterType)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*FindSceneMarkersResultType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNFindSceneMarkersResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindSceneMarkersResultType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findPerformer(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findPerformer_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindPerformer(rctx, args["id"].(string)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Performer) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOPerformer2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findPerformers(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findPerformers_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindPerformers(rctx, args["performer_filter"].(*PerformerFilterType), args["filter"].(*FindFilterType)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*FindPerformersResultType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNFindPerformersResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindPerformersResultType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findStudio(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findStudio_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindStudio(rctx, args["id"].(string)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Studio) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOStudio2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findStudios(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findStudios_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindStudios(rctx, args["filter"].(*FindFilterType)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*FindStudiosResultType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNFindStudiosResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindStudiosResultType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findGallery(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findGallery_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindGallery(rctx, args["id"].(string)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Gallery) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOGallery2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findGalleries(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findGalleries_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindGalleries(rctx, args["filter"].(*FindFilterType)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*FindGalleriesResultType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNFindGalleriesResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindGalleriesResultType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_findTag(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_findTag_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FindTag(rctx, args["id"].(string)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Tag) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_markerWall(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_markerWall_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MarkerWall(rctx, args["q"].(*string)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*SceneMarker) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNSceneMarker2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_sceneWall(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_sceneWall_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SceneWall(rctx, args["q"].(*string)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Scene) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNScene2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_markerStrings(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_markerStrings_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MarkerStrings(rctx, args["q"].(*string), args["sort"].(*string)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*MarkerStringsResultType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNMarkerStringsResultType2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐMarkerStringsResultType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_validGalleriesForScene(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_validGalleriesForScene_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ValidGalleriesForScene(rctx, args["scene_id"].(*string)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Gallery) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNGallery2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_stats(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Stats(rctx) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*StatsResultType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNStatsResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStatsResultType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_sceneMarkerTags(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_sceneMarkerTags_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SceneMarkerTags(rctx, args["scene_id"].(string)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*SceneMarkerTag) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNSceneMarkerTag2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerTag(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_scrapeFreeones(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_scrapeFreeones_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ScrapeFreeones(rctx, args["performer_name"].(string)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*ScrapedPerformer) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOScrapedPerformer2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScrapedPerformer(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_scrapeFreeonesPerformerList(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_scrapeFreeonesPerformerList_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ScrapeFreeonesPerformerList(rctx, args["query"].(string)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2ᚕstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_configuration(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Configuration(rctx) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*ConfigResult) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNConfigResult2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigResult(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_directories(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_directories_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Directories(rctx, args["path"].(*string)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2ᚕstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_metadataImport(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MetadataImport(rctx) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_metadataExport(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MetadataExport(rctx) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_metadataScan(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_metadataScan_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MetadataScan(rctx, args["input"].(ScanMetadataInput)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_metadataGenerate(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query_metadataGenerate_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MetadataGenerate(rctx, args["input"].(GenerateMetadataInput)) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_metadataClean(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MetadataClean(rctx) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_allPerformers(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AllPerformers(rctx) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Performer) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNPerformer2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_allStudios(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AllStudios(rctx) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Studio) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNStudio2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query_allTags(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AllTags(rctx) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Tag) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNTag2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field_Query___type_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.introspectType(args["name"].(string)) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Query", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.introspectSchema() - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Schema) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_id(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNID2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_checksum(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Checksum, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_title(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().Title(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_details(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().Details(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_url(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().URL(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_date(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().Date(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_rating(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().Rating(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_path(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Path, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_file(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().File(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*SceneFileType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNSceneFileType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneFileType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_paths(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().Paths(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*ScenePathsType) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNScenePathsType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScenePathsType(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_is_streamable(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().IsStreamable(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_scene_markers(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().SceneMarkers(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*SceneMarker) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNSceneMarker2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_gallery(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().Gallery(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Gallery) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOGallery2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_studio(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().Studio(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*Studio) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOStudio2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_tags(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().Tags(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Tag) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNTag2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx, field.Selections, res) -} - -func (ec *executionContext) _Scene_performers(ctx context.Context, field graphql.CollectedField, obj *Scene) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Scene", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Scene().Performers(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Performer) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNPerformer2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneFileType_size(ctx context.Context, field graphql.CollectedField, obj *SceneFileType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneFileType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Size, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneFileType_duration(ctx context.Context, field graphql.CollectedField, obj *SceneFileType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneFileType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Duration, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*float64) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneFileType_video_codec(ctx context.Context, field graphql.CollectedField, obj *SceneFileType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneFileType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.VideoCodec, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneFileType_audio_codec(ctx context.Context, field graphql.CollectedField, obj *SceneFileType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneFileType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AudioCodec, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneFileType_width(ctx context.Context, field graphql.CollectedField, obj *SceneFileType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneFileType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Width, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneFileType_height(ctx context.Context, field graphql.CollectedField, obj *SceneFileType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneFileType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Height, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneFileType_framerate(ctx context.Context, field graphql.CollectedField, obj *SceneFileType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneFileType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Framerate, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*float64) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneFileType_bitrate(ctx context.Context, field graphql.CollectedField, obj *SceneFileType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneFileType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Bitrate, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarker_id(ctx context.Context, field graphql.CollectedField, obj *SceneMarker) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarker", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNID2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarker_scene(ctx context.Context, field graphql.CollectedField, obj *SceneMarker) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarker", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.SceneMarker().Scene(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*Scene) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNScene2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarker_title(ctx context.Context, field graphql.CollectedField, obj *SceneMarker) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarker", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Title, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarker_seconds(ctx context.Context, field graphql.CollectedField, obj *SceneMarker) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarker", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Seconds, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(float64) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNFloat2float64(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarker_primary_tag(ctx context.Context, field graphql.CollectedField, obj *SceneMarker) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarker", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.SceneMarker().PrimaryTag(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*Tag) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarker_tags(ctx context.Context, field graphql.CollectedField, obj *SceneMarker) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarker", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.SceneMarker().Tags(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*Tag) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNTag2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarker_stream(ctx context.Context, field graphql.CollectedField, obj *SceneMarker) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarker", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.SceneMarker().Stream(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarker_preview(ctx context.Context, field graphql.CollectedField, obj *SceneMarker) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarker", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.SceneMarker().Preview(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarkerTag_tag(ctx context.Context, field graphql.CollectedField, obj *SceneMarkerTag) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarkerTag", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tag, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*Tag) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx, field.Selections, res) -} - -func (ec *executionContext) _SceneMarkerTag_scene_markers(ctx context.Context, field graphql.CollectedField, obj *SceneMarkerTag) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "SceneMarkerTag", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SceneMarkers, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*SceneMarker) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNSceneMarker2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScenePathsType_screenshot(ctx context.Context, field graphql.CollectedField, obj *ScenePathsType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScenePathsType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Screenshot, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScenePathsType_preview(ctx context.Context, field graphql.CollectedField, obj *ScenePathsType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScenePathsType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Preview, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScenePathsType_stream(ctx context.Context, field graphql.CollectedField, obj *ScenePathsType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScenePathsType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Stream, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScenePathsType_webp(ctx context.Context, field graphql.CollectedField, obj *ScenePathsType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScenePathsType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Webp, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScenePathsType_vtt(ctx context.Context, field graphql.CollectedField, obj *ScenePathsType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScenePathsType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Vtt, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScenePathsType_chapters_vtt(ctx context.Context, field graphql.CollectedField, obj *ScenePathsType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScenePathsType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ChaptersVtt, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_name(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_url(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.URL, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_twitter(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Twitter, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_instagram(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Instagram, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_birthdate(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Birthdate, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_ethnicity(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ethnicity, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_country(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Country, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_eye_color(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EyeColor, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_height(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Height, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_measurements(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Measurements, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_fake_tits(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FakeTits, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_career_length(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CareerLength, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_tattoos(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tattoos, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_piercings(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Piercings, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _ScrapedPerformer_aliases(ctx context.Context, field graphql.CollectedField, obj *ScrapedPerformer) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "ScrapedPerformer", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Aliases, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _StatsResultType_scene_count(ctx context.Context, field graphql.CollectedField, obj *StatsResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "StatsResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SceneCount, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _StatsResultType_gallery_count(ctx context.Context, field graphql.CollectedField, obj *StatsResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "StatsResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GalleryCount, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _StatsResultType_performer_count(ctx context.Context, field graphql.CollectedField, obj *StatsResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "StatsResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PerformerCount, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _StatsResultType_studio_count(ctx context.Context, field graphql.CollectedField, obj *StatsResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "StatsResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StudioCount, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _StatsResultType_tag_count(ctx context.Context, field graphql.CollectedField, obj *StatsResultType) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "StatsResultType", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TagCount, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _Studio_id(ctx context.Context, field graphql.CollectedField, obj *Studio) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Studio", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNID2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _Studio_checksum(ctx context.Context, field graphql.CollectedField, obj *Studio) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Studio", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Checksum, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Studio_name(ctx context.Context, field graphql.CollectedField, obj *Studio) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Studio", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Studio().Name(rctx, obj) - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Studio_url(ctx context.Context, field graphql.CollectedField, obj *Studio) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Studio", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Studio().URL(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Studio_image_path(ctx context.Context, field graphql.CollectedField, obj *Studio) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Studio", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Studio().ImagePath(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) _Studio_scene_count(ctx context.Context, field graphql.CollectedField, obj *Studio) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Studio", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Studio().SceneCount(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) _Subscription_metadataUpdate(ctx context.Context, field graphql.CollectedField) func() graphql.Marshaler { - ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{ - Field: field, - Args: nil, - }) - // FIXME: subscriptions are missing request middleware stack https://github.com/99designs/gqlgen/issues/259 - // and Tracer stack - rctx := ctx - results, err := ec.resolvers.Subscription().MetadataUpdate(rctx) - if err != nil { - ec.Error(ctx, err) - return nil - } - return func() graphql.Marshaler { - res, ok := <-results - if !ok { - return nil - } - return graphql.WriterFunc(func(w io.Writer) { - w.Write([]byte{'{'}) - graphql.MarshalString(field.Alias).MarshalGQL(w) - w.Write([]byte{':'}) - ec.marshalNString2string(ctx, field.Selections, res).MarshalGQL(w) - w.Write([]byte{'}'}) - }) - } -} - -func (ec *executionContext) _Tag_id(ctx context.Context, field graphql.CollectedField, obj *Tag) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Tag", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNID2int(ctx, field.Selections, res) -} - -func (ec *executionContext) _Tag_name(ctx context.Context, field graphql.CollectedField, obj *Tag) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Tag", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) _Tag_scene_count(ctx context.Context, field graphql.CollectedField, obj *Tag) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Tag", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Tag().SceneCount(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) _Tag_scene_marker_count(ctx context.Context, field graphql.CollectedField, obj *Tag) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "Tag", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Tag().SceneMarkerCount(rctx, obj) - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Directive", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Directive", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Directive", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Locations, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalN__DirectiveLocation2ᚕstring(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Directive", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Args, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, field.Selections, res) -} - -func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__EnumValue", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__EnumValue", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__EnumValue", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__EnumValue", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Args, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Field", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__InputValue", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__InputValue", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__InputValue", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__InputValue", - Field: field, - Args: nil, - IsMethod: false, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DefaultValue, nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Types(), nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QueryType(), nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MutationType(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubscriptionType(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Schema", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Directives(), nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.Directive) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Kind(), nil - }) - if resTmp == nil { - if !ec.HasError(rctx) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalN__TypeKind2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field___Type_fields_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Fields(args["includeDeprecated"].(bool)), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Field) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Interfaces(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PossibleTypes(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - rawArgs := field.ArgumentMap(ec.Variables) - args, err := ec.field___Type_enumValues_args(ctx, rawArgs) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - rctx.Args = args - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EnumValues(args["includeDeprecated"].(bool)), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.EnumValue) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.InputFields(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, field.Selections, res) -} - -func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { - ctx = ec.Tracer.StartFieldExecution(ctx, field) - defer func() { ec.Tracer.EndFieldExecution(ctx) }() - rctx := &graphql.ResolverContext{ - Object: "__Type", - Field: field, - Args: nil, - IsMethod: true, - } - ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) - resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OfType(), nil - }) - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - rctx.Result = res - ctx = ec.Tracer.StartFieldChildExecution(ctx) - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -// endregion **************************** field.gotpl ***************************** - -// region **************************** input.gotpl ***************************** - -func (ec *executionContext) unmarshalInputConfigGeneralInput(ctx context.Context, v interface{}) (ConfigGeneralInput, error) { - var it ConfigGeneralInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "stashes": - var err error - it.Stashes, err = ec.unmarshalOString2ᚕstring(ctx, v) - if err != nil { - return it, err - } - case "databasePath": - var err error - it.DatabasePath, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "generatedPath": - var err error - it.GeneratedPath, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigInterfaceInput(ctx context.Context, v interface{}) (ConfigInterfaceInput, error) { - var it ConfigInterfaceInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "css": - var err error - it.CSS, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "cssEnabled": - var err error - it.CSSEnabled, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputFindFilterType(ctx context.Context, v interface{}) (FindFilterType, error) { - var it FindFilterType - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "q": - var err error - it.Q, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "page": - var err error - it.Page, err = ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - case "per_page": - var err error - it.PerPage, err = ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - case "sort": - var err error - it.Sort, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "direction": - var err error - it.Direction, err = ec.unmarshalOSortDirectionEnum2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSortDirectionEnum(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputGenerateMetadataInput(ctx context.Context, v interface{}) (GenerateMetadataInput, error) { - var it GenerateMetadataInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "sprites": - var err error - it.Sprites, err = ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - case "previews": - var err error - it.Previews, err = ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - case "markers": - var err error - it.Markers, err = ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - case "transcodes": - var err error - it.Transcodes, err = ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIntCriterionInput(ctx context.Context, v interface{}) (IntCriterionInput, error) { - var it IntCriterionInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "value": - var err error - it.Value, err = ec.unmarshalNInt2int(ctx, v) - if err != nil { - return it, err - } - case "modifier": - var err error - it.Modifier, err = ec.unmarshalNCriterionModifier2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐCriterionModifier(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPerformerCreateInput(ctx context.Context, v interface{}) (PerformerCreateInput, error) { - var it PerformerCreateInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "name": - var err error - it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "url": - var err error - it.URL, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "birthdate": - var err error - it.Birthdate, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "ethnicity": - var err error - it.Ethnicity, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "country": - var err error - it.Country, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "eye_color": - var err error - it.EyeColor, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "height": - var err error - it.Height, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "measurements": - var err error - it.Measurements, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "fake_tits": - var err error - it.FakeTits, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "career_length": - var err error - it.CareerLength, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "tattoos": - var err error - it.Tattoos, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "piercings": - var err error - it.Piercings, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "aliases": - var err error - it.Aliases, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "twitter": - var err error - it.Twitter, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "instagram": - var err error - it.Instagram, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "favorite": - var err error - it.Favorite, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - case "image": - var err error - it.Image, err = ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPerformerDestroyInput(ctx context.Context, v interface{}) (PerformerDestroyInput, error) { - var it PerformerDestroyInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "id": - var err error - it.ID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPerformerFilterType(ctx context.Context, v interface{}) (PerformerFilterType, error) { - var it PerformerFilterType - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "filter_favorites": - var err error - it.FilterFavorites, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPerformerUpdateInput(ctx context.Context, v interface{}) (PerformerUpdateInput, error) { - var it PerformerUpdateInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "id": - var err error - it.ID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - case "name": - var err error - it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "url": - var err error - it.URL, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "birthdate": - var err error - it.Birthdate, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "ethnicity": - var err error - it.Ethnicity, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "country": - var err error - it.Country, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "eye_color": - var err error - it.EyeColor, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "height": - var err error - it.Height, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "measurements": - var err error - it.Measurements, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "fake_tits": - var err error - it.FakeTits, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "career_length": - var err error - it.CareerLength, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "tattoos": - var err error - it.Tattoos, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "piercings": - var err error - it.Piercings, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "aliases": - var err error - it.Aliases, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "twitter": - var err error - it.Twitter, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "instagram": - var err error - it.Instagram, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "favorite": - var err error - it.Favorite, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - case "image": - var err error - it.Image, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputScanMetadataInput(ctx context.Context, v interface{}) (ScanMetadataInput, error) { - var it ScanMetadataInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "nameFromMetadata": - var err error - it.NameFromMetadata, err = ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSceneFilterType(ctx context.Context, v interface{}) (SceneFilterType, error) { - var it SceneFilterType - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "rating": - var err error - it.Rating, err = ec.unmarshalOIntCriterionInput2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐIntCriterionInput(ctx, v) - if err != nil { - return it, err - } - case "resolution": - var err error - it.Resolution, err = ec.unmarshalOResolutionEnum2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐResolutionEnum(ctx, v) - if err != nil { - return it, err - } - case "has_markers": - var err error - it.HasMarkers, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "is_missing": - var err error - it.IsMissing, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "studio_id": - var err error - it.StudioID, err = ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "tags": - var err error - it.Tags, err = ec.unmarshalOID2ᚕstring(ctx, v) - if err != nil { - return it, err - } - case "performer_id": - var err error - it.PerformerID, err = ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSceneMarkerCreateInput(ctx context.Context, v interface{}) (SceneMarkerCreateInput, error) { - var it SceneMarkerCreateInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "title": - var err error - it.Title, err = ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - case "seconds": - var err error - it.Seconds, err = ec.unmarshalNFloat2float64(ctx, v) - if err != nil { - return it, err - } - case "scene_id": - var err error - it.SceneID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - case "primary_tag_id": - var err error - it.PrimaryTagID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - case "tag_ids": - var err error - it.TagIds, err = ec.unmarshalOID2ᚕstring(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSceneMarkerFilterType(ctx context.Context, v interface{}) (SceneMarkerFilterType, error) { - var it SceneMarkerFilterType - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "tag_id": - var err error - it.TagID, err = ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "tags": - var err error - it.Tags, err = ec.unmarshalOID2ᚕstring(ctx, v) - if err != nil { - return it, err - } - case "scene_tags": - var err error - it.SceneTags, err = ec.unmarshalOID2ᚕstring(ctx, v) - if err != nil { - return it, err - } - case "performers": - var err error - it.Performers, err = ec.unmarshalOID2ᚕstring(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSceneMarkerUpdateInput(ctx context.Context, v interface{}) (SceneMarkerUpdateInput, error) { - var it SceneMarkerUpdateInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "id": - var err error - it.ID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - case "title": - var err error - it.Title, err = ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - case "seconds": - var err error - it.Seconds, err = ec.unmarshalNFloat2float64(ctx, v) - if err != nil { - return it, err - } - case "scene_id": - var err error - it.SceneID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - case "primary_tag_id": - var err error - it.PrimaryTagID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - case "tag_ids": - var err error - it.TagIds, err = ec.unmarshalOID2ᚕstring(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSceneUpdateInput(ctx context.Context, v interface{}) (SceneUpdateInput, error) { - var it SceneUpdateInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "clientMutationId": - var err error - it.ClientMutationID, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "id": - var err error - it.ID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - case "title": - var err error - it.Title, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "details": - var err error - it.Details, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "url": - var err error - it.URL, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "date": - var err error - it.Date, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "rating": - var err error - it.Rating, err = ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - case "studio_id": - var err error - it.StudioID, err = ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "gallery_id": - var err error - it.GalleryID, err = ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "performer_ids": - var err error - it.PerformerIds, err = ec.unmarshalOID2ᚕstring(ctx, v) - if err != nil { - return it, err - } - case "tag_ids": - var err error - it.TagIds, err = ec.unmarshalOID2ᚕstring(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputStudioCreateInput(ctx context.Context, v interface{}) (StudioCreateInput, error) { - var it StudioCreateInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "name": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - case "url": - var err error - it.URL, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "image": - var err error - it.Image, err = ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputStudioDestroyInput(ctx context.Context, v interface{}) (StudioDestroyInput, error) { - var it StudioDestroyInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "id": - var err error - it.ID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputStudioUpdateInput(ctx context.Context, v interface{}) (StudioUpdateInput, error) { - var it StudioUpdateInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "id": - var err error - it.ID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - case "name": - var err error - it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "url": - var err error - it.URL, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - case "image": - var err error - it.Image, err = ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputTagCreateInput(ctx context.Context, v interface{}) (TagCreateInput, error) { - var it TagCreateInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "name": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputTagDestroyInput(ctx context.Context, v interface{}) (TagDestroyInput, error) { - var it TagDestroyInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "id": - var err error - it.ID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputTagUpdateInput(ctx context.Context, v interface{}) (TagUpdateInput, error) { - var it TagUpdateInput - var asMap = v.(map[string]interface{}) - - for k, v := range asMap { - switch k { - case "id": - var err error - it.ID, err = ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - case "name": - var err error - it.Name, err = ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - } - } - - return it, nil -} - -// endregion **************************** input.gotpl ***************************** - -// region ************************** interface.gotpl *************************** - -// endregion ************************** interface.gotpl *************************** - -// region **************************** object.gotpl **************************** - -var configGeneralResultImplementors = []string{"ConfigGeneralResult"} - -func (ec *executionContext) _ConfigGeneralResult(ctx context.Context, sel ast.SelectionSet, obj *ConfigGeneralResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, configGeneralResultImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ConfigGeneralResult") - case "stashes": - out.Values[i] = ec._ConfigGeneralResult_stashes(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "databasePath": - out.Values[i] = ec._ConfigGeneralResult_databasePath(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "generatedPath": - out.Values[i] = ec._ConfigGeneralResult_generatedPath(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var configInterfaceResultImplementors = []string{"ConfigInterfaceResult"} - -func (ec *executionContext) _ConfigInterfaceResult(ctx context.Context, sel ast.SelectionSet, obj *ConfigInterfaceResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, configInterfaceResultImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ConfigInterfaceResult") - case "css": - out.Values[i] = ec._ConfigInterfaceResult_css(ctx, field, obj) - case "cssEnabled": - out.Values[i] = ec._ConfigInterfaceResult_cssEnabled(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var configResultImplementors = []string{"ConfigResult"} - -func (ec *executionContext) _ConfigResult(ctx context.Context, sel ast.SelectionSet, obj *ConfigResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, configResultImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ConfigResult") - case "general": - out.Values[i] = ec._ConfigResult_general(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "interface": - out.Values[i] = ec._ConfigResult_interface(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var findGalleriesResultTypeImplementors = []string{"FindGalleriesResultType"} - -func (ec *executionContext) _FindGalleriesResultType(ctx context.Context, sel ast.SelectionSet, obj *FindGalleriesResultType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, findGalleriesResultTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FindGalleriesResultType") - case "count": - out.Values[i] = ec._FindGalleriesResultType_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "galleries": - out.Values[i] = ec._FindGalleriesResultType_galleries(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var findPerformersResultTypeImplementors = []string{"FindPerformersResultType"} - -func (ec *executionContext) _FindPerformersResultType(ctx context.Context, sel ast.SelectionSet, obj *FindPerformersResultType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, findPerformersResultTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FindPerformersResultType") - case "count": - out.Values[i] = ec._FindPerformersResultType_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "performers": - out.Values[i] = ec._FindPerformersResultType_performers(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var findSceneMarkersResultTypeImplementors = []string{"FindSceneMarkersResultType"} - -func (ec *executionContext) _FindSceneMarkersResultType(ctx context.Context, sel ast.SelectionSet, obj *FindSceneMarkersResultType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, findSceneMarkersResultTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FindSceneMarkersResultType") - case "count": - out.Values[i] = ec._FindSceneMarkersResultType_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "scene_markers": - out.Values[i] = ec._FindSceneMarkersResultType_scene_markers(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var findScenesResultTypeImplementors = []string{"FindScenesResultType"} - -func (ec *executionContext) _FindScenesResultType(ctx context.Context, sel ast.SelectionSet, obj *FindScenesResultType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, findScenesResultTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FindScenesResultType") - case "count": - out.Values[i] = ec._FindScenesResultType_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "scenes": - out.Values[i] = ec._FindScenesResultType_scenes(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var findStudiosResultTypeImplementors = []string{"FindStudiosResultType"} - -func (ec *executionContext) _FindStudiosResultType(ctx context.Context, sel ast.SelectionSet, obj *FindStudiosResultType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, findStudiosResultTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FindStudiosResultType") - case "count": - out.Values[i] = ec._FindStudiosResultType_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "studios": - out.Values[i] = ec._FindStudiosResultType_studios(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var galleryImplementors = []string{"Gallery"} - -func (ec *executionContext) _Gallery(ctx context.Context, sel ast.SelectionSet, obj *Gallery) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, galleryImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Gallery") - case "id": - out.Values[i] = ec._Gallery_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "checksum": - out.Values[i] = ec._Gallery_checksum(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "path": - out.Values[i] = ec._Gallery_path(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "title": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Gallery_title(ctx, field, obj) - return res - }) - case "files": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Gallery_files(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var galleryFilesTypeImplementors = []string{"GalleryFilesType"} - -func (ec *executionContext) _GalleryFilesType(ctx context.Context, sel ast.SelectionSet, obj *GalleryFilesType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, galleryFilesTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GalleryFilesType") - case "index": - out.Values[i] = ec._GalleryFilesType_index(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "name": - out.Values[i] = ec._GalleryFilesType_name(ctx, field, obj) - case "path": - out.Values[i] = ec._GalleryFilesType_path(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var markerStringsResultTypeImplementors = []string{"MarkerStringsResultType"} - -func (ec *executionContext) _MarkerStringsResultType(ctx context.Context, sel ast.SelectionSet, obj *MarkerStringsResultType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, markerStringsResultTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MarkerStringsResultType") - case "count": - out.Values[i] = ec._MarkerStringsResultType_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "id": - out.Values[i] = ec._MarkerStringsResultType_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "title": - out.Values[i] = ec._MarkerStringsResultType_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var mutationImplementors = []string{"Mutation"} - -func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, mutationImplementors) - - ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{ - Object: "Mutation", - }) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Mutation") - case "sceneUpdate": - out.Values[i] = ec._Mutation_sceneUpdate(ctx, field) - case "sceneMarkerCreate": - out.Values[i] = ec._Mutation_sceneMarkerCreate(ctx, field) - case "sceneMarkerUpdate": - out.Values[i] = ec._Mutation_sceneMarkerUpdate(ctx, field) - case "sceneMarkerDestroy": - out.Values[i] = ec._Mutation_sceneMarkerDestroy(ctx, field) - if out.Values[i] == graphql.Null { - invalids++ - } - case "performerCreate": - out.Values[i] = ec._Mutation_performerCreate(ctx, field) - case "performerUpdate": - out.Values[i] = ec._Mutation_performerUpdate(ctx, field) - case "performerDestroy": - out.Values[i] = ec._Mutation_performerDestroy(ctx, field) - if out.Values[i] == graphql.Null { - invalids++ - } - case "studioCreate": - out.Values[i] = ec._Mutation_studioCreate(ctx, field) - case "studioUpdate": - out.Values[i] = ec._Mutation_studioUpdate(ctx, field) - case "studioDestroy": - out.Values[i] = ec._Mutation_studioDestroy(ctx, field) - if out.Values[i] == graphql.Null { - invalids++ - } - case "tagCreate": - out.Values[i] = ec._Mutation_tagCreate(ctx, field) - case "tagUpdate": - out.Values[i] = ec._Mutation_tagUpdate(ctx, field) - case "tagDestroy": - out.Values[i] = ec._Mutation_tagDestroy(ctx, field) - if out.Values[i] == graphql.Null { - invalids++ - } - case "configureGeneral": - out.Values[i] = ec._Mutation_configureGeneral(ctx, field) - if out.Values[i] == graphql.Null { - invalids++ - } - case "configureInterface": - out.Values[i] = ec._Mutation_configureInterface(ctx, field) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var performerImplementors = []string{"Performer"} - -func (ec *executionContext) _Performer(ctx context.Context, sel ast.SelectionSet, obj *Performer) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, performerImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Performer") - case "id": - out.Values[i] = ec._Performer_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "checksum": - out.Values[i] = ec._Performer_checksum(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "name": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_name(ctx, field, obj) - return res - }) - case "url": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_url(ctx, field, obj) - return res - }) - case "twitter": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_twitter(ctx, field, obj) - return res - }) - case "instagram": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_instagram(ctx, field, obj) - return res - }) - case "birthdate": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_birthdate(ctx, field, obj) - return res - }) - case "ethnicity": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_ethnicity(ctx, field, obj) - return res - }) - case "country": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_country(ctx, field, obj) - return res - }) - case "eye_color": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_eye_color(ctx, field, obj) - return res - }) - case "height": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_height(ctx, field, obj) - return res - }) - case "measurements": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_measurements(ctx, field, obj) - return res - }) - case "fake_tits": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_fake_tits(ctx, field, obj) - return res - }) - case "career_length": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_career_length(ctx, field, obj) - return res - }) - case "tattoos": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_tattoos(ctx, field, obj) - return res - }) - case "piercings": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_piercings(ctx, field, obj) - return res - }) - case "aliases": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_aliases(ctx, field, obj) - return res - }) - case "favorite": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_favorite(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "image_path": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_image_path(ctx, field, obj) - return res - }) - case "scene_count": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_scene_count(ctx, field, obj) - return res - }) - case "scenes": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Performer_scenes(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var queryImplementors = []string{"Query"} - -func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, queryImplementors) - - ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{ - Object: "Query", - }) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Query") - case "findScene": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findScene(ctx, field) - return res - }) - case "findScenes": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findScenes(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "findSceneMarkers": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findSceneMarkers(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "findPerformer": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findPerformer(ctx, field) - return res - }) - case "findPerformers": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findPerformers(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "findStudio": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findStudio(ctx, field) - return res - }) - case "findStudios": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findStudios(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "findGallery": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findGallery(ctx, field) - return res - }) - case "findGalleries": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findGalleries(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "findTag": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_findTag(ctx, field) - return res - }) - case "markerWall": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_markerWall(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "sceneWall": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_sceneWall(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "markerStrings": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_markerStrings(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "validGalleriesForScene": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_validGalleriesForScene(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "stats": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_stats(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "sceneMarkerTags": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_sceneMarkerTags(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "scrapeFreeones": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_scrapeFreeones(ctx, field) - return res - }) - case "scrapeFreeonesPerformerList": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_scrapeFreeonesPerformerList(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "configuration": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_configuration(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "directories": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_directories(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "metadataImport": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_metadataImport(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "metadataExport": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_metadataExport(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "metadataScan": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_metadataScan(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "metadataGenerate": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_metadataGenerate(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "metadataClean": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_metadataClean(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "allPerformers": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_allPerformers(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "allStudios": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_allStudios(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "allTags": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_allTags(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "__type": - out.Values[i] = ec._Query___type(ctx, field) - case "__schema": - out.Values[i] = ec._Query___schema(ctx, field) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var sceneImplementors = []string{"Scene"} - -func (ec *executionContext) _Scene(ctx context.Context, sel ast.SelectionSet, obj *Scene) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, sceneImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Scene") - case "id": - out.Values[i] = ec._Scene_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "checksum": - out.Values[i] = ec._Scene_checksum(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "title": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_title(ctx, field, obj) - return res - }) - case "details": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_details(ctx, field, obj) - return res - }) - case "url": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_url(ctx, field, obj) - return res - }) - case "date": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_date(ctx, field, obj) - return res - }) - case "rating": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_rating(ctx, field, obj) - return res - }) - case "path": - out.Values[i] = ec._Scene_path(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "file": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_file(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "paths": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_paths(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "is_streamable": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_is_streamable(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "scene_markers": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_scene_markers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "gallery": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_gallery(ctx, field, obj) - return res - }) - case "studio": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_studio(ctx, field, obj) - return res - }) - case "tags": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_tags(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "performers": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Scene_performers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var sceneFileTypeImplementors = []string{"SceneFileType"} - -func (ec *executionContext) _SceneFileType(ctx context.Context, sel ast.SelectionSet, obj *SceneFileType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, sceneFileTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SceneFileType") - case "size": - out.Values[i] = ec._SceneFileType_size(ctx, field, obj) - case "duration": - out.Values[i] = ec._SceneFileType_duration(ctx, field, obj) - case "video_codec": - out.Values[i] = ec._SceneFileType_video_codec(ctx, field, obj) - case "audio_codec": - out.Values[i] = ec._SceneFileType_audio_codec(ctx, field, obj) - case "width": - out.Values[i] = ec._SceneFileType_width(ctx, field, obj) - case "height": - out.Values[i] = ec._SceneFileType_height(ctx, field, obj) - case "framerate": - out.Values[i] = ec._SceneFileType_framerate(ctx, field, obj) - case "bitrate": - out.Values[i] = ec._SceneFileType_bitrate(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var sceneMarkerImplementors = []string{"SceneMarker"} - -func (ec *executionContext) _SceneMarker(ctx context.Context, sel ast.SelectionSet, obj *SceneMarker) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, sceneMarkerImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SceneMarker") - case "id": - out.Values[i] = ec._SceneMarker_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "scene": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SceneMarker_scene(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "title": - out.Values[i] = ec._SceneMarker_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "seconds": - out.Values[i] = ec._SceneMarker_seconds(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "primary_tag": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SceneMarker_primary_tag(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "tags": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SceneMarker_tags(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "stream": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SceneMarker_stream(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "preview": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SceneMarker_preview(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var sceneMarkerTagImplementors = []string{"SceneMarkerTag"} - -func (ec *executionContext) _SceneMarkerTag(ctx context.Context, sel ast.SelectionSet, obj *SceneMarkerTag) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, sceneMarkerTagImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SceneMarkerTag") - case "tag": - out.Values[i] = ec._SceneMarkerTag_tag(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "scene_markers": - out.Values[i] = ec._SceneMarkerTag_scene_markers(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var scenePathsTypeImplementors = []string{"ScenePathsType"} - -func (ec *executionContext) _ScenePathsType(ctx context.Context, sel ast.SelectionSet, obj *ScenePathsType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, scenePathsTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ScenePathsType") - case "screenshot": - out.Values[i] = ec._ScenePathsType_screenshot(ctx, field, obj) - case "preview": - out.Values[i] = ec._ScenePathsType_preview(ctx, field, obj) - case "stream": - out.Values[i] = ec._ScenePathsType_stream(ctx, field, obj) - case "webp": - out.Values[i] = ec._ScenePathsType_webp(ctx, field, obj) - case "vtt": - out.Values[i] = ec._ScenePathsType_vtt(ctx, field, obj) - case "chapters_vtt": - out.Values[i] = ec._ScenePathsType_chapters_vtt(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var scrapedPerformerImplementors = []string{"ScrapedPerformer"} - -func (ec *executionContext) _ScrapedPerformer(ctx context.Context, sel ast.SelectionSet, obj *ScrapedPerformer) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, scrapedPerformerImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ScrapedPerformer") - case "name": - out.Values[i] = ec._ScrapedPerformer_name(ctx, field, obj) - case "url": - out.Values[i] = ec._ScrapedPerformer_url(ctx, field, obj) - case "twitter": - out.Values[i] = ec._ScrapedPerformer_twitter(ctx, field, obj) - case "instagram": - out.Values[i] = ec._ScrapedPerformer_instagram(ctx, field, obj) - case "birthdate": - out.Values[i] = ec._ScrapedPerformer_birthdate(ctx, field, obj) - case "ethnicity": - out.Values[i] = ec._ScrapedPerformer_ethnicity(ctx, field, obj) - case "country": - out.Values[i] = ec._ScrapedPerformer_country(ctx, field, obj) - case "eye_color": - out.Values[i] = ec._ScrapedPerformer_eye_color(ctx, field, obj) - case "height": - out.Values[i] = ec._ScrapedPerformer_height(ctx, field, obj) - case "measurements": - out.Values[i] = ec._ScrapedPerformer_measurements(ctx, field, obj) - case "fake_tits": - out.Values[i] = ec._ScrapedPerformer_fake_tits(ctx, field, obj) - case "career_length": - out.Values[i] = ec._ScrapedPerformer_career_length(ctx, field, obj) - case "tattoos": - out.Values[i] = ec._ScrapedPerformer_tattoos(ctx, field, obj) - case "piercings": - out.Values[i] = ec._ScrapedPerformer_piercings(ctx, field, obj) - case "aliases": - out.Values[i] = ec._ScrapedPerformer_aliases(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var statsResultTypeImplementors = []string{"StatsResultType"} - -func (ec *executionContext) _StatsResultType(ctx context.Context, sel ast.SelectionSet, obj *StatsResultType) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, statsResultTypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("StatsResultType") - case "scene_count": - out.Values[i] = ec._StatsResultType_scene_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "gallery_count": - out.Values[i] = ec._StatsResultType_gallery_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "performer_count": - out.Values[i] = ec._StatsResultType_performer_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "studio_count": - out.Values[i] = ec._StatsResultType_studio_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "tag_count": - out.Values[i] = ec._StatsResultType_tag_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var studioImplementors = []string{"Studio"} - -func (ec *executionContext) _Studio(ctx context.Context, sel ast.SelectionSet, obj *Studio) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, studioImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Studio") - case "id": - out.Values[i] = ec._Studio_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "checksum": - out.Values[i] = ec._Studio_checksum(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "name": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Studio_name(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - return res - }) - case "url": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Studio_url(ctx, field, obj) - return res - }) - case "image_path": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Studio_image_path(ctx, field, obj) - return res - }) - case "scene_count": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Studio_scene_count(ctx, field, obj) - return res - }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var subscriptionImplementors = []string{"Subscription"} - -func (ec *executionContext) _Subscription(ctx context.Context, sel ast.SelectionSet) func() graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, subscriptionImplementors) - ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{ - Object: "Subscription", - }) - if len(fields) != 1 { - ec.Errorf(ctx, "must subscribe to exactly one stream") - return nil - } - - switch fields[0].Name { - case "metadataUpdate": - return ec._Subscription_metadataUpdate(ctx, fields[0]) - default: - panic("unknown field " + strconv.Quote(fields[0].Name)) - } -} - -var tagImplementors = []string{"Tag"} - -func (ec *executionContext) _Tag(ctx context.Context, sel ast.SelectionSet, obj *Tag) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, tagImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Tag") - case "id": - out.Values[i] = ec._Tag_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "name": - out.Values[i] = ec._Tag_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) - } - case "scene_count": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Tag_scene_count(ctx, field, obj) - return res - }) - case "scene_marker_count": - field := field - out.Concurrently(i, func() (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Tag_scene_marker_count(ctx, field, obj) - return res - }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var __DirectiveImplementors = []string{"__Directive"} - -func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, __DirectiveImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Directive") - case "name": - out.Values[i] = ec.___Directive_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "description": - out.Values[i] = ec.___Directive_description(ctx, field, obj) - case "locations": - out.Values[i] = ec.___Directive_locations(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "args": - out.Values[i] = ec.___Directive_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var __EnumValueImplementors = []string{"__EnumValue"} - -func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, __EnumValueImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__EnumValue") - case "name": - out.Values[i] = ec.___EnumValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "description": - out.Values[i] = ec.___EnumValue_description(ctx, field, obj) - case "isDeprecated": - out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var __FieldImplementors = []string{"__Field"} - -func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, __FieldImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Field") - case "name": - out.Values[i] = ec.___Field_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "description": - out.Values[i] = ec.___Field_description(ctx, field, obj) - case "args": - out.Values[i] = ec.___Field_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "type": - out.Values[i] = ec.___Field_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "isDeprecated": - out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var __InputValueImplementors = []string{"__InputValue"} - -func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, __InputValueImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__InputValue") - case "name": - out.Values[i] = ec.___InputValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "description": - out.Values[i] = ec.___InputValue_description(ctx, field, obj) - case "type": - out.Values[i] = ec.___InputValue_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "defaultValue": - out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var __SchemaImplementors = []string{"__Schema"} - -func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, __SchemaImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Schema") - case "types": - out.Values[i] = ec.___Schema_types(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "queryType": - out.Values[i] = ec.___Schema_queryType(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "mutationType": - out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) - case "subscriptionType": - out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) - case "directives": - out.Values[i] = ec.___Schema_directives(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -var __TypeImplementors = []string{"__Type"} - -func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { - fields := graphql.CollectFields(ec.RequestContext, sel, __TypeImplementors) - - out := graphql.NewFieldSet(fields) - var invalids uint32 - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Type") - case "kind": - out.Values[i] = ec.___Type_kind(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ - } - case "name": - out.Values[i] = ec.___Type_name(ctx, field, obj) - case "description": - out.Values[i] = ec.___Type_description(ctx, field, obj) - case "fields": - out.Values[i] = ec.___Type_fields(ctx, field, obj) - case "interfaces": - out.Values[i] = ec.___Type_interfaces(ctx, field, obj) - case "possibleTypes": - out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) - case "enumValues": - out.Values[i] = ec.___Type_enumValues(ctx, field, obj) - case "inputFields": - out.Values[i] = ec.___Type_inputFields(ctx, field, obj) - case "ofType": - out.Values[i] = ec.___Type_ofType(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch() - if invalids > 0 { - return graphql.Null - } - return out -} - -// endregion **************************** object.gotpl **************************** - -// region ***************************** type.gotpl ***************************** - -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - return graphql.UnmarshalBoolean(v) -} - -func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - if res == graphql.Null { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - } - return res -} - -func (ec *executionContext) unmarshalNConfigGeneralInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigGeneralInput(ctx context.Context, v interface{}) (ConfigGeneralInput, error) { - return ec.unmarshalInputConfigGeneralInput(ctx, v) -} - -func (ec *executionContext) marshalNConfigGeneralResult2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigGeneralResult(ctx context.Context, sel ast.SelectionSet, v ConfigGeneralResult) graphql.Marshaler { - return ec._ConfigGeneralResult(ctx, sel, &v) -} - -func (ec *executionContext) marshalNConfigGeneralResult2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigGeneralResult(ctx context.Context, sel ast.SelectionSet, v *ConfigGeneralResult) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._ConfigGeneralResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNConfigInterfaceInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigInterfaceInput(ctx context.Context, v interface{}) (ConfigInterfaceInput, error) { - return ec.unmarshalInputConfigInterfaceInput(ctx, v) -} - -func (ec *executionContext) marshalNConfigInterfaceResult2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigInterfaceResult(ctx context.Context, sel ast.SelectionSet, v ConfigInterfaceResult) graphql.Marshaler { - return ec._ConfigInterfaceResult(ctx, sel, &v) -} - -func (ec *executionContext) marshalNConfigInterfaceResult2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigInterfaceResult(ctx context.Context, sel ast.SelectionSet, v *ConfigInterfaceResult) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._ConfigInterfaceResult(ctx, sel, v) -} - -func (ec *executionContext) marshalNConfigResult2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigResult(ctx context.Context, sel ast.SelectionSet, v ConfigResult) graphql.Marshaler { - return ec._ConfigResult(ctx, sel, &v) -} - -func (ec *executionContext) marshalNConfigResult2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐConfigResult(ctx context.Context, sel ast.SelectionSet, v *ConfigResult) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._ConfigResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCriterionModifier2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐCriterionModifier(ctx context.Context, v interface{}) (CriterionModifier, error) { - var res CriterionModifier - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalNCriterionModifier2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐCriterionModifier(ctx context.Context, sel ast.SelectionSet, v CriterionModifier) graphql.Marshaler { - return v -} - -func (ec *executionContext) marshalNFindGalleriesResultType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindGalleriesResultType(ctx context.Context, sel ast.SelectionSet, v FindGalleriesResultType) graphql.Marshaler { - return ec._FindGalleriesResultType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFindGalleriesResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindGalleriesResultType(ctx context.Context, sel ast.SelectionSet, v *FindGalleriesResultType) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._FindGalleriesResultType(ctx, sel, v) -} - -func (ec *executionContext) marshalNFindPerformersResultType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindPerformersResultType(ctx context.Context, sel ast.SelectionSet, v FindPerformersResultType) graphql.Marshaler { - return ec._FindPerformersResultType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFindPerformersResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindPerformersResultType(ctx context.Context, sel ast.SelectionSet, v *FindPerformersResultType) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._FindPerformersResultType(ctx, sel, v) -} - -func (ec *executionContext) marshalNFindSceneMarkersResultType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindSceneMarkersResultType(ctx context.Context, sel ast.SelectionSet, v FindSceneMarkersResultType) graphql.Marshaler { - return ec._FindSceneMarkersResultType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFindSceneMarkersResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindSceneMarkersResultType(ctx context.Context, sel ast.SelectionSet, v *FindSceneMarkersResultType) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._FindSceneMarkersResultType(ctx, sel, v) -} - -func (ec *executionContext) marshalNFindScenesResultType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindScenesResultType(ctx context.Context, sel ast.SelectionSet, v FindScenesResultType) graphql.Marshaler { - return ec._FindScenesResultType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFindScenesResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindScenesResultType(ctx context.Context, sel ast.SelectionSet, v *FindScenesResultType) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._FindScenesResultType(ctx, sel, v) -} - -func (ec *executionContext) marshalNFindStudiosResultType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindStudiosResultType(ctx context.Context, sel ast.SelectionSet, v FindStudiosResultType) graphql.Marshaler { - return ec._FindStudiosResultType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFindStudiosResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindStudiosResultType(ctx context.Context, sel ast.SelectionSet, v *FindStudiosResultType) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._FindStudiosResultType(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { - return graphql.UnmarshalFloat(v) -} - -func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { - res := graphql.MarshalFloat(v) - if res == graphql.Null { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - } - return res -} - -func (ec *executionContext) marshalNGallery2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx context.Context, sel ast.SelectionSet, v Gallery) graphql.Marshaler { - return ec._Gallery(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGallery2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx context.Context, sel ast.SelectionSet, v []*Gallery) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGallery2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalNGallery2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx context.Context, sel ast.SelectionSet, v *Gallery) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._Gallery(ctx, sel, v) -} - -func (ec *executionContext) marshalNGalleryFilesType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGalleryFilesType(ctx context.Context, sel ast.SelectionSet, v GalleryFilesType) graphql.Marshaler { - return ec._GalleryFilesType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGalleryFilesType2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGalleryFilesType(ctx context.Context, sel ast.SelectionSet, v []*GalleryFilesType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGalleryFilesType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGalleryFilesType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalNGalleryFilesType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGalleryFilesType(ctx context.Context, sel ast.SelectionSet, v *GalleryFilesType) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._GalleryFilesType(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNGenerateMetadataInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGenerateMetadataInput(ctx context.Context, v interface{}) (GenerateMetadataInput, error) { - return ec.unmarshalInputGenerateMetadataInput(ctx, v) -} - -func (ec *executionContext) unmarshalNID2int(ctx context.Context, v interface{}) (int, error) { - return graphql.UnmarshalIntID(v) -} - -func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - res := graphql.MarshalIntID(v) - if res == graphql.Null { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - } - return res -} - -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalID(v) -} - -func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalID(v) - if res == graphql.Null { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - } - return res -} - -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { - return graphql.UnmarshalInt(v) -} - -func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - res := graphql.MarshalInt(v) - if res == graphql.Null { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - } - return res -} - -func (ec *executionContext) marshalNMarkerStringsResultType2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐMarkerStringsResultType(ctx context.Context, sel ast.SelectionSet, v []*MarkerStringsResultType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOMarkerStringsResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐMarkerStringsResultType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalNPerformer2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx context.Context, sel ast.SelectionSet, v Performer) graphql.Marshaler { - return ec._Performer(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPerformer2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx context.Context, sel ast.SelectionSet, v []*Performer) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPerformer2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalNPerformer2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx context.Context, sel ast.SelectionSet, v *Performer) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._Performer(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPerformerCreateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerCreateInput(ctx context.Context, v interface{}) (PerformerCreateInput, error) { - return ec.unmarshalInputPerformerCreateInput(ctx, v) -} - -func (ec *executionContext) unmarshalNPerformerDestroyInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerDestroyInput(ctx context.Context, v interface{}) (PerformerDestroyInput, error) { - return ec.unmarshalInputPerformerDestroyInput(ctx, v) -} - -func (ec *executionContext) unmarshalNPerformerUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerUpdateInput(ctx context.Context, v interface{}) (PerformerUpdateInput, error) { - return ec.unmarshalInputPerformerUpdateInput(ctx, v) -} - -func (ec *executionContext) unmarshalNScanMetadataInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScanMetadataInput(ctx context.Context, v interface{}) (ScanMetadataInput, error) { - return ec.unmarshalInputScanMetadataInput(ctx, v) -} - -func (ec *executionContext) marshalNScene2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx context.Context, sel ast.SelectionSet, v Scene) graphql.Marshaler { - return ec._Scene(ctx, sel, &v) -} - -func (ec *executionContext) marshalNScene2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx context.Context, sel ast.SelectionSet, v []*Scene) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNScene2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalNScene2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx context.Context, sel ast.SelectionSet, v *Scene) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._Scene(ctx, sel, v) -} - -func (ec *executionContext) marshalNSceneFileType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneFileType(ctx context.Context, sel ast.SelectionSet, v SceneFileType) graphql.Marshaler { - return ec._SceneFileType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSceneFileType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneFileType(ctx context.Context, sel ast.SelectionSet, v *SceneFileType) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._SceneFileType(ctx, sel, v) -} - -func (ec *executionContext) marshalNSceneMarker2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx context.Context, sel ast.SelectionSet, v SceneMarker) graphql.Marshaler { - return ec._SceneMarker(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSceneMarker2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx context.Context, sel ast.SelectionSet, v []*SceneMarker) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNSceneMarker2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalNSceneMarker2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx context.Context, sel ast.SelectionSet, v *SceneMarker) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._SceneMarker(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSceneMarkerCreateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerCreateInput(ctx context.Context, v interface{}) (SceneMarkerCreateInput, error) { - return ec.unmarshalInputSceneMarkerCreateInput(ctx, v) -} - -func (ec *executionContext) marshalNSceneMarkerTag2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerTag(ctx context.Context, sel ast.SelectionSet, v SceneMarkerTag) graphql.Marshaler { - return ec._SceneMarkerTag(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSceneMarkerTag2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerTag(ctx context.Context, sel ast.SelectionSet, v []*SceneMarkerTag) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNSceneMarkerTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerTag(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalNSceneMarkerTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerTag(ctx context.Context, sel ast.SelectionSet, v *SceneMarkerTag) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._SceneMarkerTag(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSceneMarkerUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerUpdateInput(ctx context.Context, v interface{}) (SceneMarkerUpdateInput, error) { - return ec.unmarshalInputSceneMarkerUpdateInput(ctx, v) -} - -func (ec *executionContext) marshalNScenePathsType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScenePathsType(ctx context.Context, sel ast.SelectionSet, v ScenePathsType) graphql.Marshaler { - return ec._ScenePathsType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNScenePathsType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScenePathsType(ctx context.Context, sel ast.SelectionSet, v *ScenePathsType) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._ScenePathsType(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSceneUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneUpdateInput(ctx context.Context, v interface{}) (SceneUpdateInput, error) { - return ec.unmarshalInputSceneUpdateInput(ctx, v) -} - -func (ec *executionContext) marshalNStatsResultType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStatsResultType(ctx context.Context, sel ast.SelectionSet, v StatsResultType) graphql.Marshaler { - return ec._StatsResultType(ctx, sel, &v) -} - -func (ec *executionContext) marshalNStatsResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStatsResultType(ctx context.Context, sel ast.SelectionSet, v *StatsResultType) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._StatsResultType(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalString(v) -} - -func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - } - return res -} - -func (ec *executionContext) unmarshalNString2ᚕstring(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNString2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNString2string(ctx, sel, v[i]) - } - - return ret -} - -func (ec *executionContext) marshalNStudio2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx context.Context, sel ast.SelectionSet, v Studio) graphql.Marshaler { - return ec._Studio(ctx, sel, &v) -} - -func (ec *executionContext) marshalNStudio2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx context.Context, sel ast.SelectionSet, v []*Studio) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNStudio2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalNStudio2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx context.Context, sel ast.SelectionSet, v *Studio) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._Studio(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNStudioCreateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudioCreateInput(ctx context.Context, v interface{}) (StudioCreateInput, error) { - return ec.unmarshalInputStudioCreateInput(ctx, v) -} - -func (ec *executionContext) unmarshalNStudioDestroyInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudioDestroyInput(ctx context.Context, v interface{}) (StudioDestroyInput, error) { - return ec.unmarshalInputStudioDestroyInput(ctx, v) -} - -func (ec *executionContext) unmarshalNStudioUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudioUpdateInput(ctx context.Context, v interface{}) (StudioUpdateInput, error) { - return ec.unmarshalInputStudioUpdateInput(ctx, v) -} - -func (ec *executionContext) marshalNTag2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx context.Context, sel ast.SelectionSet, v Tag) graphql.Marshaler { - return ec._Tag(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTag2ᚕᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx context.Context, sel ast.SelectionSet, v []*Tag) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalNTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx context.Context, sel ast.SelectionSet, v *Tag) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec._Tag(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTagCreateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTagCreateInput(ctx context.Context, v interface{}) (TagCreateInput, error) { - return ec.unmarshalInputTagCreateInput(ctx, v) -} - -func (ec *executionContext) unmarshalNTagDestroyInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTagDestroyInput(ctx context.Context, v interface{}) (TagDestroyInput, error) { - return ec.unmarshalInputTagDestroyInput(ctx, v) -} - -func (ec *executionContext) unmarshalNTagUpdateInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTagUpdateInput(ctx context.Context, v interface{}) (TagUpdateInput, error) { - return ec.unmarshalInputTagUpdateInput(ctx, v) -} - -func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { - return ec.___Directive(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalString(v) -} - -func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - } - return res -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstring(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalN__DirectiveLocation2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { - return ec.___EnumValue(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { - return ec.___Field(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { - return ec.___InputValue(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { - return ec.___Type(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { - if v == nil { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - return ec.___Type(ctx, sel, v) -} - -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalString(v) -} - -func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !ec.HasError(graphql.GetResolverContext(ctx)) { - ec.Errorf(ctx, "must not be null") - } - } - return res -} - -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - return graphql.UnmarshalBoolean(v) -} - -func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - return graphql.MarshalBoolean(v) -} - -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOBoolean2bool(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.marshalOBoolean2bool(ctx, sel, *v) -} - -func (ec *executionContext) unmarshalOFindFilterType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindFilterType(ctx context.Context, v interface{}) (FindFilterType, error) { - return ec.unmarshalInputFindFilterType(ctx, v) -} - -func (ec *executionContext) unmarshalOFindFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindFilterType(ctx context.Context, v interface{}) (*FindFilterType, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOFindFilterType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐFindFilterType(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v interface{}) (float64, error) { - return graphql.UnmarshalFloat(v) -} - -func (ec *executionContext) marshalOFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { - return graphql.MarshalFloat(v) -} - -func (ec *executionContext) unmarshalOFloat2ᚖfloat64(ctx context.Context, v interface{}) (*float64, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOFloat2float64(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOFloat2ᚖfloat64(ctx context.Context, sel ast.SelectionSet, v *float64) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.marshalOFloat2float64(ctx, sel, *v) -} - -func (ec *executionContext) marshalOGallery2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx context.Context, sel ast.SelectionSet, v Gallery) graphql.Marshaler { - return ec._Gallery(ctx, sel, &v) -} - -func (ec *executionContext) marshalOGallery2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐGallery(ctx context.Context, sel ast.SelectionSet, v *Gallery) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Gallery(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOID2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalID(v) -} - -func (ec *executionContext) marshalOID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - return graphql.MarshalID(v) -} - -func (ec *executionContext) unmarshalOID2ᚕstring(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - res[i], err = ec.unmarshalNID2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOID2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNID2string(ctx, sel, v[i]) - } - - return ret -} - -func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOID2string(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.marshalOID2string(ctx, sel, *v) -} - -func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { - return graphql.UnmarshalInt(v) -} - -func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - return graphql.MarshalInt(v) -} - -func (ec *executionContext) unmarshalOInt2ᚕint(ctx context.Context, v interface{}) ([]int, error) { - var vSlice []interface{} - if v != nil { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } - } - var err error - res := make([]int, len(vSlice)) - for i := range vSlice { - res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOInt2ᚕint(ctx context.Context, sel ast.SelectionSet, v []int) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNInt2int(ctx, sel, v[i]) - } - - return ret -} - -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOInt2int(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.marshalOInt2int(ctx, sel, *v) -} - -func (ec *executionContext) unmarshalOIntCriterionInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐIntCriterionInput(ctx context.Context, v interface{}) (IntCriterionInput, error) { - return ec.unmarshalInputIntCriterionInput(ctx, v) -} - -func (ec *executionContext) unmarshalOIntCriterionInput2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐIntCriterionInput(ctx context.Context, v interface{}) (*IntCriterionInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOIntCriterionInput2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐIntCriterionInput(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOMarkerStringsResultType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐMarkerStringsResultType(ctx context.Context, sel ast.SelectionSet, v MarkerStringsResultType) graphql.Marshaler { - return ec._MarkerStringsResultType(ctx, sel, &v) -} - -func (ec *executionContext) marshalOMarkerStringsResultType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐMarkerStringsResultType(ctx context.Context, sel ast.SelectionSet, v *MarkerStringsResultType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._MarkerStringsResultType(ctx, sel, v) -} - -func (ec *executionContext) marshalOPerformer2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx context.Context, sel ast.SelectionSet, v Performer) graphql.Marshaler { - return ec._Performer(ctx, sel, &v) -} - -func (ec *executionContext) marshalOPerformer2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformer(ctx context.Context, sel ast.SelectionSet, v *Performer) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Performer(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOPerformerFilterType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerFilterType(ctx context.Context, v interface{}) (PerformerFilterType, error) { - return ec.unmarshalInputPerformerFilterType(ctx, v) -} - -func (ec *executionContext) unmarshalOPerformerFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerFilterType(ctx context.Context, v interface{}) (*PerformerFilterType, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOPerformerFilterType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐPerformerFilterType(ctx, v) - return &res, err -} - -func (ec *executionContext) unmarshalOResolutionEnum2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐResolutionEnum(ctx context.Context, v interface{}) (ResolutionEnum, error) { - var res ResolutionEnum - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalOResolutionEnum2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐResolutionEnum(ctx context.Context, sel ast.SelectionSet, v ResolutionEnum) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalOResolutionEnum2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐResolutionEnum(ctx context.Context, v interface{}) (*ResolutionEnum, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOResolutionEnum2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐResolutionEnum(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOResolutionEnum2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐResolutionEnum(ctx context.Context, sel ast.SelectionSet, v *ResolutionEnum) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) marshalOScene2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx context.Context, sel ast.SelectionSet, v Scene) graphql.Marshaler { - return ec._Scene(ctx, sel, &v) -} - -func (ec *executionContext) marshalOScene2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScene(ctx context.Context, sel ast.SelectionSet, v *Scene) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Scene(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOSceneFilterType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneFilterType(ctx context.Context, v interface{}) (SceneFilterType, error) { - return ec.unmarshalInputSceneFilterType(ctx, v) -} - -func (ec *executionContext) unmarshalOSceneFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneFilterType(ctx context.Context, v interface{}) (*SceneFilterType, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOSceneFilterType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneFilterType(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOSceneMarker2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx context.Context, sel ast.SelectionSet, v SceneMarker) graphql.Marshaler { - return ec._SceneMarker(ctx, sel, &v) -} - -func (ec *executionContext) marshalOSceneMarker2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarker(ctx context.Context, sel ast.SelectionSet, v *SceneMarker) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SceneMarker(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOSceneMarkerFilterType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerFilterType(ctx context.Context, v interface{}) (SceneMarkerFilterType, error) { - return ec.unmarshalInputSceneMarkerFilterType(ctx, v) -} - -func (ec *executionContext) unmarshalOSceneMarkerFilterType2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerFilterType(ctx context.Context, v interface{}) (*SceneMarkerFilterType, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOSceneMarkerFilterType2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSceneMarkerFilterType(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOScrapedPerformer2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScrapedPerformer(ctx context.Context, sel ast.SelectionSet, v ScrapedPerformer) graphql.Marshaler { - return ec._ScrapedPerformer(ctx, sel, &v) -} - -func (ec *executionContext) marshalOScrapedPerformer2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐScrapedPerformer(ctx context.Context, sel ast.SelectionSet, v *ScrapedPerformer) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ScrapedPerformer(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOSortDirectionEnum2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSortDirectionEnum(ctx context.Context, v interface{}) (SortDirectionEnum, error) { - var res SortDirectionEnum - return res, res.UnmarshalGQL(v) -} - -func (ec *executionContext) marshalOSortDirectionEnum2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSortDirectionEnum(ctx context.Context, sel ast.SelectionSet, v SortDirectionEnum) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalOSortDirectionEnum2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSortDirectionEnum(ctx context.Context, v interface{}) (*SortDirectionEnum, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOSortDirectionEnum2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSortDirectionEnum(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOSortDirectionEnum2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐSortDirectionEnum(ctx context.Context, sel ast.SelectionSet, v *SortDirectionEnum) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { - return graphql.UnmarshalString(v) -} - -func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - return graphql.MarshalString(v) -} - -func (ec *executionContext) unmarshalOString2ᚕstring(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - if tmp1, ok := v.([]interface{}); ok { - vSlice = tmp1 - } else { - vSlice = []interface{}{v} - } - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOString2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNString2string(ctx, sel, v[i]) - } - - return ret -} - -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalOString2string(ctx, v) - return &res, err -} - -func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.marshalOString2string(ctx, sel, *v) -} - -func (ec *executionContext) marshalOStudio2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx context.Context, sel ast.SelectionSet, v Studio) graphql.Marshaler { - return ec._Studio(ctx, sel, &v) -} - -func (ec *executionContext) marshalOStudio2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐStudio(ctx context.Context, sel ast.SelectionSet, v *Studio) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Studio(ctx, sel, v) -} - -func (ec *executionContext) marshalOTag2githubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx context.Context, sel ast.SelectionSet, v Tag) graphql.Marshaler { - return ec._Tag(ctx, sel, &v) -} - -func (ec *executionContext) marshalOTag2ᚖgithubᚗcomᚋstashappᚋstashᚋpkgᚋmodelsᚐTag(ctx context.Context, sel ast.SelectionSet, v *Tag) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Tag(ctx, sel, v) -} - -func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v introspection.Schema) graphql.Marshaler { - return ec.___Schema(ctx, sel, &v) -} - -func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.___Schema(ctx, sel, v) -} - -func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { - return ec.___Type(ctx, sel, &v) -} - -func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - rctx := &graphql.ResolverContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithResolverContext(ctx, rctx) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - return ret -} - -func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.___Type(ctx, sel, v) -} - -// endregion ***************************** type.gotpl ***************************** diff --git a/pkg/models/generated_models.go b/pkg/models/generated_models.go deleted file mode 100644 index 129b1cd5a..000000000 --- a/pkg/models/generated_models.go +++ /dev/null @@ -1,453 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package models - -import ( - "fmt" - "io" - "strconv" -) - -type ConfigGeneralInput struct { - // Array of file paths to content - Stashes []string `json:"stashes"` - // Path to the SQLite database - DatabasePath *string `json:"databasePath"` - // Path to generated files - GeneratedPath *string `json:"generatedPath"` -} - -type ConfigGeneralResult struct { - // Array of file paths to content - Stashes []string `json:"stashes"` - // Path to the SQLite database - DatabasePath string `json:"databasePath"` - // Path to generated files - GeneratedPath string `json:"generatedPath"` -} - -type ConfigInterfaceInput struct { - // Custom CSS - CSS *string `json:"css"` - CSSEnabled *bool `json:"cssEnabled"` -} - -type ConfigInterfaceResult struct { - // Custom CSS - CSS *string `json:"css"` - CSSEnabled *bool `json:"cssEnabled"` -} - -// All configuration settings -type ConfigResult struct { - General *ConfigGeneralResult `json:"general"` - Interface *ConfigInterfaceResult `json:"interface"` -} - -type FindFilterType struct { - Q *string `json:"q"` - Page *int `json:"page"` - PerPage *int `json:"per_page"` - Sort *string `json:"sort"` - Direction *SortDirectionEnum `json:"direction"` -} - -type FindGalleriesResultType struct { - Count int `json:"count"` - Galleries []*Gallery `json:"galleries"` -} - -type FindPerformersResultType struct { - Count int `json:"count"` - Performers []*Performer `json:"performers"` -} - -type FindSceneMarkersResultType struct { - Count int `json:"count"` - SceneMarkers []*SceneMarker `json:"scene_markers"` -} - -type FindScenesResultType struct { - Count int `json:"count"` - Scenes []*Scene `json:"scenes"` -} - -type FindStudiosResultType struct { - Count int `json:"count"` - Studios []*Studio `json:"studios"` -} - -type GalleryFilesType struct { - Index int `json:"index"` - Name *string `json:"name"` - Path *string `json:"path"` -} - -type GenerateMetadataInput struct { - Sprites bool `json:"sprites"` - Previews bool `json:"previews"` - Markers bool `json:"markers"` - Transcodes bool `json:"transcodes"` -} - -type IntCriterionInput struct { - Value int `json:"value"` - Modifier CriterionModifier `json:"modifier"` -} - -type MarkerStringsResultType struct { - Count int `json:"count"` - ID string `json:"id"` - Title string `json:"title"` -} - -type PerformerCreateInput struct { - Name *string `json:"name"` - URL *string `json:"url"` - Birthdate *string `json:"birthdate"` - Ethnicity *string `json:"ethnicity"` - Country *string `json:"country"` - EyeColor *string `json:"eye_color"` - Height *string `json:"height"` - Measurements *string `json:"measurements"` - FakeTits *string `json:"fake_tits"` - CareerLength *string `json:"career_length"` - Tattoos *string `json:"tattoos"` - Piercings *string `json:"piercings"` - Aliases *string `json:"aliases"` - Twitter *string `json:"twitter"` - Instagram *string `json:"instagram"` - Favorite *bool `json:"favorite"` - // This should be base64 encoded - Image string `json:"image"` -} - -type PerformerDestroyInput struct { - ID string `json:"id"` -} - -type PerformerFilterType struct { - // Filter by favorite - FilterFavorites *bool `json:"filter_favorites"` -} - -type PerformerUpdateInput struct { - ID string `json:"id"` - Name *string `json:"name"` - URL *string `json:"url"` - Birthdate *string `json:"birthdate"` - Ethnicity *string `json:"ethnicity"` - Country *string `json:"country"` - EyeColor *string `json:"eye_color"` - Height *string `json:"height"` - Measurements *string `json:"measurements"` - FakeTits *string `json:"fake_tits"` - CareerLength *string `json:"career_length"` - Tattoos *string `json:"tattoos"` - Piercings *string `json:"piercings"` - Aliases *string `json:"aliases"` - Twitter *string `json:"twitter"` - Instagram *string `json:"instagram"` - Favorite *bool `json:"favorite"` - // This should be base64 encoded - Image *string `json:"image"` -} - -type ScanMetadataInput struct { - NameFromMetadata bool `json:"nameFromMetadata"` -} - -type SceneFileType struct { - Size *string `json:"size"` - Duration *float64 `json:"duration"` - VideoCodec *string `json:"video_codec"` - AudioCodec *string `json:"audio_codec"` - Width *int `json:"width"` - Height *int `json:"height"` - Framerate *float64 `json:"framerate"` - Bitrate *int `json:"bitrate"` -} - -type SceneFilterType struct { - // Filter by rating - Rating *IntCriterionInput `json:"rating"` - // Filter by resolution - Resolution *ResolutionEnum `json:"resolution"` - // Filter to only include scenes which have markers. `true` or `false` - HasMarkers *string `json:"has_markers"` - // Filter to only include scenes missing this property - IsMissing *string `json:"is_missing"` - // Filter to only include scenes with this studio - StudioID *string `json:"studio_id"` - // Filter to only include scenes with these tags - Tags []string `json:"tags"` - // Filter to only include scenes with this performer - PerformerID *string `json:"performer_id"` -} - -type SceneMarkerCreateInput struct { - Title string `json:"title"` - Seconds float64 `json:"seconds"` - SceneID string `json:"scene_id"` - PrimaryTagID string `json:"primary_tag_id"` - TagIds []string `json:"tag_ids"` -} - -type SceneMarkerFilterType struct { - // Filter to only include scene markers with this tag - TagID *string `json:"tag_id"` - // Filter to only include scene markers with these tags - Tags []string `json:"tags"` - // Filter to only include scene markers attached to a scene with these tags - SceneTags []string `json:"scene_tags"` - // Filter to only include scene markers with these performers - Performers []string `json:"performers"` -} - -type SceneMarkerTag struct { - Tag *Tag `json:"tag"` - SceneMarkers []*SceneMarker `json:"scene_markers"` -} - -type SceneMarkerUpdateInput struct { - ID string `json:"id"` - Title string `json:"title"` - Seconds float64 `json:"seconds"` - SceneID string `json:"scene_id"` - PrimaryTagID string `json:"primary_tag_id"` - TagIds []string `json:"tag_ids"` -} - -type ScenePathsType struct { - Screenshot *string `json:"screenshot"` - Preview *string `json:"preview"` - Stream *string `json:"stream"` - Webp *string `json:"webp"` - Vtt *string `json:"vtt"` - ChaptersVtt *string `json:"chapters_vtt"` -} - -type SceneUpdateInput struct { - ClientMutationID *string `json:"clientMutationId"` - ID string `json:"id"` - Title *string `json:"title"` - Details *string `json:"details"` - URL *string `json:"url"` - Date *string `json:"date"` - Rating *int `json:"rating"` - StudioID *string `json:"studio_id"` - GalleryID *string `json:"gallery_id"` - PerformerIds []string `json:"performer_ids"` - TagIds []string `json:"tag_ids"` -} - -// A performer from a scraping operation... -type ScrapedPerformer struct { - Name *string `json:"name"` - URL *string `json:"url"` - Twitter *string `json:"twitter"` - Instagram *string `json:"instagram"` - Birthdate *string `json:"birthdate"` - Ethnicity *string `json:"ethnicity"` - Country *string `json:"country"` - EyeColor *string `json:"eye_color"` - Height *string `json:"height"` - Measurements *string `json:"measurements"` - FakeTits *string `json:"fake_tits"` - CareerLength *string `json:"career_length"` - Tattoos *string `json:"tattoos"` - Piercings *string `json:"piercings"` - Aliases *string `json:"aliases"` -} - -type StatsResultType struct { - SceneCount int `json:"scene_count"` - GalleryCount int `json:"gallery_count"` - PerformerCount int `json:"performer_count"` - StudioCount int `json:"studio_count"` - TagCount int `json:"tag_count"` -} - -type StudioCreateInput struct { - Name string `json:"name"` - URL *string `json:"url"` - // This should be base64 encoded - Image string `json:"image"` -} - -type StudioDestroyInput struct { - ID string `json:"id"` -} - -type StudioUpdateInput struct { - ID string `json:"id"` - Name *string `json:"name"` - URL *string `json:"url"` - // This should be base64 encoded - Image *string `json:"image"` -} - -type TagCreateInput struct { - Name string `json:"name"` -} - -type TagDestroyInput struct { - ID string `json:"id"` -} - -type TagUpdateInput struct { - ID string `json:"id"` - Name string `json:"name"` -} - -type CriterionModifier string - -const ( - // = - CriterionModifierEquals CriterionModifier = "EQUALS" - // != - CriterionModifierNotEquals CriterionModifier = "NOT_EQUALS" - // > - CriterionModifierGreaterThan CriterionModifier = "GREATER_THAN" - // < - CriterionModifierLessThan CriterionModifier = "LESS_THAN" - // IS NULL - CriterionModifierIsNull CriterionModifier = "IS_NULL" - // IS NOT NULL - CriterionModifierNotNull CriterionModifier = "NOT_NULL" - CriterionModifierIncludes CriterionModifier = "INCLUDES" - CriterionModifierExcludes CriterionModifier = "EXCLUDES" -) - -var AllCriterionModifier = []CriterionModifier{ - CriterionModifierEquals, - CriterionModifierNotEquals, - CriterionModifierGreaterThan, - CriterionModifierLessThan, - CriterionModifierIsNull, - CriterionModifierNotNull, - CriterionModifierIncludes, - CriterionModifierExcludes, -} - -func (e CriterionModifier) IsValid() bool { - switch e { - case CriterionModifierEquals, CriterionModifierNotEquals, CriterionModifierGreaterThan, CriterionModifierLessThan, CriterionModifierIsNull, CriterionModifierNotNull, CriterionModifierIncludes, CriterionModifierExcludes: - return true - } - return false -} - -func (e CriterionModifier) String() string { - return string(e) -} - -func (e *CriterionModifier) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = CriterionModifier(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid CriterionModifier", str) - } - return nil -} - -func (e CriterionModifier) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ResolutionEnum string - -const ( - // 240p - ResolutionEnumLow ResolutionEnum = "LOW" - // 480p - ResolutionEnumStandard ResolutionEnum = "STANDARD" - // 720p - ResolutionEnumStandardHd ResolutionEnum = "STANDARD_HD" - // 1080p - ResolutionEnumFullHd ResolutionEnum = "FULL_HD" - // 4k - ResolutionEnumFourK ResolutionEnum = "FOUR_K" -) - -var AllResolutionEnum = []ResolutionEnum{ - ResolutionEnumLow, - ResolutionEnumStandard, - ResolutionEnumStandardHd, - ResolutionEnumFullHd, - ResolutionEnumFourK, -} - -func (e ResolutionEnum) IsValid() bool { - switch e { - case ResolutionEnumLow, ResolutionEnumStandard, ResolutionEnumStandardHd, ResolutionEnumFullHd, ResolutionEnumFourK: - return true - } - return false -} - -func (e ResolutionEnum) String() string { - return string(e) -} - -func (e *ResolutionEnum) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ResolutionEnum(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ResolutionEnum", str) - } - return nil -} - -func (e ResolutionEnum) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type SortDirectionEnum string - -const ( - SortDirectionEnumAsc SortDirectionEnum = "ASC" - SortDirectionEnumDesc SortDirectionEnum = "DESC" -) - -var AllSortDirectionEnum = []SortDirectionEnum{ - SortDirectionEnumAsc, - SortDirectionEnumDesc, -} - -func (e SortDirectionEnum) IsValid() bool { - switch e { - case SortDirectionEnumAsc, SortDirectionEnumDesc: - return true - } - return false -} - -func (e SortDirectionEnum) String() string { - return string(e) -} - -func (e *SortDirectionEnum) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = SortDirectionEnum(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid SortDirectionEnum", str) - } - return nil -} - -func (e SortDirectionEnum) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} diff --git a/ui/v2/src/core/generated-graphql.tsx b/ui/v2/src/core/generated-graphql.tsx deleted file mode 100644 index d7396b2c6..000000000 --- a/ui/v2/src/core/generated-graphql.tsx +++ /dev/null @@ -1,2524 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -// Generated in 2019-10-12T18:20:41+11:00 -export type Maybe = T | undefined; - -export interface SceneFilterType { - /** Filter by rating */ - rating?: Maybe; - /** Filter by resolution */ - resolution?: Maybe; - /** Filter to only include scenes which have markers. `true` or `false` */ - has_markers?: Maybe; - /** Filter to only include scenes missing this property */ - is_missing?: Maybe; - /** Filter to only include scenes with this studio */ - studio_id?: Maybe; - /** Filter to only include scenes with these tags */ - tags?: Maybe; - /** Filter to only include scenes with this performer */ - performer_id?: Maybe; -} - -export interface IntCriterionInput { - value: number; - - modifier: CriterionModifier; -} - -export interface FindFilterType { - q?: Maybe; - - page?: Maybe; - - per_page?: Maybe; - - sort?: Maybe; - - direction?: Maybe; -} - -export interface SceneMarkerFilterType { - /** Filter to only include scene markers with this tag */ - tag_id?: Maybe; - /** Filter to only include scene markers with these tags */ - tags?: Maybe; - /** Filter to only include scene markers attached to a scene with these tags */ - scene_tags?: Maybe; - /** Filter to only include scene markers with these performers */ - performers?: Maybe; -} - -export interface PerformerFilterType { - /** Filter by favorite */ - filter_favorites?: Maybe; -} - -export interface ScanMetadataInput { - nameFromMetadata: boolean; -} - -export interface GenerateMetadataInput { - sprites: boolean; - - previews: boolean; - - markers: boolean; - - transcodes: boolean; -} - -export interface SceneUpdateInput { - clientMutationId?: Maybe; - - id: string; - - title?: Maybe; - - details?: Maybe; - - url?: Maybe; - - date?: Maybe; - - rating?: Maybe; - - studio_id?: Maybe; - - gallery_id?: Maybe; - - performer_ids?: Maybe; - - tag_ids?: Maybe; -} - -export interface SceneMarkerCreateInput { - title: string; - - seconds: number; - - scene_id: string; - - primary_tag_id: string; - - tag_ids?: Maybe; -} - -export interface SceneMarkerUpdateInput { - id: string; - - title: string; - - seconds: number; - - scene_id: string; - - primary_tag_id: string; - - tag_ids?: Maybe; -} - -export interface PerformerCreateInput { - name?: Maybe; - - url?: Maybe; - - birthdate?: Maybe; - - ethnicity?: Maybe; - - country?: Maybe; - - eye_color?: Maybe; - - height?: Maybe; - - measurements?: Maybe; - - fake_tits?: Maybe; - - career_length?: Maybe; - - tattoos?: Maybe; - - piercings?: Maybe; - - aliases?: Maybe; - - twitter?: Maybe; - - instagram?: Maybe; - - favorite?: Maybe; - /** This should be base64 encoded */ - image: string; -} - -export interface PerformerUpdateInput { - id: string; - - name?: Maybe; - - url?: Maybe; - - birthdate?: Maybe; - - ethnicity?: Maybe; - - country?: Maybe; - - eye_color?: Maybe; - - height?: Maybe; - - measurements?: Maybe; - - fake_tits?: Maybe; - - career_length?: Maybe; - - tattoos?: Maybe; - - piercings?: Maybe; - - aliases?: Maybe; - - twitter?: Maybe; - - instagram?: Maybe; - - favorite?: Maybe; - /** This should be base64 encoded */ - image?: Maybe; -} - -export interface PerformerDestroyInput { - id: string; -} - -export interface StudioCreateInput { - name: string; - - url?: Maybe; - /** This should be base64 encoded */ - image: string; -} - -export interface StudioUpdateInput { - id: string; - - name?: Maybe; - - url?: Maybe; - /** This should be base64 encoded */ - image?: Maybe; -} - -export interface StudioDestroyInput { - id: string; -} - -export interface TagCreateInput { - name: string; -} - -export interface TagUpdateInput { - id: string; - - name: string; -} - -export interface TagDestroyInput { - id: string; -} - -export interface ConfigGeneralInput { - /** Array of file paths to content */ - stashes?: Maybe; - /** Path to the SQLite database */ - databasePath?: Maybe; - /** Path to generated files */ - generatedPath?: Maybe; -} - -export interface ConfigInterfaceInput { - /** Custom CSS */ - css?: Maybe; - - cssEnabled?: Maybe; -} - -export enum CriterionModifier { - Equals = "EQUALS", - NotEquals = "NOT_EQUALS", - GreaterThan = "GREATER_THAN", - LessThan = "LESS_THAN", - IsNull = "IS_NULL", - NotNull = "NOT_NULL", - Includes = "INCLUDES", - Excludes = "EXCLUDES" -} - -export enum ResolutionEnum { - Low = "LOW", - Standard = "STANDARD", - StandardHd = "STANDARD_HD", - FullHd = "FULL_HD", - FourK = "FOUR_K" -} - -export enum SortDirectionEnum { - Asc = "ASC", - Desc = "DESC" -} - -// ==================================================== -// Documents -// ==================================================== - -export type ConfigureGeneralVariables = { - input: ConfigGeneralInput; -}; - -export type ConfigureGeneralMutation = { - __typename?: "Mutation"; - - configureGeneral: ConfigureGeneralConfigureGeneral; -}; - -export type ConfigureGeneralConfigureGeneral = ConfigGeneralDataFragment; - -export type ConfigureInterfaceVariables = { - input: ConfigInterfaceInput; -}; - -export type ConfigureInterfaceMutation = { - __typename?: "Mutation"; - - configureInterface: ConfigureInterfaceConfigureInterface; -}; - -export type ConfigureInterfaceConfigureInterface = ConfigInterfaceDataFragment; - -export type PerformerCreateVariables = { - name?: Maybe; - url?: Maybe; - birthdate?: Maybe; - ethnicity?: Maybe; - country?: Maybe; - eye_color?: Maybe; - height?: Maybe; - measurements?: Maybe; - fake_tits?: Maybe; - career_length?: Maybe; - tattoos?: Maybe; - piercings?: Maybe; - aliases?: Maybe; - twitter?: Maybe; - instagram?: Maybe; - favorite?: Maybe; - image: string; -}; - -export type PerformerCreateMutation = { - __typename?: "Mutation"; - - performerCreate: Maybe; -}; - -export type PerformerCreatePerformerCreate = PerformerDataFragment; - -export type PerformerUpdateVariables = { - id: string; - name?: Maybe; - url?: Maybe; - birthdate?: Maybe; - ethnicity?: Maybe; - country?: Maybe; - eye_color?: Maybe; - height?: Maybe; - measurements?: Maybe; - fake_tits?: Maybe; - career_length?: Maybe; - tattoos?: Maybe; - piercings?: Maybe; - aliases?: Maybe; - twitter?: Maybe; - instagram?: Maybe; - favorite?: Maybe; - image?: Maybe; -}; - -export type PerformerUpdateMutation = { - __typename?: "Mutation"; - - performerUpdate: Maybe; -}; - -export type PerformerUpdatePerformerUpdate = PerformerDataFragment; - -export type PerformerDestroyVariables = { - id: string; -}; - -export type PerformerDestroyMutation = { - __typename?: "Mutation"; - - performerDestroy: boolean; -}; - -export type SceneMarkerCreateVariables = { - title: string; - seconds: number; - scene_id: string; - primary_tag_id: string; - tag_ids?: Maybe; -}; - -export type SceneMarkerCreateMutation = { - __typename?: "Mutation"; - - sceneMarkerCreate: Maybe; -}; - -export type SceneMarkerCreateSceneMarkerCreate = SceneMarkerDataFragment; - -export type SceneMarkerUpdateVariables = { - id: string; - title: string; - seconds: number; - scene_id: string; - primary_tag_id: string; - tag_ids?: Maybe; -}; - -export type SceneMarkerUpdateMutation = { - __typename?: "Mutation"; - - sceneMarkerUpdate: Maybe; -}; - -export type SceneMarkerUpdateSceneMarkerUpdate = SceneMarkerDataFragment; - -export type SceneMarkerDestroyVariables = { - id: string; -}; - -export type SceneMarkerDestroyMutation = { - __typename?: "Mutation"; - - sceneMarkerDestroy: boolean; -}; - -export type SceneUpdateVariables = { - id: string; - title?: Maybe; - details?: Maybe; - url?: Maybe; - date?: Maybe; - rating?: Maybe; - studio_id?: Maybe; - gallery_id?: Maybe; - performer_ids?: Maybe; - tag_ids?: Maybe; -}; - -export type SceneUpdateMutation = { - __typename?: "Mutation"; - - sceneUpdate: Maybe; -}; - -export type SceneUpdateSceneUpdate = SceneDataFragment; - -export type StudioCreateVariables = { - name: string; - url?: Maybe; - image: string; -}; - -export type StudioCreateMutation = { - __typename?: "Mutation"; - - studioCreate: Maybe; -}; - -export type StudioCreateStudioCreate = StudioDataFragment; - -export type StudioUpdateVariables = { - id: string; - name?: Maybe; - url?: Maybe; - image?: Maybe; -}; - -export type StudioUpdateMutation = { - __typename?: "Mutation"; - - studioUpdate: Maybe; -}; - -export type StudioUpdateStudioUpdate = StudioDataFragment; - -export type StudioDestroyVariables = { - id: string; -}; - -export type StudioDestroyMutation = { - __typename?: "Mutation"; - - studioDestroy: boolean; -}; - -export type TagCreateVariables = { - name: string; -}; - -export type TagCreateMutation = { - __typename?: "Mutation"; - - tagCreate: Maybe; -}; - -export type TagCreateTagCreate = TagDataFragment; - -export type TagDestroyVariables = { - id: string; -}; - -export type TagDestroyMutation = { - __typename?: "Mutation"; - - tagDestroy: boolean; -}; - -export type TagUpdateVariables = { - id: string; - name: string; -}; - -export type TagUpdateMutation = { - __typename?: "Mutation"; - - tagUpdate: Maybe; -}; - -export type TagUpdateTagUpdate = TagDataFragment; - -export type FindGalleriesVariables = { - filter?: Maybe; -}; - -export type FindGalleriesQuery = { - __typename?: "Query"; - - findGalleries: FindGalleriesFindGalleries; -}; - -export type FindGalleriesFindGalleries = { - __typename?: "FindGalleriesResultType"; - - count: number; - - galleries: FindGalleriesGalleries[]; -}; - -export type FindGalleriesGalleries = GalleryDataFragment; - -export type FindGalleryVariables = { - id: string; -}; - -export type FindGalleryQuery = { - __typename?: "Query"; - - findGallery: Maybe; -}; - -export type FindGalleryFindGallery = GalleryDataFragment; - -export type SceneWallVariables = { - q?: Maybe; -}; - -export type SceneWallQuery = { - __typename?: "Query"; - - sceneWall: SceneWallSceneWall[]; -}; - -export type SceneWallSceneWall = SceneDataFragment; - -export type MarkerWallVariables = { - q?: Maybe; -}; - -export type MarkerWallQuery = { - __typename?: "Query"; - - markerWall: MarkerWallMarkerWall[]; -}; - -export type MarkerWallMarkerWall = SceneMarkerDataFragment; - -export type FindTagVariables = { - id: string; -}; - -export type FindTagQuery = { - __typename?: "Query"; - - findTag: Maybe; -}; - -export type FindTagFindTag = TagDataFragment; - -export type MarkerStringsVariables = { - q?: Maybe; - sort?: Maybe; -}; - -export type MarkerStringsQuery = { - __typename?: "Query"; - - markerStrings: (Maybe)[]; -}; - -export type MarkerStringsMarkerStrings = { - __typename?: "MarkerStringsResultType"; - - id: string; - - count: number; - - title: string; -}; - -export type AllTagsVariables = {}; - -export type AllTagsQuery = { - __typename?: "Query"; - - allTags: AllTagsAllTags[]; -}; - -export type AllTagsAllTags = TagDataFragment; - -export type AllPerformersForFilterVariables = {}; - -export type AllPerformersForFilterQuery = { - __typename?: "Query"; - - allPerformers: AllPerformersForFilterAllPerformers[]; -}; - -export type AllPerformersForFilterAllPerformers = SlimPerformerDataFragment; - -export type AllStudiosForFilterVariables = {}; - -export type AllStudiosForFilterQuery = { - __typename?: "Query"; - - allStudios: AllStudiosForFilterAllStudios[]; -}; - -export type AllStudiosForFilterAllStudios = SlimStudioDataFragment; - -export type AllTagsForFilterVariables = {}; - -export type AllTagsForFilterQuery = { - __typename?: "Query"; - - allTags: AllTagsForFilterAllTags[]; -}; - -export type AllTagsForFilterAllTags = { - __typename?: "Tag"; - - id: string; - - name: string; -}; - -export type ValidGalleriesForSceneVariables = { - scene_id: string; -}; - -export type ValidGalleriesForSceneQuery = { - __typename?: "Query"; - - validGalleriesForScene: ValidGalleriesForSceneValidGalleriesForScene[]; -}; - -export type ValidGalleriesForSceneValidGalleriesForScene = { - __typename?: "Gallery"; - - id: string; - - path: string; -}; - -export type StatsVariables = {}; - -export type StatsQuery = { - __typename?: "Query"; - - stats: StatsStats; -}; - -export type StatsStats = { - __typename?: "StatsResultType"; - - scene_count: number; - - gallery_count: number; - - performer_count: number; - - studio_count: number; - - tag_count: number; -}; - -export type FindPerformersVariables = { - filter?: Maybe; - performer_filter?: Maybe; -}; - -export type FindPerformersQuery = { - __typename?: "Query"; - - findPerformers: FindPerformersFindPerformers; -}; - -export type FindPerformersFindPerformers = { - __typename?: "FindPerformersResultType"; - - count: number; - - performers: FindPerformersPerformers[]; -}; - -export type FindPerformersPerformers = PerformerDataFragment; - -export type FindPerformerVariables = { - id: string; -}; - -export type FindPerformerQuery = { - __typename?: "Query"; - - findPerformer: Maybe; -}; - -export type FindPerformerFindPerformer = PerformerDataFragment; - -export type FindSceneMarkersVariables = { - filter?: Maybe; - scene_marker_filter?: Maybe; -}; - -export type FindSceneMarkersQuery = { - __typename?: "Query"; - - findSceneMarkers: FindSceneMarkersFindSceneMarkers; -}; - -export type FindSceneMarkersFindSceneMarkers = { - __typename?: "FindSceneMarkersResultType"; - - count: number; - - scene_markers: FindSceneMarkersSceneMarkers[]; -}; - -export type FindSceneMarkersSceneMarkers = SceneMarkerDataFragment; - -export type FindScenesVariables = { - filter?: Maybe; - scene_filter?: Maybe; - scene_ids?: Maybe; -}; - -export type FindScenesQuery = { - __typename?: "Query"; - - findScenes: FindScenesFindScenes; -}; - -export type FindScenesFindScenes = { - __typename?: "FindScenesResultType"; - - count: number; - - scenes: FindScenesScenes[]; -}; - -export type FindScenesScenes = SlimSceneDataFragment; - -export type FindSceneVariables = { - id: string; - checksum?: Maybe; -}; - -export type FindSceneQuery = { - __typename?: "Query"; - - findScene: Maybe; - - sceneMarkerTags: FindSceneSceneMarkerTags[]; -}; - -export type FindSceneFindScene = SceneDataFragment; - -export type FindSceneSceneMarkerTags = { - __typename?: "SceneMarkerTag"; - - tag: FindSceneTag; - - scene_markers: FindSceneSceneMarkers[]; -}; - -export type FindSceneTag = { - __typename?: "Tag"; - - id: string; - - name: string; -}; - -export type FindSceneSceneMarkers = SceneMarkerDataFragment; - -export type ScrapeFreeonesVariables = { - performer_name: string; -}; - -export type ScrapeFreeonesQuery = { - __typename?: "Query"; - - scrapeFreeones: Maybe; -}; - -export type ScrapeFreeonesScrapeFreeones = { - __typename?: "ScrapedPerformer"; - - name: Maybe; - - url: Maybe; - - twitter: Maybe; - - instagram: Maybe; - - birthdate: Maybe; - - ethnicity: Maybe; - - country: Maybe; - - eye_color: Maybe; - - height: Maybe; - - measurements: Maybe; - - fake_tits: Maybe; - - career_length: Maybe; - - tattoos: Maybe; - - piercings: Maybe; - - aliases: Maybe; -}; - -export type ScrapeFreeonesPerformersVariables = { - q: string; -}; - -export type ScrapeFreeonesPerformersQuery = { - __typename?: "Query"; - - scrapeFreeonesPerformerList: string[]; -}; - -export type ConfigurationVariables = {}; - -export type ConfigurationQuery = { - __typename?: "Query"; - - configuration: ConfigurationConfiguration; -}; - -export type ConfigurationConfiguration = ConfigDataFragment; - -export type DirectoriesVariables = { - path?: Maybe; -}; - -export type DirectoriesQuery = { - __typename?: "Query"; - - directories: string[]; -}; - -export type MetadataImportVariables = {}; - -export type MetadataImportQuery = { - __typename?: "Query"; - - metadataImport: string; -}; - -export type MetadataExportVariables = {}; - -export type MetadataExportQuery = { - __typename?: "Query"; - - metadataExport: string; -}; - -export type MetadataScanVariables = { - input: ScanMetadataInput; -}; - -export type MetadataScanQuery = { - __typename?: "Query"; - - metadataScan: string; -}; - -export type MetadataGenerateVariables = { - input: GenerateMetadataInput; -}; - -export type MetadataGenerateQuery = { - __typename?: "Query"; - - metadataGenerate: string; -}; - -export type MetadataCleanVariables = {}; - -export type MetadataCleanQuery = { - __typename?: "Query"; - - metadataClean: string; -}; - -export type FindStudiosVariables = { - filter?: Maybe; -}; - -export type FindStudiosQuery = { - __typename?: "Query"; - - findStudios: FindStudiosFindStudios; -}; - -export type FindStudiosFindStudios = { - __typename?: "FindStudiosResultType"; - - count: number; - - studios: FindStudiosStudios[]; -}; - -export type FindStudiosStudios = StudioDataFragment; - -export type FindStudioVariables = { - id: string; -}; - -export type FindStudioQuery = { - __typename?: "Query"; - - findStudio: Maybe; -}; - -export type FindStudioFindStudio = StudioDataFragment; - -export type MetadataUpdateVariables = {}; - -export type MetadataUpdateSubscription = { - __typename?: "Subscription"; - - metadataUpdate: string; -}; - -export type ConfigGeneralDataFragment = { - __typename?: "ConfigGeneralResult"; - - stashes: string[]; - - databasePath: string; - - generatedPath: string; -}; - -export type ConfigInterfaceDataFragment = { - __typename?: "ConfigInterfaceResult"; - - css: Maybe; - - cssEnabled: Maybe; -}; - -export type ConfigDataFragment = { - __typename?: "ConfigResult"; - - general: ConfigDataGeneral; - - interface: ConfigDataInterface; -}; - -export type ConfigDataGeneral = ConfigGeneralDataFragment; - -export type ConfigDataInterface = ConfigInterfaceDataFragment; - -export type GalleryDataFragment = { - __typename?: "Gallery"; - - id: string; - - checksum: string; - - path: string; - - title: Maybe; - - files: GalleryDataFiles[]; -}; - -export type GalleryDataFiles = { - __typename?: "GalleryFilesType"; - - index: number; - - name: Maybe; - - path: Maybe; -}; - -export type SlimPerformerDataFragment = { - __typename?: "Performer"; - - id: string; - - name: Maybe; - - image_path: Maybe; -}; - -export type PerformerDataFragment = { - __typename?: "Performer"; - - id: string; - - checksum: string; - - name: Maybe; - - url: Maybe; - - twitter: Maybe; - - instagram: Maybe; - - birthdate: Maybe; - - ethnicity: Maybe; - - country: Maybe; - - eye_color: Maybe; - - height: Maybe; - - measurements: Maybe; - - fake_tits: Maybe; - - career_length: Maybe; - - tattoos: Maybe; - - piercings: Maybe; - - aliases: Maybe; - - favorite: boolean; - - image_path: Maybe; - - scene_count: Maybe; -}; - -export type SceneMarkerDataFragment = { - __typename?: "SceneMarker"; - - id: string; - - title: string; - - seconds: number; - - stream: string; - - preview: string; - - scene: SceneMarkerDataScene; - - primary_tag: SceneMarkerDataPrimaryTag; - - tags: SceneMarkerDataTags[]; -}; - -export type SceneMarkerDataScene = { - __typename?: "Scene"; - - id: string; -}; - -export type SceneMarkerDataPrimaryTag = { - __typename?: "Tag"; - - id: string; - - name: string; -}; - -export type SceneMarkerDataTags = { - __typename?: "Tag"; - - id: string; - - name: string; -}; - -export type SlimSceneDataFragment = { - __typename?: "Scene"; - - id: string; - - checksum: string; - - title: Maybe; - - details: Maybe; - - url: Maybe; - - date: Maybe; - - rating: Maybe; - - path: string; - - file: SlimSceneDataFile; - - paths: SlimSceneDataPaths; - - scene_markers: SlimSceneDataSceneMarkers[]; - - gallery: Maybe; - - studio: Maybe; - - tags: SlimSceneDataTags[]; - - performers: SlimSceneDataPerformers[]; -}; - -export type SlimSceneDataFile = { - __typename?: "SceneFileType"; - - size: Maybe; - - duration: Maybe; - - video_codec: Maybe; - - audio_codec: Maybe; - - width: Maybe; - - height: Maybe; - - framerate: Maybe; - - bitrate: Maybe; -}; - -export type SlimSceneDataPaths = { - __typename?: "ScenePathsType"; - - screenshot: Maybe; - - preview: Maybe; - - stream: Maybe; - - webp: Maybe; - - vtt: Maybe; - - chapters_vtt: Maybe; -}; - -export type SlimSceneDataSceneMarkers = { - __typename?: "SceneMarker"; - - id: string; - - title: string; - - seconds: number; -}; - -export type SlimSceneDataGallery = { - __typename?: "Gallery"; - - id: string; - - path: string; - - title: Maybe; -}; - -export type SlimSceneDataStudio = { - __typename?: "Studio"; - - id: string; - - name: string; - - image_path: Maybe; -}; - -export type SlimSceneDataTags = { - __typename?: "Tag"; - - id: string; - - name: string; -}; - -export type SlimSceneDataPerformers = { - __typename?: "Performer"; - - id: string; - - name: Maybe; - - favorite: boolean; - - image_path: Maybe; -}; - -export type SceneDataFragment = { - __typename?: "Scene"; - - id: string; - - checksum: string; - - title: Maybe; - - details: Maybe; - - url: Maybe; - - date: Maybe; - - rating: Maybe; - - path: string; - - file: SceneDataFile; - - paths: SceneDataPaths; - - scene_markers: SceneDataSceneMarkers[]; - - is_streamable: boolean; - - gallery: Maybe; - - studio: Maybe; - - tags: SceneDataTags[]; - - performers: SceneDataPerformers[]; -}; - -export type SceneDataFile = { - __typename?: "SceneFileType"; - - size: Maybe; - - duration: Maybe; - - video_codec: Maybe; - - audio_codec: Maybe; - - width: Maybe; - - height: Maybe; - - framerate: Maybe; - - bitrate: Maybe; -}; - -export type SceneDataPaths = { - __typename?: "ScenePathsType"; - - screenshot: Maybe; - - preview: Maybe; - - stream: Maybe; - - webp: Maybe; - - vtt: Maybe; - - chapters_vtt: Maybe; -}; - -export type SceneDataSceneMarkers = SceneMarkerDataFragment; - -export type SceneDataGallery = GalleryDataFragment; - -export type SceneDataStudio = StudioDataFragment; - -export type SceneDataTags = TagDataFragment; - -export type SceneDataPerformers = PerformerDataFragment; - -export type SlimStudioDataFragment = { - __typename?: "Studio"; - - id: string; - - name: string; - - image_path: Maybe; -}; - -export type StudioDataFragment = { - __typename?: "Studio"; - - id: string; - - checksum: string; - - name: string; - - url: Maybe; - - image_path: Maybe; - - scene_count: Maybe; -}; - -export type TagDataFragment = { - __typename?: "Tag"; - - id: string; - - name: string; - - scene_count: Maybe; - - scene_marker_count: Maybe; -}; - -import gql from "graphql-tag"; -import * as ReactApolloHooks from "react-apollo-hooks"; - -// ==================================================== -// Fragments -// ==================================================== - -export const ConfigGeneralDataFragmentDoc = gql` - fragment ConfigGeneralData on ConfigGeneralResult { - stashes - databasePath - generatedPath - } -`; - -export const ConfigInterfaceDataFragmentDoc = gql` - fragment ConfigInterfaceData on ConfigInterfaceResult { - css - cssEnabled - } -`; - -export const ConfigDataFragmentDoc = gql` - fragment ConfigData on ConfigResult { - general { - ...ConfigGeneralData - } - interface { - ...ConfigInterfaceData - } - } - - ${ConfigGeneralDataFragmentDoc} - ${ConfigInterfaceDataFragmentDoc} -`; - -export const SlimPerformerDataFragmentDoc = gql` - fragment SlimPerformerData on Performer { - id - name - image_path - } -`; - -export const SlimSceneDataFragmentDoc = gql` - fragment SlimSceneData on Scene { - id - checksum - title - details - url - date - rating - path - file { - size - duration - video_codec - audio_codec - width - height - framerate - bitrate - } - paths { - screenshot - preview - stream - webp - vtt - chapters_vtt - } - scene_markers { - id - title - seconds - } - gallery { - id - path - title - } - studio { - id - name - image_path - } - tags { - id - name - } - performers { - id - name - favorite - image_path - } - } -`; - -export const SceneMarkerDataFragmentDoc = gql` - fragment SceneMarkerData on SceneMarker { - id - title - seconds - stream - preview - scene { - id - } - primary_tag { - id - name - } - tags { - id - name - } - } -`; - -export const GalleryDataFragmentDoc = gql` - fragment GalleryData on Gallery { - id - checksum - path - title - files { - index - name - path - } - } -`; - -export const StudioDataFragmentDoc = gql` - fragment StudioData on Studio { - id - checksum - name - url - image_path - scene_count - } -`; - -export const TagDataFragmentDoc = gql` - fragment TagData on Tag { - id - name - scene_count - scene_marker_count - } -`; - -export const PerformerDataFragmentDoc = gql` - fragment PerformerData on Performer { - id - checksum - name - url - twitter - instagram - birthdate - ethnicity - country - eye_color - height - measurements - fake_tits - career_length - tattoos - piercings - aliases - favorite - image_path - scene_count - } -`; - -export const SceneDataFragmentDoc = gql` - fragment SceneData on Scene { - id - checksum - title - details - url - date - rating - path - file { - size - duration - video_codec - audio_codec - width - height - framerate - bitrate - } - paths { - screenshot - preview - stream - webp - vtt - chapters_vtt - } - scene_markers { - ...SceneMarkerData - } - is_streamable - gallery { - ...GalleryData - } - studio { - ...StudioData - } - tags { - ...TagData - } - performers { - ...PerformerData - } - } - - ${SceneMarkerDataFragmentDoc} - ${GalleryDataFragmentDoc} - ${StudioDataFragmentDoc} - ${TagDataFragmentDoc} - ${PerformerDataFragmentDoc} -`; - -export const SlimStudioDataFragmentDoc = gql` - fragment SlimStudioData on Studio { - id - name - image_path - } -`; - -// ==================================================== -// Components -// ==================================================== - -export const ConfigureGeneralDocument = gql` - mutation ConfigureGeneral($input: ConfigGeneralInput!) { - configureGeneral(input: $input) { - ...ConfigGeneralData - } - } - - ${ConfigGeneralDataFragmentDoc} -`; -export function useConfigureGeneral( - baseOptions?: ReactApolloHooks.MutationHookOptions< - ConfigureGeneralMutation, - ConfigureGeneralVariables - > -) { - return ReactApolloHooks.useMutation< - ConfigureGeneralMutation, - ConfigureGeneralVariables - >(ConfigureGeneralDocument, baseOptions); -} -export const ConfigureInterfaceDocument = gql` - mutation ConfigureInterface($input: ConfigInterfaceInput!) { - configureInterface(input: $input) { - ...ConfigInterfaceData - } - } - - ${ConfigInterfaceDataFragmentDoc} -`; -export function useConfigureInterface( - baseOptions?: ReactApolloHooks.MutationHookOptions< - ConfigureInterfaceMutation, - ConfigureInterfaceVariables - > -) { - return ReactApolloHooks.useMutation< - ConfigureInterfaceMutation, - ConfigureInterfaceVariables - >(ConfigureInterfaceDocument, baseOptions); -} -export const PerformerCreateDocument = gql` - mutation PerformerCreate( - $name: String - $url: String - $birthdate: String - $ethnicity: String - $country: String - $eye_color: String - $height: String - $measurements: String - $fake_tits: String - $career_length: String - $tattoos: String - $piercings: String - $aliases: String - $twitter: String - $instagram: String - $favorite: Boolean - $image: String! - ) { - performerCreate( - input: { - name: $name - url: $url - birthdate: $birthdate - ethnicity: $ethnicity - country: $country - eye_color: $eye_color - height: $height - measurements: $measurements - fake_tits: $fake_tits - career_length: $career_length - tattoos: $tattoos - piercings: $piercings - aliases: $aliases - twitter: $twitter - instagram: $instagram - favorite: $favorite - image: $image - } - ) { - ...PerformerData - } - } - - ${PerformerDataFragmentDoc} -`; -export function usePerformerCreate( - baseOptions?: ReactApolloHooks.MutationHookOptions< - PerformerCreateMutation, - PerformerCreateVariables - > -) { - return ReactApolloHooks.useMutation< - PerformerCreateMutation, - PerformerCreateVariables - >(PerformerCreateDocument, baseOptions); -} -export const PerformerUpdateDocument = gql` - mutation PerformerUpdate( - $id: ID! - $name: String - $url: String - $birthdate: String - $ethnicity: String - $country: String - $eye_color: String - $height: String - $measurements: String - $fake_tits: String - $career_length: String - $tattoos: String - $piercings: String - $aliases: String - $twitter: String - $instagram: String - $favorite: Boolean - $image: String - ) { - performerUpdate( - input: { - id: $id - name: $name - url: $url - birthdate: $birthdate - ethnicity: $ethnicity - country: $country - eye_color: $eye_color - height: $height - measurements: $measurements - fake_tits: $fake_tits - career_length: $career_length - tattoos: $tattoos - piercings: $piercings - aliases: $aliases - twitter: $twitter - instagram: $instagram - favorite: $favorite - image: $image - } - ) { - ...PerformerData - } - } - - ${PerformerDataFragmentDoc} -`; -export function usePerformerUpdate( - baseOptions?: ReactApolloHooks.MutationHookOptions< - PerformerUpdateMutation, - PerformerUpdateVariables - > -) { - return ReactApolloHooks.useMutation< - PerformerUpdateMutation, - PerformerUpdateVariables - >(PerformerUpdateDocument, baseOptions); -} -export const PerformerDestroyDocument = gql` - mutation PerformerDestroy($id: ID!) { - performerDestroy(input: { id: $id }) - } -`; -export function usePerformerDestroy( - baseOptions?: ReactApolloHooks.MutationHookOptions< - PerformerDestroyMutation, - PerformerDestroyVariables - > -) { - return ReactApolloHooks.useMutation< - PerformerDestroyMutation, - PerformerDestroyVariables - >(PerformerDestroyDocument, baseOptions); -} -export const SceneMarkerCreateDocument = gql` - mutation SceneMarkerCreate( - $title: String! - $seconds: Float! - $scene_id: ID! - $primary_tag_id: ID! - $tag_ids: [ID!] = [] - ) { - sceneMarkerCreate( - input: { - title: $title - seconds: $seconds - scene_id: $scene_id - primary_tag_id: $primary_tag_id - tag_ids: $tag_ids - } - ) { - ...SceneMarkerData - } - } - - ${SceneMarkerDataFragmentDoc} -`; -export function useSceneMarkerCreate( - baseOptions?: ReactApolloHooks.MutationHookOptions< - SceneMarkerCreateMutation, - SceneMarkerCreateVariables - > -) { - return ReactApolloHooks.useMutation< - SceneMarkerCreateMutation, - SceneMarkerCreateVariables - >(SceneMarkerCreateDocument, baseOptions); -} -export const SceneMarkerUpdateDocument = gql` - mutation SceneMarkerUpdate( - $id: ID! - $title: String! - $seconds: Float! - $scene_id: ID! - $primary_tag_id: ID! - $tag_ids: [ID!] = [] - ) { - sceneMarkerUpdate( - input: { - id: $id - title: $title - seconds: $seconds - scene_id: $scene_id - primary_tag_id: $primary_tag_id - tag_ids: $tag_ids - } - ) { - ...SceneMarkerData - } - } - - ${SceneMarkerDataFragmentDoc} -`; -export function useSceneMarkerUpdate( - baseOptions?: ReactApolloHooks.MutationHookOptions< - SceneMarkerUpdateMutation, - SceneMarkerUpdateVariables - > -) { - return ReactApolloHooks.useMutation< - SceneMarkerUpdateMutation, - SceneMarkerUpdateVariables - >(SceneMarkerUpdateDocument, baseOptions); -} -export const SceneMarkerDestroyDocument = gql` - mutation SceneMarkerDestroy($id: ID!) { - sceneMarkerDestroy(id: $id) - } -`; -export function useSceneMarkerDestroy( - baseOptions?: ReactApolloHooks.MutationHookOptions< - SceneMarkerDestroyMutation, - SceneMarkerDestroyVariables - > -) { - return ReactApolloHooks.useMutation< - SceneMarkerDestroyMutation, - SceneMarkerDestroyVariables - >(SceneMarkerDestroyDocument, baseOptions); -} -export const SceneUpdateDocument = gql` - mutation SceneUpdate( - $id: ID! - $title: String - $details: String - $url: String - $date: String - $rating: Int - $studio_id: ID - $gallery_id: ID - $performer_ids: [ID!] = [] - $tag_ids: [ID!] = [] - ) { - sceneUpdate( - input: { - id: $id - title: $title - details: $details - url: $url - date: $date - rating: $rating - studio_id: $studio_id - gallery_id: $gallery_id - performer_ids: $performer_ids - tag_ids: $tag_ids - } - ) { - ...SceneData - } - } - - ${SceneDataFragmentDoc} -`; -export function useSceneUpdate( - baseOptions?: ReactApolloHooks.MutationHookOptions< - SceneUpdateMutation, - SceneUpdateVariables - > -) { - return ReactApolloHooks.useMutation< - SceneUpdateMutation, - SceneUpdateVariables - >(SceneUpdateDocument, baseOptions); -} -export const StudioCreateDocument = gql` - mutation StudioCreate($name: String!, $url: String, $image: String!) { - studioCreate(input: { name: $name, url: $url, image: $image }) { - ...StudioData - } - } - - ${StudioDataFragmentDoc} -`; -export function useStudioCreate( - baseOptions?: ReactApolloHooks.MutationHookOptions< - StudioCreateMutation, - StudioCreateVariables - > -) { - return ReactApolloHooks.useMutation< - StudioCreateMutation, - StudioCreateVariables - >(StudioCreateDocument, baseOptions); -} -export const StudioUpdateDocument = gql` - mutation StudioUpdate($id: ID!, $name: String, $url: String, $image: String) { - studioUpdate(input: { id: $id, name: $name, url: $url, image: $image }) { - ...StudioData - } - } - - ${StudioDataFragmentDoc} -`; -export function useStudioUpdate( - baseOptions?: ReactApolloHooks.MutationHookOptions< - StudioUpdateMutation, - StudioUpdateVariables - > -) { - return ReactApolloHooks.useMutation< - StudioUpdateMutation, - StudioUpdateVariables - >(StudioUpdateDocument, baseOptions); -} -export const StudioDestroyDocument = gql` - mutation StudioDestroy($id: ID!) { - studioDestroy(input: { id: $id }) - } -`; -export function useStudioDestroy( - baseOptions?: ReactApolloHooks.MutationHookOptions< - StudioDestroyMutation, - StudioDestroyVariables - > -) { - return ReactApolloHooks.useMutation< - StudioDestroyMutation, - StudioDestroyVariables - >(StudioDestroyDocument, baseOptions); -} -export const TagCreateDocument = gql` - mutation TagCreate($name: String!) { - tagCreate(input: { name: $name }) { - ...TagData - } - } - - ${TagDataFragmentDoc} -`; -export function useTagCreate( - baseOptions?: ReactApolloHooks.MutationHookOptions< - TagCreateMutation, - TagCreateVariables - > -) { - return ReactApolloHooks.useMutation( - TagCreateDocument, - baseOptions - ); -} -export const TagDestroyDocument = gql` - mutation TagDestroy($id: ID!) { - tagDestroy(input: { id: $id }) - } -`; -export function useTagDestroy( - baseOptions?: ReactApolloHooks.MutationHookOptions< - TagDestroyMutation, - TagDestroyVariables - > -) { - return ReactApolloHooks.useMutation( - TagDestroyDocument, - baseOptions - ); -} -export const TagUpdateDocument = gql` - mutation TagUpdate($id: ID!, $name: String!) { - tagUpdate(input: { id: $id, name: $name }) { - ...TagData - } - } - - ${TagDataFragmentDoc} -`; -export function useTagUpdate( - baseOptions?: ReactApolloHooks.MutationHookOptions< - TagUpdateMutation, - TagUpdateVariables - > -) { - return ReactApolloHooks.useMutation( - TagUpdateDocument, - baseOptions - ); -} -export const FindGalleriesDocument = gql` - query FindGalleries($filter: FindFilterType) { - findGalleries(filter: $filter) { - count - galleries { - ...GalleryData - } - } - } - - ${GalleryDataFragmentDoc} -`; -export function useFindGalleries( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - FindGalleriesDocument, - baseOptions - ); -} -export const FindGalleryDocument = gql` - query FindGallery($id: ID!) { - findGallery(id: $id) { - ...GalleryData - } - } - - ${GalleryDataFragmentDoc} -`; -export function useFindGallery( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - FindGalleryDocument, - baseOptions - ); -} -export const SceneWallDocument = gql` - query SceneWall($q: String) { - sceneWall(q: $q) { - ...SceneData - } - } - - ${SceneDataFragmentDoc} -`; -export function useSceneWall( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - SceneWallDocument, - baseOptions - ); -} -export const MarkerWallDocument = gql` - query MarkerWall($q: String) { - markerWall(q: $q) { - ...SceneMarkerData - } - } - - ${SceneMarkerDataFragmentDoc} -`; -export function useMarkerWall( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - MarkerWallDocument, - baseOptions - ); -} -export const FindTagDocument = gql` - query FindTag($id: ID!) { - findTag(id: $id) { - ...TagData - } - } - - ${TagDataFragmentDoc} -`; -export function useFindTag( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - FindTagDocument, - baseOptions - ); -} -export const MarkerStringsDocument = gql` - query MarkerStrings($q: String, $sort: String) { - markerStrings(q: $q, sort: $sort) { - id - count - title - } - } -`; -export function useMarkerStrings( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - MarkerStringsDocument, - baseOptions - ); -} -export const AllTagsDocument = gql` - query AllTags { - allTags { - ...TagData - } - } - - ${TagDataFragmentDoc} -`; -export function useAllTags( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - AllTagsDocument, - baseOptions - ); -} -export const AllPerformersForFilterDocument = gql` - query AllPerformersForFilter { - allPerformers { - ...SlimPerformerData - } - } - - ${SlimPerformerDataFragmentDoc} -`; -export function useAllPerformersForFilter( - baseOptions?: ReactApolloHooks.QueryHookOptions< - AllPerformersForFilterVariables - > -) { - return ReactApolloHooks.useQuery< - AllPerformersForFilterQuery, - AllPerformersForFilterVariables - >(AllPerformersForFilterDocument, baseOptions); -} -export const AllStudiosForFilterDocument = gql` - query AllStudiosForFilter { - allStudios { - ...SlimStudioData - } - } - - ${SlimStudioDataFragmentDoc} -`; -export function useAllStudiosForFilter( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery< - AllStudiosForFilterQuery, - AllStudiosForFilterVariables - >(AllStudiosForFilterDocument, baseOptions); -} -export const AllTagsForFilterDocument = gql` - query AllTagsForFilter { - allTags { - id - name - } - } -`; -export function useAllTagsForFilter( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery< - AllTagsForFilterQuery, - AllTagsForFilterVariables - >(AllTagsForFilterDocument, baseOptions); -} -export const ValidGalleriesForSceneDocument = gql` - query ValidGalleriesForScene($scene_id: ID!) { - validGalleriesForScene(scene_id: $scene_id) { - id - path - } - } -`; -export function useValidGalleriesForScene( - baseOptions?: ReactApolloHooks.QueryHookOptions< - ValidGalleriesForSceneVariables - > -) { - return ReactApolloHooks.useQuery< - ValidGalleriesForSceneQuery, - ValidGalleriesForSceneVariables - >(ValidGalleriesForSceneDocument, baseOptions); -} -export const StatsDocument = gql` - query Stats { - stats { - scene_count - gallery_count - performer_count - studio_count - tag_count - } - } -`; -export function useStats( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - StatsDocument, - baseOptions - ); -} -export const FindPerformersDocument = gql` - query FindPerformers( - $filter: FindFilterType - $performer_filter: PerformerFilterType - ) { - findPerformers(filter: $filter, performer_filter: $performer_filter) { - count - performers { - ...PerformerData - } - } - } - - ${PerformerDataFragmentDoc} -`; -export function useFindPerformers( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery< - FindPerformersQuery, - FindPerformersVariables - >(FindPerformersDocument, baseOptions); -} -export const FindPerformerDocument = gql` - query FindPerformer($id: ID!) { - findPerformer(id: $id) { - ...PerformerData - } - } - - ${PerformerDataFragmentDoc} -`; -export function useFindPerformer( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - FindPerformerDocument, - baseOptions - ); -} -export const FindSceneMarkersDocument = gql` - query FindSceneMarkers( - $filter: FindFilterType - $scene_marker_filter: SceneMarkerFilterType - ) { - findSceneMarkers( - filter: $filter - scene_marker_filter: $scene_marker_filter - ) { - count - scene_markers { - ...SceneMarkerData - } - } - } - - ${SceneMarkerDataFragmentDoc} -`; -export function useFindSceneMarkers( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery< - FindSceneMarkersQuery, - FindSceneMarkersVariables - >(FindSceneMarkersDocument, baseOptions); -} -export const FindScenesDocument = gql` - query FindScenes( - $filter: FindFilterType - $scene_filter: SceneFilterType - $scene_ids: [Int!] - ) { - findScenes( - filter: $filter - scene_filter: $scene_filter - scene_ids: $scene_ids - ) { - count - scenes { - ...SlimSceneData - } - } - } - - ${SlimSceneDataFragmentDoc} -`; -export function useFindScenes( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - FindScenesDocument, - baseOptions - ); -} -export const FindSceneDocument = gql` - query FindScene($id: ID!, $checksum: String) { - findScene(id: $id, checksum: $checksum) { - ...SceneData - } - sceneMarkerTags(scene_id: $id) { - tag { - id - name - } - scene_markers { - ...SceneMarkerData - } - } - } - - ${SceneDataFragmentDoc} - ${SceneMarkerDataFragmentDoc} -`; -export function useFindScene( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - FindSceneDocument, - baseOptions - ); -} -export const ScrapeFreeonesDocument = gql` - query ScrapeFreeones($performer_name: String!) { - scrapeFreeones(performer_name: $performer_name) { - name - url - twitter - instagram - birthdate - ethnicity - country - eye_color - height - measurements - fake_tits - career_length - tattoos - piercings - aliases - } - } -`; -export function useScrapeFreeones( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery< - ScrapeFreeonesQuery, - ScrapeFreeonesVariables - >(ScrapeFreeonesDocument, baseOptions); -} -export const ScrapeFreeonesPerformersDocument = gql` - query ScrapeFreeonesPerformers($q: String!) { - scrapeFreeonesPerformerList(query: $q) - } -`; -export function useScrapeFreeonesPerformers( - baseOptions?: ReactApolloHooks.QueryHookOptions< - ScrapeFreeonesPerformersVariables - > -) { - return ReactApolloHooks.useQuery< - ScrapeFreeonesPerformersQuery, - ScrapeFreeonesPerformersVariables - >(ScrapeFreeonesPerformersDocument, baseOptions); -} -export const ConfigurationDocument = gql` - query Configuration { - configuration { - ...ConfigData - } - } - - ${ConfigDataFragmentDoc} -`; -export function useConfiguration( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - ConfigurationDocument, - baseOptions - ); -} -export const DirectoriesDocument = gql` - query Directories($path: String) { - directories(path: $path) - } -`; -export function useDirectories( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - DirectoriesDocument, - baseOptions - ); -} -export const MetadataImportDocument = gql` - query MetadataImport { - metadataImport - } -`; -export function useMetadataImport( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery< - MetadataImportQuery, - MetadataImportVariables - >(MetadataImportDocument, baseOptions); -} -export const MetadataExportDocument = gql` - query MetadataExport { - metadataExport - } -`; -export function useMetadataExport( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery< - MetadataExportQuery, - MetadataExportVariables - >(MetadataExportDocument, baseOptions); -} -export const MetadataScanDocument = gql` - query MetadataScan($input: ScanMetadataInput!) { - metadataScan(input: $input) - } -`; -export function useMetadataScan( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - MetadataScanDocument, - baseOptions - ); -} -export const MetadataGenerateDocument = gql` - query MetadataGenerate($input: GenerateMetadataInput!) { - metadataGenerate(input: $input) - } -`; -export function useMetadataGenerate( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery< - MetadataGenerateQuery, - MetadataGenerateVariables - >(MetadataGenerateDocument, baseOptions); -} -export const MetadataCleanDocument = gql` - query MetadataClean { - metadataClean - } -`; -export function useMetadataClean( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - MetadataCleanDocument, - baseOptions - ); -} -export const FindStudiosDocument = gql` - query FindStudios($filter: FindFilterType) { - findStudios(filter: $filter) { - count - studios { - ...StudioData - } - } - } - - ${StudioDataFragmentDoc} -`; -export function useFindStudios( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - FindStudiosDocument, - baseOptions - ); -} -export const FindStudioDocument = gql` - query FindStudio($id: ID!) { - findStudio(id: $id) { - ...StudioData - } - } - - ${StudioDataFragmentDoc} -`; -export function useFindStudio( - baseOptions?: ReactApolloHooks.QueryHookOptions -) { - return ReactApolloHooks.useQuery( - FindStudioDocument, - baseOptions - ); -} -export const MetadataUpdateDocument = gql` - subscription MetadataUpdate { - metadataUpdate - } -`; -export function useMetadataUpdate( - baseOptions?: ReactApolloHooks.SubscriptionHookOptions< - MetadataUpdateSubscription, - MetadataUpdateVariables - > -) { - return ReactApolloHooks.useSubscription< - MetadataUpdateSubscription, - MetadataUpdateVariables - >(MetadataUpdateDocument, baseOptions); -}