package graph2 import ( "git.aiterp.net/rpdata/api/graph2/graphcore" "git.aiterp.net/rpdata/api/models" ) func complexity() (cr graphcore.ComplexityRoot) { tinySubListComplexity := 2 subListComplexity := 25 bigSublistComplexity := 75 hugeSublistComplexity := 100 findComplexity := 100 listComplexity := 200 mutationComplexity := 100 cr.Query.Character = func(childComplexity int, id *string, nick *string) int { return childComplexity + findComplexity } cr.Query.Characters = func(childComplexity int, filter *models.CharacterFilter) int { return childComplexity + listComplexity } cr.Query.Channel = func(childComplexity int, name string) int { return childComplexity + findComplexity } cr.Query.Channels = func(childComplexity int, filter *models.ChannelFilter) int { return childComplexity + listComplexity } cr.Query.Post = func(childComplexity int, id string) int { return childComplexity + findComplexity } cr.Query.Posts = func(childComplexity int, filter *models.PostFilter) int { return childComplexity + listComplexity } cr.Query.UnknownNicks = func(childComplexity int, filter *graphcore.UnknownNicksFilter) int { return childComplexity + listComplexity } cr.Query.Log = func(childComplexity int, id string) int { return childComplexity + findComplexity } cr.Query.Logs = func(childComplexity int, filter *models.LogFilter) int { if filter != nil && ((filter.Open != nil && *filter.Open == true) || (filter.Limit <= 10)) { return childComplexity + findComplexity } return childComplexity + listComplexity } cr.Query.Chapter = func(childComplexity int, id string) int { return childComplexity + findComplexity } cr.Query.Comment = func(childComplexity int, id string) int { return childComplexity + findComplexity } cr.Query.Tags = func(childComplexity int, filter *graphcore.TagFilter) int { return childComplexity + listComplexity } cr.Query.Story = func(childComplexity int, id string) int { return childComplexity + findComplexity } cr.Query.Stories = func(childComplexity int, filter *models.StoryFilter) int { if filter != nil && filter.Limit <= 10 { return childComplexity + findComplexity } return childComplexity + listComplexity } cr.Query.File = func(childComplexity int, id string) int { return childComplexity + findComplexity } cr.Query.Files = func(childComplexity int, filter *models.FileFilter) int { return childComplexity + listComplexity } cr.Query.Changes = func(childComplexity int, filter *models.ChangeFilter) int { return childComplexity + listComplexity } cr.Query.Token = func(childComplexity int) int { return childComplexity + findComplexity } cr.Mutation.AddStory = func(childComplexity int, input graphcore.StoryAddInput) int { return childComplexity + mutationComplexity } cr.Mutation.AddStoryTag = func(childComplexity int, input graphcore.StoryTagAddInput) int { return childComplexity + mutationComplexity } cr.Mutation.RemoveStoryTag = func(childComplexity int, input graphcore.StoryTagRemoveInput) int { return childComplexity + mutationComplexity } cr.Mutation.EditStory = func(childComplexity int, input graphcore.StoryEditInput) int { return childComplexity + mutationComplexity } cr.Mutation.RemoveStory = func(childComplexity int, input graphcore.StoryRemoveInput) int { return childComplexity + mutationComplexity } cr.Mutation.AddChapter = func(childComplexity int, input graphcore.ChapterAddInput) int { return childComplexity + mutationComplexity } cr.Mutation.EditChapter = func(childComplexity int, input graphcore.ChapterEditInput) int { return childComplexity + mutationComplexity } cr.Mutation.MoveChapter = func(childComplexity int, input graphcore.ChapterMoveInput) int { return childComplexity + mutationComplexity } cr.Mutation.RemoveChapter = func(childComplexity int, input graphcore.ChapterRemoveInput) int { return childComplexity + mutationComplexity } cr.Mutation.AddComment = func(childComplexity int, input graphcore.CommentAddInput) int { return childComplexity + mutationComplexity } cr.Mutation.EditComment = func(childComplexity int, input graphcore.CommentEditInput) int { return childComplexity + mutationComplexity } cr.Mutation.RemoveComment = func(childComplexity int, input graphcore.CommentRemoveInput) int { return childComplexity + mutationComplexity } cr.Mutation.AddLog = func(childComplexity int, input graphcore.LogAddInput) int { return childComplexity + mutationComplexity } cr.Mutation.ImportLog = func(childComplexity int, input graphcore.LogImportInput) int { return childComplexity + mutationComplexity } cr.Mutation.EditLog = func(childComplexity int, input graphcore.LogEditInput) int { return childComplexity + mutationComplexity } cr.Mutation.RemoveLog = func(childComplexity int, input graphcore.LogRemoveInput) int { return childComplexity + mutationComplexity } cr.Mutation.AddPost = func(childComplexity int, input graphcore.PostAddInput) int { return childComplexity + mutationComplexity } cr.Mutation.EditPost = func(childComplexity int, input graphcore.PostEditInput) int { return childComplexity + mutationComplexity } cr.Mutation.MovePost = func(childComplexity int, input graphcore.PostMoveInput) int { return childComplexity + mutationComplexity } cr.Mutation.RemovePost = func(childComplexity int, input graphcore.PostRemoveInput) int { return childComplexity + mutationComplexity } cr.Mutation.AddCharacter = func(childComplexity int, input graphcore.CharacterAddInput) int { return childComplexity + mutationComplexity } cr.Mutation.AddCharacterNick = func(childComplexity int, input graphcore.CharacterNickInput) int { return childComplexity + mutationComplexity } cr.Mutation.RemoveCharacterNick = func(childComplexity int, input graphcore.CharacterNickInput) int { return childComplexity + mutationComplexity } cr.Mutation.EditCharacter = func(childComplexity int, input graphcore.CharacterEditInput) int { return childComplexity + mutationComplexity } cr.Mutation.RemoveCharacter = func(childComplexity int, input graphcore.CharacterRemoveInput) int { return childComplexity + mutationComplexity } cr.Mutation.AddChannel = func(childComplexity int, input graphcore.ChannelAddInput) int { return childComplexity + mutationComplexity } cr.Mutation.EditChannel = func(childComplexity int, input graphcore.ChannelEditInput) int { return childComplexity + mutationComplexity } cr.Log.Characters = func(childComplexity int) int { return childComplexity + subListComplexity } cr.Log.Posts = func(childComplexity int, kinds []string) int { return childComplexity + hugeSublistComplexity } cr.Log.NextLogs = func(childComplexity int) int { return childComplexity + (subListComplexity / 2) } cr.Log.PrevLogs = func(childComplexity int) int { return childComplexity + (subListComplexity / 2) } cr.Story.Chapters = func(childComplexity int) int { return childComplexity + bigSublistComplexity } cr.Story.Tags = func(childComplexity int) int { return childComplexity + tinySubListComplexity } cr.Chapter.Comments = func(childComplexity int, limit *int) int { return childComplexity + subListComplexity } return }