coverage~bigbes/sr-ht-spec3cb1c03dgraph/api/generated.go

Coverage
0.0% 0/5383 statements
Δ
Blob
9a4831f
Uncovered L26-L32L217-L219L221-L224L226-L228L231L233-L235L238L240-L242L245L247-L249L252L254-L256L259L261-L263L266L268-L270L273L275-L277L280L282-L284L287L289-L291L294L296-L298L301L303-L305L308L310-L312L315L317-L319L322L324-L326L329L331-L333L336L338-L340L343-L346L348L350-L352L355-L358L360L362-L364L367L369-L371L374L376-L378L381L383-L385L388L390-L392L395L397-L399L402L404-L406L409L411-L413L416L418-L420L423L425-L427L430L432-L434L437L439-L441L444L446-L448L451L453-L455L458L460-L462L465L467-L469L472L474-L476L479L481-L483L486L488-L490L493L495-L497L500L502-L504L507L509-L511L514L516-L518L521-L524L526L528-L530L533-L536L538L540-L542L545-L548L550L552-L554L557L559-L561L564-L567L569L571-L573L576-L579L581L583-L585L588-L591L593L595-L597L600L602-L604L607-L610L612L614-L616L619-L622L624L626-L628L631L633-L635L638L640-L642L645L647-L649L652L654-L656L659L661-L663L666L668-L670L673L675-L677L680L682-L684L687L689-L691L694L696-L698L701L703-L705L708L710-L712L715L717-L719L722L724-L726L729L731-L733L736L738-L740L743L745-L747L750L752-L754L757L759-L761L764-L767L769L771-L773L776L778-L780L783L785-L787L790L792-L794L797-L800L802L804-L806L809L811-L813L816L818-L820L823L825-L827L830L832-L834L837L839-L841L844L846-L848L851L853-L855L858L860-L862L865L867-L869L872L874-L876L879L881-L883L886L888-L890L893L896L899-L926L928-L934L936L938-L951L954-L955L967-L982L986-L990L993-L997L1452-L1461L1463-L1464L1467-L1476L1478-L1479L1482-L1491L1493-L1494L1497-L1506L1508-L1515L1517-L1524L1526-L1533L1535-L1536L1539-L1548L1550-L1557L1559-L1560L1563-L1572L1574-L1581L1583-L1584L1587-L1596L1598-L1605L1607-L1608L1611-L1620L1622-L1629L1631-L1638L1640-L1647L1649-L1650L1653-L1662L1664-L1671L1673-L1674L1677-L1686L1688-L1689L1692-L1701L1703-L1704L1707-L1716L1718-L1719L1722-L1731L1733-L1734L1737-L1746L1748-L1749L1752-L1761L1763-L1764L1775-L1785L1787-L1799L1801-L1803L1806-L1814L1816L1819-L1829L1831-L1843L1845-L1847L1850-L1858L1860L1863-L1873L1875-L1888L1891-L1899L1901L1904-L1914L1916-L1928L1930-L1932L1935-L1943L1945L1948-L1958L1960-L1972L1974-L1976L1979-L1987L1989L1992-L2002L2004-L2016L2018-L2020L2023-L2031L2033L2036-L2046L2048-L2060L2062-L2064L2067-L2075L2077L2080-L2090L2092-L2104L2106-L2108L2111-L2119L2121L2124-L2134L2136-L2148L2150-L2152L2155-L2163L2165L2168-L2178L2180-L2192L2194-L2196L2199-L2207L2209L2212-L2222L2224-L2236L2238-L2240L2243-L2251L2253L2256-L2266L2268-L2280L2282-L2284L2287-L2295L2297L2300-L2310L2312-L2324L2326-L2328L2331-L2339L2341L2344-L2354L2356-L2368L2370-L2372L2375-L2383L2385L2388-L2398L2400-L2412L2414-L2416L2419-L2427L2429L2432-L2442L2444-L2456L2458-L2460L2463-L2471L2473L2476-L2486L2488-L2500L2502-L2504L2507-L2515L2517-L2521L2523-L2528L2531-L2541L2543-L2555L2557-L2559L2562-L2570L2572-L2576L2578-L2583L2586-L2596L2598-L2610L2612-L2614L2617-L2625L2627L2630-L2640L2642-L2654L2656-L2658L2661-L2669L2671L2674-L2684L2686-L2698L2700-L2702L2705-L2713L2715L2718-L2728L2730-L2742L2744-L2746L2749-L2757L2759L2762-L2772L2774-L2786L2788-L2790L2793-L2810L2812L2815L2818-L2828L2830-L2842L2844-L2846L2849-L2857L2859L2862-L2872L2874-L2886L2888-L2890L2893-L2901L2903L2906-L2916L2918-L2930L2932-L2934L2937-L2945L2947L2950-L2960L2962-L2974L2976-L2978L2981-L2989L2991L2994-L3004L3006-L3018L3020-L3022L3025-L3033L3035L3038-L3048L3050-L3062L3064-L3066L3069-L3077L3079L3082-L3092L3094-L3106L3108-L3110L3113-L3121L3123L3126-L3136L3138-L3151L3154-L3162L3164L3167-L3177L3179-L3192L3195-L3203L3205L3208-L3218L3220-L3232L3234-L3236L3239-L3247L3249L3252-L3262L3264-L3276L3278-L3280L3283-L3291L3293L3296-L3306L3308-L3320L3322-L3324L3327-L3335L3337L3340-L3350L3352-L3365L3368-L3376L3378L3381-L3391L3393-L3405L3407-L3409L3412-L3420L3422L3425-L3435L3437-L3449L3451-L3453L3456-L3464L3466L3469-L3479L3481-L3493L3495-L3497L3500-L3508L3510L3513-L3523L3525-L3537L3539-L3541L3544-L3577L3579L3582L3585-L3595L3597-L3609L3611-L3613L3616-L3633L3635L3638L3641-L3651L3653-L3666L3669-L3686L3688L3691-L3695L3697-L3702L3705-L3715L3717-L3730L3733-L3772L3774L3777-L3781L3783-L3788L3791-L3801L3803-L3815L3817-L3819L3822-L3861L3863L3866-L3870L3872-L3877L3880-L3890L3892-L3904L3906-L3908L3911-L3924L3926L3929-L3933L3935-L3940L3943-L3953L3955-L3967L3969-L3971L3974-L3991L3993L3996L3999-L4009L4011-L4024L4027-L4044L4046L4049-L4053L4055-L4060L4063-L4073L4075-L4087L4089-L4091L4094-L4127L4129L4132-L4136L4138-L4143L4146-L4156L4158-L4170L4172-L4174L4177-L4188L4190L4193-L4197L4199-L4204L4207-L4217L4219-L4232L4235-L4243L4245-L4249L4251-L4256L4259-L4269L4271-L4283L4285-L4287L4290-L4298L4300L4303-L4313L4315-L4328L4331-L4358L4360L4363-L4367L4369-L4374L4377-L4387L4389-L4402L4405-L4424L4426L4429L4432-L4442L4444-L4456L4458-L4460L4463-L4471L4473L4476-L4486L4488-L4500L4502-L4504L4507-L4515L4517L4520-L4530L4532-L4544L4546-L4548L4551-L4559L4561L4564-L4574L4576-L4588L4590-L4592L4595-L4603L4605L4608-L4618L4620-L4632L4634-L4636L4639-L4647L4649L4652-L4662L4664-L4676L4678-L4680L4683-L4691L4693L4696-L4706L4708-L4720L4722-L4724L4727-L4735L4737L4740-L4750L4752-L4764L4766-L4768L4771-L4779L4781L4784-L4794L4796-L4808L4810-L4812L4815-L4823L4825L4828-L4838L4840-L4852L4854-L4856L4859-L4867L4869L4872-L4882L4884-L4896L4898-L4900L4903-L4911L4913L4916-L4926L4928-L4940L4942-L4944L4947-L4955L4957L4960-L4970L4972-L4984L4986-L4988L4991-L5018L5020L5023L5026-L5036L5038-L5050L5052-L5054L5057-L5065L5067L5070-L5080L5082-L5094L5096-L5098L5101-L5109L5111L5114-L5124L5126-L5138L5140-L5142L5145-L5153L5155L5158-L5168L5170-L5182L5184-L5186L5189-L5197L5199L5202-L5212L5214-L5226L5228-L5230L5233-L5241L5243L5246-L5256L5258-L5270L5272-L5274L5277-L5285L5287L5290-L5300L5302-L5314L5316-L5318L5321-L5329L5331L5334-L5344L5346-L5358L5360-L5362L5365-L5373L5375L5378-L5388L5390-L5402L5404-L5406L5409-L5417L5419L5422-L5432L5434-L5446L5448-L5450L5453-L5464L5466L5469-L5473L5475-L5480L5483-L5493L5495-L5507L5509-L5511L5514-L5522L5524-L5528L5530-L5535L5538-L5548L5550-L5562L5564-L5566L5569-L5577L5579L5582-L5592L5594-L5606L5608-L5610L5613-L5621L5623L5626-L5636L5638-L5650L5652-L5654L5657-L5665L5667L5670-L5680L5682-L5694L5696-L5698L5701-L5709L5711L5714-L5724L5726-L5738L5740-L5742L5745-L5753L5755L5758-L5768L5770-L5783L5786-L5794L5796L5799-L5809L5811-L5824L5827-L5835L5837L5840-L5850L5852-L5865L5868-L5876L5878L5881-L5891L5893-L5905L5907-L5909L5912-L5935L5937L5940L5943-L5953L5955-L5968L5971-L5979L5981L5984-L5994L5996-L6008L6010-L6012L6015-L6023L6025L6028-L6038L6040-L6053L6056-L6064L6066L6069-L6079L6081-L6093L6095-L6097L6100-L6108L6110L6113-L6123L6125-L6138L6141-L6149L6151L6154-L6164L6166-L6178L6180-L6182L6185-L6193L6195L6198-L6208L6210-L6222L6224-L6226L6229-L6244L6246L6249L6252-L6262L6264-L6276L6278-L6280L6283-L6291L6293L6296-L6306L6308-L6320L6322-L6324L6327-L6335L6337L6340-L6350L6352-L6365L6368-L6376L6378L6381-L6391L6393-L6405L6407-L6409L6412-L6420L6422L6425-L6435L6437-L6450L6453-L6461L6463L6466-L6476L6478-L6490L6492-L6494L6497-L6505L6507L6510-L6520L6522-L6535L6538-L6546L6548L6551-L6561L6563-L6575L6577-L6579L6582-L6597L6599L6602L6605-L6615L6617-L6629L6631-L6633L6636-L6663L6665L6668L6671-L6681L6683-L6695L6697-L6699L6702-L6710L6712L6715-L6725L6727-L6740L6743-L6751L6753L6756-L6766L6768-L6780L6782-L6784L6787-L6795L6797L6800-L6810L6812-L6825L6828-L6836L6838L6841-L6851L6853-L6865L6867-L6869L6872-L6899L6901L6904L6907-L6917L6919-L6932L6935-L6943L6945L6948-L6958L6960-L6973L6976-L6984L6986L6989-L6999L7001-L7013L7015-L7017L7020-L7047L7049L7052L7055-L7065L7067-L7079L7081-L7083L7086-L7113L7115L7118L7121-L7131L7133-L7146L7149-L7176L7178L7181L7184-L7194L7196-L7209L7212-L7239L7241L7244L7247-L7257L7259-L7271L7273-L7275L7278-L7295L7297L7300L7303-L7313L7315-L7327L7329-L7331L7334-L7342L7344L7347-L7357L7359-L7372L7375-L7383L7385L7388-L7398L7400-L7413L7416-L7424L7426L7429-L7439L7441-L7454L7457-L7476L7478L7481-L7485L7487-L7492L7495-L7505L7507-L7520L7523-L7550L7552L7555L7558-L7568L7570-L7583L7586-L7613L7615L7618L7621-L7631L7633-L7646L7649-L7664L7666L7669-L7673L7675-L7680L7683-L7693L7695-L7708L7711-L7726L7728L7731L7734-L7744L7746-L7759L7762-L7789L7791L7794L7797-L7807L7809-L7822L7825-L7833L7835L7842-L7847L7849-L7853L7855-L7882L7886L7893-L7905L7909-L7921L7931-L8018L8021-L8024L8026-L8035L8037L8042-L8074L8077-L8080L8082-L8091L8093L8098-L8134L8136-L8140L8143-L8155L8158-L8159L8162-L8164L8167-L8170L8172-L8181L8183L8188-L8254L8257-L8260L8262-L8271L8273L8278-L8308L8311-L8314L8316-L8325L8327L8332-L8356L8358-L8362L8365-L8367L8370-L8378L8380-L8381L8384-L8386L8389-L8397L8399-L8400L8403-L8405L8408-L8416L8418-L8422L8425-L8427L8430-L8438L8440-L8444L8447-L8449L8452-L8460L8462-L8466L8469-L8471L8474-L8482L8484-L8485L8488-L8490L8493-L8501L8503-L8507L8510-L8512L8515-L8523L8525-L8529L8532-L8534L8537-L8545L8547-L8548L8551-L8553L8556-L8564L8566-L8570L8573-L8575L8578-L8588L8591-L8594L8596-L8605L8607L8612-L8672L8675-L8678L8680-L8689L8691L8696-L8721L8724-L8727L8729-L8738L8740L8745-L8781L8783-L8787L8790-L8802L8805-L8806L8809-L8811L8814-L8817L8819-L8828L8830L8835-L8871L8873-L8877L8880-L8892L8895-L8896L8899-L8907L8909-L8913L8916-L8928L8931-L8932L8935-L8937L8940-L8943L8945-L8954L8956L8961-L8992L8994-L8998L9001-L9013L9016-L9017L9020-L9033L9036-L9039L9041-L9050L9052L9057-L9074L9077-L9080L9082-L9091L9093L9098-L9115L9118-L9121L9123-L9132L9134L9139-L9171L9174-L9177L9179-L9188L9190L9195-L9219L9222-L9225L9227-L9236L9238L9243-L9277L9280-L9283L9285-L9294L9296L9301-L9325L9328-L9331L9333-L9342L9344L9349-L9380L9383-L9386L9388-L9397L9399L9404-L9437L9440-L9443L9445-L9454L9456L9463-L9466L9468-L9473L9475L9478-L9497L9499-L9502L9504-L9508L9511-L9516L9519L9522-L9527L9529L9532-L9535L9537-L9542L9544L9547-L9550L9552-L9557L9559L9562-L9581L9583-L9586L9588-L9592L9595-L9600L9603L9606-L9611L9613L9616-L9635L9637-L9640L9642-L9646L9649-L9654L9657L9660-L9665L9667L9670-L9674L9676-L9678L9680-L9699L9701-L9704L9706-L9710L9713-L9718L9721L9724-L9729L9731L9734-L9736L9738-L9743L9745L9748-L9767L9769-L9772L9774-L9778L9781-L9786L9789L9792-L9797L9799L9802-L9805L9807-L9812L9814L9817-L9829L9831L9834-L9838L9840-L9843L9846L9849-L9852L9854-L9859L9861L9864-L9867L9869-L9888L9890-L9893L9895-L9899L9902-L9907L9910L9913-L9918L9920L9923-L9925L9927-L9932L9934L9937-L9941L9943-L9945L9947-L9959L9961L9964-L9983L9985-L9988L9990-L9994L9997-L10002L10005L10008-L10013L10015L10018-L10023L10025L10028-L10047L10049-L10052L10054-L10058L10061-L10066L10069L10072-L10074L10076-L10081L10083L10086-L10088L10090-L10109L10111-L10114L10116-L10120L10123-L10128L10131L10134-L10137L10139-L10144L10146L10149-L10161L10163L10166-L10185L10187-L10190L10192-L10196L10199-L10204L10207L10210-L10212L10214-L10216L10218-L10220L10222-L10241L10243-L10246L10248-L10252L10255-L10260L10263L10266-L10268L10270-L10289L10291-L10294L10296-L10300L10303-L10308L10311L10314-L10319L10321L10324-L10327L10329-L10334L10336L10339-L10345L10348-L10352L10355-L10358L10360-L10363L10365-L10370L10373-L10378L10381-L10387L10390-L10394L10397-L10401L10404-L10409L10412-L10417L10420-L10424L10427-L10431L10434-L10449L10451L10454-L10461L10463-L10466L10469L10472-L10477L10480-L10485L10488-L10493L10496-L10501L10504-L10508L10511-L10533L10535-L10538L10540-L10544L10547-L10552L10555L10558-L10580L10582-L10585L10587-L10591L10594-L10599L10602L10605-L10627L10629-L10632L10634-L10638L10641-L10646L10649L10652-L10656L10659-L10681L10683-L10686L10688-L10692L10695-L10700L10703L10706-L10710
1 // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
2
3 package api
4
5 import (
6 "bytes"
7 "context"
8 "errors"
9 "fmt"
10 "strconv"
11 "sync"
12 "sync/atomic"
13 "time"
14
15 "github.com/99designs/gqlgen/graphql"
16 "github.com/99designs/gqlgen/graphql/introspection"
17 gqlparser "github.com/vektah/gqlparser/v2"
18 "github.com/vektah/gqlparser/v2/ast"
19 model1 "sourcecraft.dev/bigbes/sr-ht-core/model"
20 "sourcecraft.dev/bigbes/sr-ht-spec/graph/model"
21 )
22
23 // region ************************** generated!.gotpl **************************
24
25 // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
26 0 func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
27 0 return &executableSchema{
28 0 resolvers: cfg.Resolvers,
29 0 directives: cfg.Directives,
30 0 complexity: cfg.Complexity,
31 0 }
32 0 }
33
34 type Config struct {
35 Resolvers ResolverRoot
36 Directives DirectiveRoot
37 Complexity ComplexityRoot
38 }
39
40 type ResolverRoot interface {
41 Mutation() MutationResolver
42 Project() ProjectResolver
43 Query() QueryResolver
44 Space() SpaceResolver
45 UserWebhookSubscription() UserWebhookSubscriptionResolver
46 WebhookDelivery() WebhookDeliveryResolver
47 }
48
49 type DirectiveRoot struct {
50 }
51
52 type ComplexityRoot struct {
53 Document struct {
54 Blob func(childComplexity int) int
55 DocID func(childComplexity int) int
56 ID func(childComplexity int) int
57 Markdown func(childComplexity int) int
58 Owners func(childComplexity int) int
59 Path func(childComplexity int) int
60 Pinned func(childComplexity int) int
61 Rev func(childComplexity int) int
62 Section func(childComplexity int) int
63 Space func(childComplexity int) int
64 Status func(childComplexity int) int
65 Summary func(childComplexity int) int
66 Supersedes func(childComplexity int) int
67 Tags func(childComplexity int) int
68 Title func(childComplexity int) int
69 Type func(childComplexity int) int
70 }
71
72 Mutation struct {
73 CreateUserWebhook func(childComplexity int, config model.UserWebhookInput) int
74 DeleteUserWebhook func(childComplexity int, id int) int
75 }
76
77 Project struct {
78 Meta func(childComplexity int) int
79 Name func(childComplexity int) int
80 Owner func(childComplexity int) int
81 Ref func(childComplexity int) int
82 Spaces func(childComplexity int) int
83 }
84
85 Proposal struct {
86 Agent func(childComplexity int) int
87 AgentSession func(childComplexity int) int
88 Approval func(childComplexity int) int
89 BaseRev func(childComplexity int) int
90 Branch func(childComplexity int) int
91 Created func(childComplexity int) int
92 ID func(childComplexity int) int
93 MergedRev func(childComplexity int) int
94 Rationale func(childComplexity int) int
95 Resolved func(childComplexity int) int
96 Space func(childComplexity int) int
97 State func(childComplexity int) int
98 Title func(childComplexity int) int
99 }
100
101 ProposalEvent struct {
102 Date func(childComplexity int) int
103 Event func(childComplexity int) int
104 Proposal func(childComplexity int) int
105 UUID func(childComplexity int) int
106 }
107
108 Query struct {
109 Document func(childComplexity int, space string, id *string, path *string, rev *string) int
110 Documents func(childComplexity int, space string, rev *string) int
111 Project func(childComplexity int, owner string, name string) int
112 Projects func(childComplexity int) int
113 Proposals func(childComplexity int, space string, state model.ProposalState) int
114 Search func(childComplexity int, query string, spaces []string, limit *int, offset *int) int
115 Space func(childComplexity int, owner string, name string) int
116 Spaces func(childComplexity int) int
117 UserWebhook func(childComplexity int, id int) int
118 UserWebhooks func(childComplexity int, cursor *model1.Cursor) int
119 Webhook func(childComplexity int) int
120 }
121
122 SearchHit struct {
123 Anchor func(childComplexity int) int
124 ID func(childComplexity int) int
125 Lang func(childComplexity int) int
126 Path func(childComplexity int) int
127 Rev func(childComplexity int) int
128 Score func(childComplexity int) int
129 Section func(childComplexity int) int
130 Snippet func(childComplexity int) int
131 Space func(childComplexity int) int
132 Title func(childComplexity int) int
133 }
134
135 SearchResults struct {
136 Hits func(childComplexity int) int
137 Took func(childComplexity int) int
138 Total func(childComplexity int) int
139 }
140
141 Space struct {
142 ApprovedRev func(childComplexity int) int
143 Created func(childComplexity int) int
144 Name func(childComplexity int) int
145 Owner func(childComplexity int) int
146 Ref func(childComplexity int) int
147 }
148
149 UserWebhookSubscription struct {
150 Deliveries func(childComplexity int, cursor *model1.Cursor) int
151 Events func(childComplexity int) int
152 ID func(childComplexity int) int
153 Query func(childComplexity int) int
154 Sample func(childComplexity int, event model.WebhookEvent) int
155 URL func(childComplexity int) int
156 }
157
158 WebhookDelivery struct {
159 Date func(childComplexity int) int
160 Event func(childComplexity int) int
161 RequestBody func(childComplexity int) int
162 ResponseBody func(childComplexity int) int
163 ResponseHeaders func(childComplexity int) int
164 ResponseStatus func(childComplexity int) int
165 Subscription func(childComplexity int) int
166 UUID func(childComplexity int) int
167 }
168
169 WebhookDeliveryCursor struct {
170 Cursor func(childComplexity int) int
171 Results func(childComplexity int) int
172 }
173
174 WebhookSubscriptionCursor struct {
175 Cursor func(childComplexity int) int
176 Results func(childComplexity int) int
177 }
178 }
179
180 type MutationResolver interface {
181 CreateUserWebhook(ctx context.Context, config model.UserWebhookInput) (model.WebhookSubscription, error)
182 DeleteUserWebhook(ctx context.Context, id int) (model.WebhookSubscription, error)
183 }
184 type ProjectResolver interface {
185 Spaces(ctx context.Context, obj *model.Project) ([]*model.Space, error)
186 }
187 type QueryResolver interface {
188 Spaces(ctx context.Context) ([]*model.Space, error)
189 Space(ctx context.Context, owner string, name string) (*model.Space, error)
190 Document(ctx context.Context, space string, id *string, path *string, rev *string) (*model.Document, error)
191 Documents(ctx context.Context, space string, rev *string) ([]*model.Document, error)
192 Search(ctx context.Context, query string, spaces []string, limit *int, offset *int) (*model.SearchResults, error)
193 Projects(ctx context.Context) ([]*model.Project, error)
194 Project(ctx context.Context, owner string, name string) (*model.Project, error)
195 Proposals(ctx context.Context, space string, state model.ProposalState) ([]*model.Proposal, error)
196 UserWebhooks(ctx context.Context, cursor *model1.Cursor) (*model.WebhookSubscriptionCursor, error)
197 UserWebhook(ctx context.Context, id int) (model.WebhookSubscription, error)
198 Webhook(ctx context.Context) (model.WebhookPayload, error)
199 }
200 type SpaceResolver interface {
201 ApprovedRev(ctx context.Context, obj *model.Space) (string, error)
202 }
203 type UserWebhookSubscriptionResolver interface {
204 Deliveries(ctx context.Context, obj *model.UserWebhookSubscription, cursor *model1.Cursor) (*model.WebhookDeliveryCursor, error)
205 Sample(ctx context.Context, obj *model.UserWebhookSubscription, event model.WebhookEvent) (string, error)
206 }
207 type WebhookDeliveryResolver interface {
208 Subscription(ctx context.Context, obj *model.WebhookDelivery) (model.WebhookSubscription, error)
209 }
210
211 type executableSchema struct {
212 resolvers ResolverRoot
213 directives DirectiveRoot
214 complexity ComplexityRoot
215 }
216
217 0 func (e *executableSchema) Schema() *ast.Schema {
218 0 return parsedSchema
219 0 }
220
221 0 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
222 0 ec := executionContext{nil, e, 0, 0, nil}
223 0 _ = ec
224 0 switch typeName + "." + field {
225
226 0 case "Document.blob":
227 0 if e.complexity.Document.Blob == nil {
228 0 break
229 }
230
231 0 return e.complexity.Document.Blob(childComplexity), true
232
233 0 case "Document.docId":
234 0 if e.complexity.Document.DocID == nil {
235 0 break
236 }
237
238 0 return e.complexity.Document.DocID(childComplexity), true
239
240 0 case "Document.id":
241 0 if e.complexity.Document.ID == nil {
242 0 break
243 }
244
245 0 return e.complexity.Document.ID(childComplexity), true
246
247 0 case "Document.markdown":
248 0 if e.complexity.Document.Markdown == nil {
249 0 break
250 }
251
252 0 return e.complexity.Document.Markdown(childComplexity), true
253
254 0 case "Document.owners":
255 0 if e.complexity.Document.Owners == nil {
256 0 break
257 }
258
259 0 return e.complexity.Document.Owners(childComplexity), true
260
261 0 case "Document.path":
262 0 if e.complexity.Document.Path == nil {
263 0 break
264 }
265
266 0 return e.complexity.Document.Path(childComplexity), true
267
268 0 case "Document.pinned":
269 0 if e.complexity.Document.Pinned == nil {
270 0 break
271 }
272
273 0 return e.complexity.Document.Pinned(childComplexity), true
274
275 0 case "Document.rev":
276 0 if e.complexity.Document.Rev == nil {
277 0 break
278 }
279
280 0 return e.complexity.Document.Rev(childComplexity), true
281
282 0 case "Document.section":
283 0 if e.complexity.Document.Section == nil {
284 0 break
285 }
286
287 0 return e.complexity.Document.Section(childComplexity), true
288
289 0 case "Document.space":
290 0 if e.complexity.Document.Space == nil {
291 0 break
292 }
293
294 0 return e.complexity.Document.Space(childComplexity), true
295
296 0 case "Document.status":
297 0 if e.complexity.Document.Status == nil {
298 0 break
299 }
300
301 0 return e.complexity.Document.Status(childComplexity), true
302
303 0 case "Document.summary":
304 0 if e.complexity.Document.Summary == nil {
305 0 break
306 }
307
308 0 return e.complexity.Document.Summary(childComplexity), true
309
310 0 case "Document.supersedes":
311 0 if e.complexity.Document.Supersedes == nil {
312 0 break
313 }
314
315 0 return e.complexity.Document.Supersedes(childComplexity), true
316
317 0 case "Document.tags":
318 0 if e.complexity.Document.Tags == nil {
319 0 break
320 }
321
322 0 return e.complexity.Document.Tags(childComplexity), true
323
324 0 case "Document.title":
325 0 if e.complexity.Document.Title == nil {
326 0 break
327 }
328
329 0 return e.complexity.Document.Title(childComplexity), true
330
331 0 case "Document.type":
332 0 if e.complexity.Document.Type == nil {
333 0 break
334 }
335
336 0 return e.complexity.Document.Type(childComplexity), true
337
338 0 case "Mutation.createUserWebhook":
339 0 if e.complexity.Mutation.CreateUserWebhook == nil {
340 0 break
341 }
342
343 0 args, err := ec.field_Mutation_createUserWebhook_args(context.TODO(), rawArgs)
344 0 if err != nil {
345 0 return 0, false
346 0 }
347
348 0 return e.complexity.Mutation.CreateUserWebhook(childComplexity, args["config"].(model.UserWebhookInput)), true
349
350 0 case "Mutation.deleteUserWebhook":
351 0 if e.complexity.Mutation.DeleteUserWebhook == nil {
352 0 break
353 }
354
355 0 args, err := ec.field_Mutation_deleteUserWebhook_args(context.TODO(), rawArgs)
356 0 if err != nil {
357 0 return 0, false
358 0 }
359
360 0 return e.complexity.Mutation.DeleteUserWebhook(childComplexity, args["id"].(int)), true
361
362 0 case "Project.meta":
363 0 if e.complexity.Project.Meta == nil {
364 0 break
365 }
366
367 0 return e.complexity.Project.Meta(childComplexity), true
368
369 0 case "Project.name":
370 0 if e.complexity.Project.Name == nil {
371 0 break
372 }
373
374 0 return e.complexity.Project.Name(childComplexity), true
375
376 0 case "Project.owner":
377 0 if e.complexity.Project.Owner == nil {
378 0 break
379 }
380
381 0 return e.complexity.Project.Owner(childComplexity), true
382
383 0 case "Project.ref":
384 0 if e.complexity.Project.Ref == nil {
385 0 break
386 }
387
388 0 return e.complexity.Project.Ref(childComplexity), true
389
390 0 case "Project.spaces":
391 0 if e.complexity.Project.Spaces == nil {
392 0 break
393 }
394
395 0 return e.complexity.Project.Spaces(childComplexity), true
396
397 0 case "Proposal.agent":
398 0 if e.complexity.Proposal.Agent == nil {
399 0 break
400 }
401
402 0 return e.complexity.Proposal.Agent(childComplexity), true
403
404 0 case "Proposal.agentSession":
405 0 if e.complexity.Proposal.AgentSession == nil {
406 0 break
407 }
408
409 0 return e.complexity.Proposal.AgentSession(childComplexity), true
410
411 0 case "Proposal.approval":
412 0 if e.complexity.Proposal.Approval == nil {
413 0 break
414 }
415
416 0 return e.complexity.Proposal.Approval(childComplexity), true
417
418 0 case "Proposal.baseRev":
419 0 if e.complexity.Proposal.BaseRev == nil {
420 0 break
421 }
422
423 0 return e.complexity.Proposal.BaseRev(childComplexity), true
424
425 0 case "Proposal.branch":
426 0 if e.complexity.Proposal.Branch == nil {
427 0 break
428 }
429
430 0 return e.complexity.Proposal.Branch(childComplexity), true
431
432 0 case "Proposal.created":
433 0 if e.complexity.Proposal.Created == nil {
434 0 break
435 }
436
437 0 return e.complexity.Proposal.Created(childComplexity), true
438
439 0 case "Proposal.id":
440 0 if e.complexity.Proposal.ID == nil {
441 0 break
442 }
443
444 0 return e.complexity.Proposal.ID(childComplexity), true
445
446 0 case "Proposal.mergedRev":
447 0 if e.complexity.Proposal.MergedRev == nil {
448 0 break
449 }
450
451 0 return e.complexity.Proposal.MergedRev(childComplexity), true
452
453 0 case "Proposal.rationale":
454 0 if e.complexity.Proposal.Rationale == nil {
455 0 break
456 }
457
458 0 return e.complexity.Proposal.Rationale(childComplexity), true
459
460 0 case "Proposal.resolved":
461 0 if e.complexity.Proposal.Resolved == nil {
462 0 break
463 }
464
465 0 return e.complexity.Proposal.Resolved(childComplexity), true
466
467 0 case "Proposal.space":
468 0 if e.complexity.Proposal.Space == nil {
469 0 break
470 }
471
472 0 return e.complexity.Proposal.Space(childComplexity), true
473
474 0 case "Proposal.state":
475 0 if e.complexity.Proposal.State == nil {
476 0 break
477 }
478
479 0 return e.complexity.Proposal.State(childComplexity), true
480
481 0 case "Proposal.title":
482 0 if e.complexity.Proposal.Title == nil {
483 0 break
484 }
485
486 0 return e.complexity.Proposal.Title(childComplexity), true
487
488 0 case "ProposalEvent.date":
489 0 if e.complexity.ProposalEvent.Date == nil {
490 0 break
491 }
492
493 0 return e.complexity.ProposalEvent.Date(childComplexity), true
494
495 0 case "ProposalEvent.event":
496 0 if e.complexity.ProposalEvent.Event == nil {
497 0 break
498 }
499
500 0 return e.complexity.ProposalEvent.Event(childComplexity), true
501
502 0 case "ProposalEvent.proposal":
503 0 if e.complexity.ProposalEvent.Proposal == nil {
504 0 break
505 }
506
507 0 return e.complexity.ProposalEvent.Proposal(childComplexity), true
508
509 0 case "ProposalEvent.uuid":
510 0 if e.complexity.ProposalEvent.UUID == nil {
511 0 break
512 }
513
514 0 return e.complexity.ProposalEvent.UUID(childComplexity), true
515
516 0 case "Query.document":
517 0 if e.complexity.Query.Document == nil {
518 0 break
519 }
520
521 0 args, err := ec.field_Query_document_args(context.TODO(), rawArgs)
522 0 if err != nil {
523 0 return 0, false
524 0 }
525
526 0 return e.complexity.Query.Document(childComplexity, args["space"].(string), args["id"].(*string), args["path"].(*string), args["rev"].(*string)), true
527
528 0 case "Query.documents":
529 0 if e.complexity.Query.Documents == nil {
530 0 break
531 }
532
533 0 args, err := ec.field_Query_documents_args(context.TODO(), rawArgs)
534 0 if err != nil {
535 0 return 0, false
536 0 }
537
538 0 return e.complexity.Query.Documents(childComplexity, args["space"].(string), args["rev"].(*string)), true
539
540 0 case "Query.project":
541 0 if e.complexity.Query.Project == nil {
542 0 break
543 }
544
545 0 args, err := ec.field_Query_project_args(context.TODO(), rawArgs)
546 0 if err != nil {
547 0 return 0, false
548 0 }
549
550 0 return e.complexity.Query.Project(childComplexity, args["owner"].(string), args["name"].(string)), true
551
552 0 case "Query.projects":
553 0 if e.complexity.Query.Projects == nil {
554 0 break
555 }
556
557 0 return e.complexity.Query.Projects(childComplexity), true
558
559 0 case "Query.proposals":
560 0 if e.complexity.Query.Proposals == nil {
561 0 break
562 }
563
564 0 args, err := ec.field_Query_proposals_args(context.TODO(), rawArgs)
565 0 if err != nil {
566 0 return 0, false
567 0 }
568
569 0 return e.complexity.Query.Proposals(childComplexity, args["space"].(string), args["state"].(model.ProposalState)), true
570
571 0 case "Query.search":
572 0 if e.complexity.Query.Search == nil {
573 0 break
574 }
575
576 0 args, err := ec.field_Query_search_args(context.TODO(), rawArgs)
577 0 if err != nil {
578 0 return 0, false
579 0 }
580
581 0 return e.complexity.Query.Search(childComplexity, args["query"].(string), args["spaces"].([]string), args["limit"].(*int), args["offset"].(*int)), true
582
583 0 case "Query.space":
584 0 if e.complexity.Query.Space == nil {
585 0 break
586 }
587
588 0 args, err := ec.field_Query_space_args(context.TODO(), rawArgs)
589 0 if err != nil {
590 0 return 0, false
591 0 }
592
593 0 return e.complexity.Query.Space(childComplexity, args["owner"].(string), args["name"].(string)), true
594
595 0 case "Query.spaces":
596 0 if e.complexity.Query.Spaces == nil {
597 0 break
598 }
599
600 0 return e.complexity.Query.Spaces(childComplexity), true
601
602 0 case "Query.userWebhook":
603 0 if e.complexity.Query.UserWebhook == nil {
604 0 break
605 }
606
607 0 args, err := ec.field_Query_userWebhook_args(context.TODO(), rawArgs)
608 0 if err != nil {
609 0 return 0, false
610 0 }
611
612 0 return e.complexity.Query.UserWebhook(childComplexity, args["id"].(int)), true
613
614 0 case "Query.userWebhooks":
615 0 if e.complexity.Query.UserWebhooks == nil {
616 0 break
617 }
618
619 0 args, err := ec.field_Query_userWebhooks_args(context.TODO(), rawArgs)
620 0 if err != nil {
621 0 return 0, false
622 0 }
623
624 0 return e.complexity.Query.UserWebhooks(childComplexity, args["cursor"].(*model1.Cursor)), true
625
626 0 case "Query.webhook":
627 0 if e.complexity.Query.Webhook == nil {
628 0 break
629 }
630
631 0 return e.complexity.Query.Webhook(childComplexity), true
632
633 0 case "SearchHit.anchor":
634 0 if e.complexity.SearchHit.Anchor == nil {
635 0 break
636 }
637
638 0 return e.complexity.SearchHit.Anchor(childComplexity), true
639
640 0 case "SearchHit.id":
641 0 if e.complexity.SearchHit.ID == nil {
642 0 break
643 }
644
645 0 return e.complexity.SearchHit.ID(childComplexity), true
646
647 0 case "SearchHit.lang":
648 0 if e.complexity.SearchHit.Lang == nil {
649 0 break
650 }
651
652 0 return e.complexity.SearchHit.Lang(childComplexity), true
653
654 0 case "SearchHit.path":
655 0 if e.complexity.SearchHit.Path == nil {
656 0 break
657 }
658
659 0 return e.complexity.SearchHit.Path(childComplexity), true
660
661 0 case "SearchHit.rev":
662 0 if e.complexity.SearchHit.Rev == nil {
663 0 break
664 }
665
666 0 return e.complexity.SearchHit.Rev(childComplexity), true
667
668 0 case "SearchHit.score":
669 0 if e.complexity.SearchHit.Score == nil {
670 0 break
671 }
672
673 0 return e.complexity.SearchHit.Score(childComplexity), true
674
675 0 case "SearchHit.section":
676 0 if e.complexity.SearchHit.Section == nil {
677 0 break
678 }
679
680 0 return e.complexity.SearchHit.Section(childComplexity), true
681
682 0 case "SearchHit.snippet":
683 0 if e.complexity.SearchHit.Snippet == nil {
684 0 break
685 }
686
687 0 return e.complexity.SearchHit.Snippet(childComplexity), true
688
689 0 case "SearchHit.space":
690 0 if e.complexity.SearchHit.Space == nil {
691 0 break
692 }
693
694 0 return e.complexity.SearchHit.Space(childComplexity), true
695
696 0 case "SearchHit.title":
697 0 if e.complexity.SearchHit.Title == nil {
698 0 break
699 }
700
701 0 return e.complexity.SearchHit.Title(childComplexity), true
702
703 0 case "SearchResults.hits":
704 0 if e.complexity.SearchResults.Hits == nil {
705 0 break
706 }
707
708 0 return e.complexity.SearchResults.Hits(childComplexity), true
709
710 0 case "SearchResults.took":
711 0 if e.complexity.SearchResults.Took == nil {
712 0 break
713 }
714
715 0 return e.complexity.SearchResults.Took(childComplexity), true
716
717 0 case "SearchResults.total":
718 0 if e.complexity.SearchResults.Total == nil {
719 0 break
720 }
721
722 0 return e.complexity.SearchResults.Total(childComplexity), true
723
724 0 case "Space.approvedRev":
725 0 if e.complexity.Space.ApprovedRev == nil {
726 0 break
727 }
728
729 0 return e.complexity.Space.ApprovedRev(childComplexity), true
730
731 0 case "Space.created":
732 0 if e.complexity.Space.Created == nil {
733 0 break
734 }
735
736 0 return e.complexity.Space.Created(childComplexity), true
737
738 0 case "Space.name":
739 0 if e.complexity.Space.Name == nil {
740 0 break
741 }
742
743 0 return e.complexity.Space.Name(childComplexity), true
744
745 0 case "Space.owner":
746 0 if e.complexity.Space.Owner == nil {
747 0 break
748 }
749
750 0 return e.complexity.Space.Owner(childComplexity), true
751
752 0 case "Space.ref":
753 0 if e.complexity.Space.Ref == nil {
754 0 break
755 }
756
757 0 return e.complexity.Space.Ref(childComplexity), true
758
759 0 case "UserWebhookSubscription.deliveries":
760 0 if e.complexity.UserWebhookSubscription.Deliveries == nil {
761 0 break
762 }
763
764 0 args, err := ec.field_UserWebhookSubscription_deliveries_args(context.TODO(), rawArgs)
765 0 if err != nil {
766 0 return 0, false
767 0 }
768
769 0 return e.complexity.UserWebhookSubscription.Deliveries(childComplexity, args["cursor"].(*model1.Cursor)), true
770
771 0 case "UserWebhookSubscription.events":
772 0 if e.complexity.UserWebhookSubscription.Events == nil {
773 0 break
774 }
775
776 0 return e.complexity.UserWebhookSubscription.Events(childComplexity), true
777
778 0 case "UserWebhookSubscription.id":
779 0 if e.complexity.UserWebhookSubscription.ID == nil {
780 0 break
781 }
782
783 0 return e.complexity.UserWebhookSubscription.ID(childComplexity), true
784
785 0 case "UserWebhookSubscription.query":
786 0 if e.complexity.UserWebhookSubscription.Query == nil {
787 0 break
788 }
789
790 0 return e.complexity.UserWebhookSubscription.Query(childComplexity), true
791
792 0 case "UserWebhookSubscription.sample":
793 0 if e.complexity.UserWebhookSubscription.Sample == nil {
794 0 break
795 }
796
797 0 args, err := ec.field_UserWebhookSubscription_sample_args(context.TODO(), rawArgs)
798 0 if err != nil {
799 0 return 0, false
800 0 }
801
802 0 return e.complexity.UserWebhookSubscription.Sample(childComplexity, args["event"].(model.WebhookEvent)), true
803
804 0 case "UserWebhookSubscription.url":
805 0 if e.complexity.UserWebhookSubscription.URL == nil {
806 0 break
807 }
808
809 0 return e.complexity.UserWebhookSubscription.URL(childComplexity), true
810
811 0 case "WebhookDelivery.date":
812 0 if e.complexity.WebhookDelivery.Date == nil {
813 0 break
814 }
815
816 0 return e.complexity.WebhookDelivery.Date(childComplexity), true
817
818 0 case "WebhookDelivery.event":
819 0 if e.complexity.WebhookDelivery.Event == nil {
820 0 break
821 }
822
823 0 return e.complexity.WebhookDelivery.Event(childComplexity), true
824
825 0 case "WebhookDelivery.requestBody":
826 0 if e.complexity.WebhookDelivery.RequestBody == nil {
827 0 break
828 }
829
830 0 return e.complexity.WebhookDelivery.RequestBody(childComplexity), true
831
832 0 case "WebhookDelivery.responseBody":
833 0 if e.complexity.WebhookDelivery.ResponseBody == nil {
834 0 break
835 }
836
837 0 return e.complexity.WebhookDelivery.ResponseBody(childComplexity), true
838
839 0 case "WebhookDelivery.responseHeaders":
840 0 if e.complexity.WebhookDelivery.ResponseHeaders == nil {
841 0 break
842 }
843
844 0 return e.complexity.WebhookDelivery.ResponseHeaders(childComplexity), true
845
846 0 case "WebhookDelivery.responseStatus":
847 0 if e.complexity.WebhookDelivery.ResponseStatus == nil {
848 0 break
849 }
850
851 0 return e.complexity.WebhookDelivery.ResponseStatus(childComplexity), true
852
853 0 case "WebhookDelivery.subscription":
854 0 if e.complexity.WebhookDelivery.Subscription == nil {
855 0 break
856 }
857
858 0 return e.complexity.WebhookDelivery.Subscription(childComplexity), true
859
860 0 case "WebhookDelivery.uuid":
861 0 if e.complexity.WebhookDelivery.UUID == nil {
862 0 break
863 }
864
865 0 return e.complexity.WebhookDelivery.UUID(childComplexity), true
866
867 0 case "WebhookDeliveryCursor.cursor":
868 0 if e.complexity.WebhookDeliveryCursor.Cursor == nil {
869 0 break
870 }
871
872 0 return e.complexity.WebhookDeliveryCursor.Cursor(childComplexity), true
873
874 0 case "WebhookDeliveryCursor.results":
875 0 if e.complexity.WebhookDeliveryCursor.Results == nil {
876 0 break
877 }
878
879 0 return e.complexity.WebhookDeliveryCursor.Results(childComplexity), true
880
881 0 case "WebhookSubscriptionCursor.cursor":
882 0 if e.complexity.WebhookSubscriptionCursor.Cursor == nil {
883 0 break
884 }
885
886 0 return e.complexity.WebhookSubscriptionCursor.Cursor(childComplexity), true
887
888 0 case "WebhookSubscriptionCursor.results":
889 0 if e.complexity.WebhookSubscriptionCursor.Results == nil {
890 0 break
891 }
892
893 0 return e.complexity.WebhookSubscriptionCursor.Results(childComplexity), true
894
895 }
896 0 return 0, false
897 }
898
899 0 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
900 0 rc := graphql.GetOperationContext(ctx)
901 0 ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)}
902 0 inputUnmarshalMap := graphql.BuildUnmarshalerMap(
903 0 ec.unmarshalInputUserWebhookInput,
904 0 )
905 0 first := true
906 0
907 0 switch rc.Operation.Operation {
908 0 case ast.Query:
909 0 return func(ctx context.Context) *graphql.Response {
910 0 var response graphql.Response
911 0 var data graphql.Marshaler
912 0 if first {
913 0 first = false
914 0 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
915 0 data = ec._Query(ctx, rc.Operation.SelectionSet)
916 0 } else {
917 0 if atomic.LoadInt32(&ec.pendingDeferred) > 0 {
918 0 result := <-ec.deferredResults
919 0 atomic.AddInt32(&ec.pendingDeferred, -1)
920 0 data = result.Result
921 0 response.Path = result.Path
922 0 response.Label = result.Label
923 0 response.Errors = result.Errors
924 0 } else {
925 0 return nil
926 0 }
927 }
928 0 var buf bytes.Buffer
929 0 data.MarshalGQL(&buf)
930 0 response.Data = buf.Bytes()
931 0 if atomic.LoadInt32(&ec.deferred) > 0 {
932 0 hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0
933 0 response.HasNext = &hasNext
934 0 }
935
936 0 return &response
937 }
938 0 case ast.Mutation:
939 0 return func(ctx context.Context) *graphql.Response {
940 0 if !first {
941 0 return nil
942 0 }
943 0 first = false
944 0 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
945 0 data := ec._Mutation(ctx, rc.Operation.SelectionSet)
946 0 var buf bytes.Buffer
947 0 data.MarshalGQL(&buf)
948 0
949 0 return &graphql.Response{
950 0 Data: buf.Bytes(),
951 0 }
952 }
953
954 0 default:
955 0 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
956 }
957 }
958
959 type executionContext struct {
960 *graphql.OperationContext
961 *executableSchema
962 deferred int32
963 pendingDeferred int32
964 deferredResults chan graphql.DeferredResult
965 }
966
967 0 func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) {
968 0 atomic.AddInt32(&ec.pendingDeferred, 1)
969 0 go func() {
970 0 ctx := graphql.WithFreshResponseContext(dg.Context)
971 0 dg.FieldSet.Dispatch(ctx)
972 0 ds := graphql.DeferredResult{
973 0 Path: dg.Path,
974 0 Label: dg.Label,
975 0 Result: dg.FieldSet,
976 0 Errors: graphql.GetErrors(ctx),
977 0 }
978 0 // null fields should bubble up
979 0 if dg.FieldSet.Invalids > 0 {
980 0 ds.Result = graphql.Null
981 0 }
982 0 ec.deferredResults <- ds
983 }()
984 }
985
986 0 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
987 0 if ec.DisableIntrospection {
988 0 return nil, errors.New("introspection disabled")
989 0 }
990 0 return introspection.WrapSchema(parsedSchema), nil
991 }
992
993 0 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
994 0 if ec.DisableIntrospection {
995 0 return nil, errors.New("introspection disabled")
996 0 }
997 0 return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
998 }
999
1000 var sources = []*ast.Source{
1001 {Name: "../schema.graphqls", Input: `# spec.sr.ht — the read schema.
1002 #
1003 # There are no mutations here and that is the design's decision, not an
1004 # omission: the write plane's concurrency story is ` + "`" + `If-Match: <base-rev>` + "`" + `, an
1005 # HTTP idiom with well-defined 409 semantics that agents get right by default,
1006 # and modelling base-rev as a mutation argument is a contract worth designing
1007 # once, after the proposal state machine has stopped moving. Federated types are
1008 # consumed contracts, so churning the proposal types here would be expensive.
1009 #
1010 # Everything this schema serves goes through service/ — the same functions the
1011 # REST, MCP and web surfaces call — so the three agent-facing surfaces cannot
1012 # disagree about what a document is or which revision is approved.
1013
1014 """
1015 An RFC-3339 timestamp.
1016 """
1017 scalar Time
1018
1019 """
1020 An opaque pagination cursor. Passed back into the same field to fetch the next
1021 page; null when there are no further results.
1022 """
1023 scalar Cursor
1024
1025 """
1026 The lifecycle of a proposal. Collapsed from the usual five states because there
1027 is exactly one reviewer: "approve" is "merge now", and a proposal you dislike is
1028 rejected rather than sent back for changes.
1029 """
1030 enum ProposalState {
1031 OPEN
1032 MERGED
1033 REJECTED
1034 }
1035
1036 """
1037 How a merge was authorized. Auto-merged is not human-approved, and readers must
1038 be able to tell: a bot asking for the approved text of a spec should be able to
1039 require human approval and get a different answer than for a firehose note.
1040 """
1041 enum Approval {
1042 HUMAN
1043 POLICY
1044 }
1045
1046 type Query {
1047 """
1048 Every space on the instance, ordered by owner then name. There is one human
1049 here and no visibility levels, so there is nothing to filter: the list is the
1050 whole corpus.
1051 """
1052 spaces: [Space!]!
1053
1054 """
1055 One space by reference. ` + "`" + `owner` + "`" + ` carries no leading '~' — that is routing
1056 decoration, never part of the stored name. Null when there is no such space.
1057 """
1058 space(owner: String!, name: String!): Space
1059
1060 """
1061 One document of a space.
1062
1063 Exactly one of ` + "`" + `id` + "`" + ` and ` + "`" + `path` + "`" + ` must be given. ` + "`" + `id` + "`" + ` is the document's address
1064 under the design's rule: its frontmatter ` + "`" + `id:` + "`" + ` when that is well-formed and
1065 unique in the space, and otherwise its path without the ".md" extension. An id
1066 claimed by two documents resolves to neither — refusing to guess is the only
1067 safe answer, since silently picking one would make links point at a document
1068 the author did not mean.
1069
1070 ` + "`" + `rev` + "`" + ` pins the read to an immutable revision and must be a full 40-character
1071 object name; omit it to read the space's approved head, which is the default
1072 because serving drafts by default would poison every downstream agent context
1073 with unreviewed text. Ref names are refused, so there is no ` + "`" + `rev` + "`" + ` that makes
1074 this field serve an unreviewed proposal branch.
1075
1076 Null when the space, the revision or the document is absent.
1077 """
1078 document(space: String!, id: String, path: String, rev: String): Document
1079
1080 """
1081 Every document of a space at a revision, in tree order. ` + "`" + `rev` + "`" + ` follows the same
1082 rule as on ` + "`" + `document` + "`" + `.
1083 """
1084 documents(space: String!, rev: String): [Document!]!
1085
1086 """
1087 Keyword search over the one global index.
1088
1089 ` + "`" + `spaces` + "`" + ` is the project filter: a project is a saved filter over this index,
1090 not a container, so searching a project means passing its member spaces here.
1091
1092 Omitting the argument searches every space — that is the meta-project, a
1093 filter that excludes nothing. Passing a list searches exactly those spaces,
1094 and passing an *empty* list therefore searches nothing at all, which is what
1095 an empty project's membership means. The two are different arguments here on
1096 purpose: null and [] are distinct in GraphQL, so a client that resolved a
1097 project to zero spaces cannot be handed the whole corpus by accident.
1098
1099 An empty ` + "`" + `query` + "`" + ` returns no hits rather than every document: "search for
1100 nothing" is a caller that has not collected its input yet.
1101 """
1102 search(query: String!, spaces: [String!], limit: Int, offset: Int): SearchResults!
1103
1104 """
1105 Every stored project, ordered by owner then name. The meta-project is not in
1106 this list because it is not a row; it is an address that resolves to a filter,
1107 and ` + "`" + `project(owner: ..., name: "everything")` + "`" + ` returns it.
1108 """
1109 projects: [Project!]!
1110
1111 """
1112 One project by reference. ` + "`" + `name` + "`" + ` carries no leading '+'. Null when there is no
1113 such project.
1114 """
1115 project(owner: String!, name: String!): Project
1116
1117 """
1118 A space's proposals in one state, newest first.
1119
1120 ` + "`" + `state` + "`" + ` is required. The proposal store lists by state, and an optional
1121 argument would need an "every state" meaning for its absent case — the same
1122 empty-means-everything polarity this schema refuses on ` + "`" + `search(spaces:)` + "`" + `. Ask
1123 for the states you want, with aliases if you want more than one.
1124
1125 This is a read: opening, merging and rejecting proposals are write-plane
1126 operations and live on REST and MCP.
1127 """
1128 proposals(space: String!, state: ProposalState!): [Proposal!]!
1129 }
1130
1131 """
1132 A space: one bare git repository, addressed ` + "`" + `~owner/name` + "`" + `. It is the unit of
1133 ownership, ACL and review policy.
1134 """
1135 type Space {
1136 """The owning user, with no leading '~'."""
1137 owner: String!
1138 name: String!
1139 """The canonical reference, "~owner/name"."""
1140 ref: String!
1141 created: Time!
1142 """
1143 The current tip of the approved branch, as a full object name. This is the
1144 value to pin a later read to, and the value the write plane takes as
1145 ` + "`" + `If-Match` + "`" + `. Resolving it opens the space's repository, so it is only paid for
1146 when it is asked for.
1147 """
1148 approvedRev: String!
1149 }
1150
1151 """
1152 A markdown document with YAML frontmatter, at one revision. A document reachable
1153 from the approved ref is approved: approval is a property of the branch, never
1154 of the frontmatter, which is why there is no "approved" field here and no
1155 "approved" value in ` + "`" + `status` + "`" + `.
1156 """
1157 type Document {
1158 """The space this document belongs to, "~owner/name"."""
1159 space: String!
1160 """
1161 How this document is addressed: its frontmatter id when that is well-formed
1162 and unique in the space, and its path without the extension otherwise.
1163 """
1164 id: String!
1165 """
1166 The frontmatter ` + "`" + `id:` + "`" + `, when the document has a well-formed one. Null when it
1167 is absent or malformed.
1168
1169 It is not always the same as ` + "`" + `id` + "`" + `: an id two documents claim resolves to
1170 neither of them, so ` + "`" + `id` + "`" + ` falls back to the path there as well. ` + "`" + `id != docId` + "`" + `
1171 is precisely the set of documents that cannot be addressed by their id, which
1172 is what an agent about to propose an edit needs to know.
1173 """
1174 docId: String
1175 """The document's path in the tree, extension included."""
1176 path: String!
1177 """The commit this content was read at. Immutable: pass it back as ` + "`" + `rev` + "`" + `."""
1178 rev: String!
1179 """The sha of this document's content. Changes only when the content does."""
1180 blob: String!
1181 """
1182 Whether the caller named the revision. False means this is the approved head
1183 as of this call — the reviewed, canonical text.
1184 """
1185 pinned: Boolean!
1186 """
1187 The document's title: its frontmatter ` + "`" + `title:` + "`" + `, then its first ` + "`" + `# heading` + "`" + `,
1188 then its file name. Never empty — the chain is what keeps an untitled document
1189 nameable rather than reported as blank.
1190 """
1191 title: String!
1192 """
1193 The authored lifecycle marker (draft, review, superseded). It is not approval
1194 state. Empty when the frontmatter does not carry the key.
1195 """
1196 status: String!
1197 """The top-level directory the document lives under ("specs", "notes")."""
1198 section: String!
1199 """Authored metadata. Empty when the frontmatter does not carry the key."""
1200 summary: String!
1201 type: String!
1202 supersedes: String!
1203 tags: [String!]!
1204 owners: [String!]!
1205 """The whole document, frontmatter included, exactly as stored."""
1206 markdown: String!
1207 }
1208
1209 """
1210 A project: a named set of spaces sharing one search scope, one MCP view and one
1211 wikilink namespace.
1212
1213 A project is pure metadata — a saved filter, not a container. It owns no index
1214 and no storage, which is why it has no revision and no documents of its own.
1215 """
1216 type Project {
1217 """The owning user, with no leading '~'."""
1218 owner: String!
1219 """The project name, with no leading '+'."""
1220 name: String!
1221 """The canonical reference, "~owner/+name"."""
1222 ref: String!
1223 """
1224 Whether this is the meta-project: the degenerate filter that excludes nothing.
1225 Its ` + "`" + `spaces` + "`" + ` is therefore every space as of this call rather than a stored
1226 membership — a snapshot, which is why a query restricted to a project should
1227 be built from the filter and not from a frozen list of names.
1228 """
1229 meta: Boolean!
1230 """
1231 The member spaces, ordered by owner then name. Empty for a project that
1232 selects nothing, which is what a project with no members means.
1233 """
1234 spaces: [Space!]!
1235 }
1236
1237 """One page of ranked hits."""
1238 type SearchResults {
1239 """How many documents matched, not how many were returned."""
1240 total: Int!
1241 """How long the query took, as a Go duration string."""
1242 took: String!
1243 hits: [SearchHit!]!
1244 }
1245
1246 """
1247 One ranked document. ` + "`" + `space` + "`" + `, ` + "`" + `path` + "`" + `, ` + "`" + `rev` + "`" + ` and ` + "`" + `anchor` + "`" + ` together are a pinned,
1248 immutable address for the result.
1249 """
1250 type SearchHit {
1251 space: String!
1252 """The document's address within its space, as ` + "`" + `Document.id` + "`" + ` reports it."""
1253 id: String!
1254 rev: String!
1255 path: String!
1256 """The heading anchor within ` + "`" + `path` + "`" + `, set for one entry of an activity log."""
1257 anchor: String!
1258 title: String!
1259 section: String!
1260 """The language the document was indexed as ("en", "ru")."""
1261 lang: String!
1262 score: Float!
1263 """
1264 A fragment of the matching text with the matched terms wrapped in ` + "`" + `<mark>` + "`" + `.
1265 Everything around them is HTML-escaped by the index, so this is HTML: render
1266 it as HTML or strip the tags, but do not escape it again.
1267 """
1268 snippet: String!
1269 }
1270
1271 """
1272 A bundle of document edits awaiting review: a branch ` + "`" + `proposals/<id>` + "`" + ` plus a
1273 row. Proposals are read-only here; they are opened over REST and MCP.
1274 """
1275 type Proposal {
1276 id: Int!
1277 """The space the proposal is against, "~owner/name"."""
1278 space: String!
1279 title: String!
1280 rationale: String!
1281 """
1282 The approved-head sha the agent had read when it opened the proposal. It does
1283 not move as the proposal accumulates edits.
1284 """
1285 baseRev: String!
1286 """The branch carrying the edits, "proposals/<id>"."""
1287 branch: String!
1288 state: ProposalState!
1289 """How the merge was authorized. Null until the proposal has merged."""
1290 approval: Approval
1291 """The merge commit. Null until the proposal has merged."""
1292 mergedRev: String
1293 """The agent identity that opened it, e.g. "claude-code/spec-writer"."""
1294 agent: String!
1295 """The agent's session id."""
1296 agentSession: String!
1297 created: Time!
1298 """When the proposal left the open state. Null while it is still open."""
1299 resolved: Time
1300 }
1301
1302 # --- Webhooks ---------------------------------------------------------------
1303 #
1304 # The GraphQL-native webhook surface, adapted from the core-go reference. spec is
1305 # single-owner: there are no OAuth clients and no @access scopes, so the
1306 # reference's ` + "`" + `client` + "`" + ` field and every directive are dropped. Webhook management
1307 # is owner-gated in the resolvers, which is the whole ACL.
1308
1309 """
1310 A proposal lifecycle event a webhook may subscribe to.
1311 """
1312 enum WebhookEvent {
1313 PROPOSAL_OPENED
1314 PROPOSAL_MERGED
1315 PROPOSAL_REJECTED
1316 }
1317
1318 """
1319 A webhook subscription: a URL and a GraphQL query evaluated in the webhook
1320 context when one of ` + "`" + `events` + "`" + ` fires.
1321 """
1322 interface WebhookSubscription {
1323 id: Int!
1324 events: [WebhookEvent!]!
1325 query: String!
1326 url: String!
1327
1328 "All deliveries which have been sent to this webhook."
1329 deliveries(cursor: Cursor): WebhookDeliveryCursor!
1330
1331 "Returns a sample payload for this subscription, for testing purposes."
1332 sample(event: WebhookEvent!): String!
1333 }
1334
1335 type UserWebhookSubscription implements WebhookSubscription {
1336 id: Int!
1337 events: [WebhookEvent!]!
1338 query: String!
1339 url: String!
1340 deliveries(cursor: Cursor): WebhookDeliveryCursor!
1341 sample(event: WebhookEvent!): String!
1342 }
1343
1344 type WebhookDelivery {
1345 uuid: String!
1346 date: Time!
1347 event: WebhookEvent!
1348 subscription: WebhookSubscription!
1349 requestBody: String!
1350
1351 """
1352 These details are provided only after a response is received from the
1353 remote server. If a response is sent whose Content-Type is not text/*, or
1354 cannot be decoded as UTF-8, the response body will be null. It will be
1355 truncated after 64 KiB.
1356 """
1357 responseBody: String
1358 responseHeaders: String
1359 responseStatus: Int
1360 }
1361
1362 """
1363 The payload delivered to a webhook: the event being dispatched, over which the
1364 subscription's ` + "`" + `query` + "`" + ` is evaluated.
1365 """
1366 interface WebhookPayload {
1367 uuid: String!
1368 event: WebhookEvent!
1369 date: Time!
1370 }
1371
1372 type ProposalEvent implements WebhookPayload {
1373 uuid: String!
1374 event: WebhookEvent!
1375 date: Time!
1376
1377 proposal: Proposal!
1378 }
1379
1380 """
1381 A cursor for enumerating a list of webhook deliveries.
1382
1383 If there are additional results available, the cursor object may be passed
1384 back into the same endpoint to retrieve another page. If the cursor is null,
1385 there are no remaining results to return.
1386 """
1387 type WebhookDeliveryCursor {
1388 results: [WebhookDelivery!]!
1389 cursor: Cursor
1390 }
1391
1392 """
1393 A cursor for enumerating a list of webhook subscriptions.
1394
1395 If there are additional results available, the cursor object may be passed
1396 back into the same endpoint to retrieve another page. If the cursor is null,
1397 there are no remaining results to return.
1398 """
1399 type WebhookSubscriptionCursor {
1400 results: [WebhookSubscription!]!
1401 cursor: Cursor
1402 }
1403
1404 extend type Query {
1405 "Returns a list of user webhook subscriptions."
1406 userWebhooks(cursor: Cursor): WebhookSubscriptionCursor!
1407
1408 "Returns details of a user webhook subscription by its ID."
1409 userWebhook(id: Int!): WebhookSubscription
1410
1411 """
1412 Returns information about the webhook currently being processed. This is not
1413 valid during normal queries over HTTP, and will return an error if used
1414 outside of a webhook context.
1415 """
1416 webhook: WebhookPayload!
1417 }
1418
1419 input UserWebhookInput {
1420 url: String!
1421 events: [WebhookEvent!]!
1422 query: String!
1423 }
1424
1425 type Mutation {
1426 """
1427 Creates a new user webhook subscription. When an event from the provided list
1428 of events occurs, the ` + "`" + `query` + "`" + ` parameter (a GraphQL query) will be evaluated
1429 and the results will be sent to the provided URL as the body of an HTTP POST
1430 request. The list of events must include at least one event.
1431
1432 This query is evaluated in the webhook context, such that query { webhook }
1433 may be used to access details of the event which triggered the webhook. The
1434 query may not make any mutations.
1435 """
1436 createUserWebhook(config: UserWebhookInput!): WebhookSubscription!
1437
1438 """
1439 Deletes a user webhook. Any events already queued may still be delivered
1440 after this request completes.
1441 """
1442 deleteUserWebhook(id: Int!): WebhookSubscription!
1443 }
1444 `, BuiltIn: false},
1445 }
1446 var parsedSchema = gqlparser.MustLoadSchema(sources...)
1447
1448 // endregion ************************** generated!.gotpl **************************
1449
1450 // region ***************************** args.gotpl *****************************
1451
1452 0 func (ec *executionContext) field_Mutation_createUserWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1453 0 var err error
1454 0 args := map[string]interface{}{}
1455 0 var arg0 model.UserWebhookInput
1456 0 if tmp, ok := rawArgs["config"]; ok {
1457 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("config"))
1458 0 arg0, err = ec.unmarshalNUserWebhookInput2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐUserWebhookInput(ctx, tmp)
1459 0 if err != nil {
1460 0 return nil, err
1461 0 }
1462 }
1463 0 args["config"] = arg0
1464 0 return args, nil
1465 }
1466
1467 0 func (ec *executionContext) field_Mutation_deleteUserWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1468 0 var err error
1469 0 args := map[string]interface{}{}
1470 0 var arg0 int
1471 0 if tmp, ok := rawArgs["id"]; ok {
1472 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
1473 0 arg0, err = ec.unmarshalNInt2int(ctx, tmp)
1474 0 if err != nil {
1475 0 return nil, err
1476 0 }
1477 }
1478 0 args["id"] = arg0
1479 0 return args, nil
1480 }
1481
1482 0 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1483 0 var err error
1484 0 args := map[string]interface{}{}
1485 0 var arg0 string
1486 0 if tmp, ok := rawArgs["name"]; ok {
1487 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
1488 0 arg0, err = ec.unmarshalNString2string(ctx, tmp)
1489 0 if err != nil {
1490 0 return nil, err
1491 0 }
1492 }
1493 0 args["name"] = arg0
1494 0 return args, nil
1495 }
1496
1497 0 func (ec *executionContext) field_Query_document_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1498 0 var err error
1499 0 args := map[string]interface{}{}
1500 0 var arg0 string
1501 0 if tmp, ok := rawArgs["space"]; ok {
1502 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("space"))
1503 0 arg0, err = ec.unmarshalNString2string(ctx, tmp)
1504 0 if err != nil {
1505 0 return nil, err
1506 0 }
1507 }
1508 0 args["space"] = arg0
1509 0 var arg1 *string
1510 0 if tmp, ok := rawArgs["id"]; ok {
1511 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
1512 0 arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
1513 0 if err != nil {
1514 0 return nil, err
1515 0 }
1516 }
1517 0 args["id"] = arg1
1518 0 var arg2 *string
1519 0 if tmp, ok := rawArgs["path"]; ok {
1520 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("path"))
1521 0 arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
1522 0 if err != nil {
1523 0 return nil, err
1524 0 }
1525 }
1526 0 args["path"] = arg2
1527 0 var arg3 *string
1528 0 if tmp, ok := rawArgs["rev"]; ok {
1529 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rev"))
1530 0 arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
1531 0 if err != nil {
1532 0 return nil, err
1533 0 }
1534 }
1535 0 args["rev"] = arg3
1536 0 return args, nil
1537 }
1538
1539 0 func (ec *executionContext) field_Query_documents_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1540 0 var err error
1541 0 args := map[string]interface{}{}
1542 0 var arg0 string
1543 0 if tmp, ok := rawArgs["space"]; ok {
1544 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("space"))
1545 0 arg0, err = ec.unmarshalNString2string(ctx, tmp)
1546 0 if err != nil {
1547 0 return nil, err
1548 0 }
1549 }
1550 0 args["space"] = arg0
1551 0 var arg1 *string
1552 0 if tmp, ok := rawArgs["rev"]; ok {
1553 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rev"))
1554 0 arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
1555 0 if err != nil {
1556 0 return nil, err
1557 0 }
1558 }
1559 0 args["rev"] = arg1
1560 0 return args, nil
1561 }
1562
1563 0 func (ec *executionContext) field_Query_project_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1564 0 var err error
1565 0 args := map[string]interface{}{}
1566 0 var arg0 string
1567 0 if tmp, ok := rawArgs["owner"]; ok {
1568 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("owner"))
1569 0 arg0, err = ec.unmarshalNString2string(ctx, tmp)
1570 0 if err != nil {
1571 0 return nil, err
1572 0 }
1573 }
1574 0 args["owner"] = arg0
1575 0 var arg1 string
1576 0 if tmp, ok := rawArgs["name"]; ok {
1577 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
1578 0 arg1, err = ec.unmarshalNString2string(ctx, tmp)
1579 0 if err != nil {
1580 0 return nil, err
1581 0 }
1582 }
1583 0 args["name"] = arg1
1584 0 return args, nil
1585 }
1586
1587 0 func (ec *executionContext) field_Query_proposals_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1588 0 var err error
1589 0 args := map[string]interface{}{}
1590 0 var arg0 string
1591 0 if tmp, ok := rawArgs["space"]; ok {
1592 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("space"))
1593 0 arg0, err = ec.unmarshalNString2string(ctx, tmp)
1594 0 if err != nil {
1595 0 return nil, err
1596 0 }
1597 }
1598 0 args["space"] = arg0
1599 0 var arg1 model.ProposalState
1600 0 if tmp, ok := rawArgs["state"]; ok {
1601 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state"))
1602 0 arg1, err = ec.unmarshalNProposalState2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProposalState(ctx, tmp)
1603 0 if err != nil {
1604 0 return nil, err
1605 0 }
1606 }
1607 0 args["state"] = arg1
1608 0 return args, nil
1609 }
1610
1611 0 func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1612 0 var err error
1613 0 args := map[string]interface{}{}
1614 0 var arg0 string
1615 0 if tmp, ok := rawArgs["query"]; ok {
1616 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
1617 0 arg0, err = ec.unmarshalNString2string(ctx, tmp)
1618 0 if err != nil {
1619 0 return nil, err
1620 0 }
1621 }
1622 0 args["query"] = arg0
1623 0 var arg1 []string
1624 0 if tmp, ok := rawArgs["spaces"]; ok {
1625 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spaces"))
1626 0 arg1, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp)
1627 0 if err != nil {
1628 0 return nil, err
1629 0 }
1630 }
1631 0 args["spaces"] = arg1
1632 0 var arg2 *int
1633 0 if tmp, ok := rawArgs["limit"]; ok {
1634 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit"))
1635 0 arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
1636 0 if err != nil {
1637 0 return nil, err
1638 0 }
1639 }
1640 0 args["limit"] = arg2
1641 0 var arg3 *int
1642 0 if tmp, ok := rawArgs["offset"]; ok {
1643 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("offset"))
1644 0 arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
1645 0 if err != nil {
1646 0 return nil, err
1647 0 }
1648 }
1649 0 args["offset"] = arg3
1650 0 return args, nil
1651 }
1652
1653 0 func (ec *executionContext) field_Query_space_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1654 0 var err error
1655 0 args := map[string]interface{}{}
1656 0 var arg0 string
1657 0 if tmp, ok := rawArgs["owner"]; ok {
1658 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("owner"))
1659 0 arg0, err = ec.unmarshalNString2string(ctx, tmp)
1660 0 if err != nil {
1661 0 return nil, err
1662 0 }
1663 }
1664 0 args["owner"] = arg0
1665 0 var arg1 string
1666 0 if tmp, ok := rawArgs["name"]; ok {
1667 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
1668 0 arg1, err = ec.unmarshalNString2string(ctx, tmp)
1669 0 if err != nil {
1670 0 return nil, err
1671 0 }
1672 }
1673 0 args["name"] = arg1
1674 0 return args, nil
1675 }
1676
1677 0 func (ec *executionContext) field_Query_userWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1678 0 var err error
1679 0 args := map[string]interface{}{}
1680 0 var arg0 int
1681 0 if tmp, ok := rawArgs["id"]; ok {
1682 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
1683 0 arg0, err = ec.unmarshalNInt2int(ctx, tmp)
1684 0 if err != nil {
1685 0 return nil, err
1686 0 }
1687 }
1688 0 args["id"] = arg0
1689 0 return args, nil
1690 }
1691
1692 0 func (ec *executionContext) field_Query_userWebhooks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1693 0 var err error
1694 0 args := map[string]interface{}{}
1695 0 var arg0 *model1.Cursor
1696 0 if tmp, ok := rawArgs["cursor"]; ok {
1697 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cursor"))
1698 0 arg0, err = ec.unmarshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx, tmp)
1699 0 if err != nil {
1700 0 return nil, err
1701 0 }
1702 }
1703 0 args["cursor"] = arg0
1704 0 return args, nil
1705 }
1706
1707 0 func (ec *executionContext) field_UserWebhookSubscription_deliveries_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1708 0 var err error
1709 0 args := map[string]interface{}{}
1710 0 var arg0 *model1.Cursor
1711 0 if tmp, ok := rawArgs["cursor"]; ok {
1712 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cursor"))
1713 0 arg0, err = ec.unmarshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx, tmp)
1714 0 if err != nil {
1715 0 return nil, err
1716 0 }
1717 }
1718 0 args["cursor"] = arg0
1719 0 return args, nil
1720 }
1721
1722 0 func (ec *executionContext) field_UserWebhookSubscription_sample_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1723 0 var err error
1724 0 args := map[string]interface{}{}
1725 0 var arg0 model.WebhookEvent
1726 0 if tmp, ok := rawArgs["event"]; ok {
1727 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("event"))
1728 0 arg0, err = ec.unmarshalNWebhookEvent2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEvent(ctx, tmp)
1729 0 if err != nil {
1730 0 return nil, err
1731 0 }
1732 }
1733 0 args["event"] = arg0
1734 0 return args, nil
1735 }
1736
1737 0 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1738 0 var err error
1739 0 args := map[string]interface{}{}
1740 0 var arg0 bool
1741 0 if tmp, ok := rawArgs["includeDeprecated"]; ok {
1742 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
1743 0 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
1744 0 if err != nil {
1745 0 return nil, err
1746 0 }
1747 }
1748 0 args["includeDeprecated"] = arg0
1749 0 return args, nil
1750 }
1751
1752 0 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
1753 0 var err error
1754 0 args := map[string]interface{}{}
1755 0 var arg0 bool
1756 0 if tmp, ok := rawArgs["includeDeprecated"]; ok {
1757 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
1758 0 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
1759 0 if err != nil {
1760 0 return nil, err
1761 0 }
1762 }
1763 0 args["includeDeprecated"] = arg0
1764 0 return args, nil
1765 }
1766
1767 // endregion ***************************** args.gotpl *****************************
1768
1769 // region ************************** directives.gotpl **************************
1770
1771 // endregion ************************** directives.gotpl **************************
1772
1773 // region **************************** field.gotpl *****************************
1774
1775 0 func (ec *executionContext) _Document_space(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
1776 0 fc, err := ec.fieldContext_Document_space(ctx, field)
1777 0 if err != nil {
1778 0 return graphql.Null
1779 0 }
1780 0 ctx = graphql.WithFieldContext(ctx, fc)
1781 0 defer func() {
1782 0 if r := recover(); r != nil {
1783 0 ec.Error(ctx, ec.Recover(ctx, r))
1784 0 ret = graphql.Null
1785 0 }
1786 }()
1787 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
1788 0 ctx = rctx // use context from middleware stack in children
1789 0 return obj.Space, nil
1790 0 })
1791 0 if err != nil {
1792 0 ec.Error(ctx, err)
1793 0 return graphql.Null
1794 0 }
1795 0 if resTmp == nil {
1796 0 if !graphql.HasFieldError(ctx, fc) {
1797 0 ec.Errorf(ctx, "must not be null")
1798 0 }
1799 0 return graphql.Null
1800 }
1801 0 res := resTmp.(string)
1802 0 fc.Result = res
1803 0 return ec.marshalNString2string(ctx, field.Selections, res)
1804 }
1805
1806 0 func (ec *executionContext) fieldContext_Document_space(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1807 0 fc = &graphql.FieldContext{
1808 0 Object: "Document",
1809 0 Field: field,
1810 0 IsMethod: false,
1811 0 IsResolver: false,
1812 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1813 0 return nil, errors.New("field of type String does not have child fields")
1814 0 },
1815 }
1816 0 return fc, nil
1817 }
1818
1819 0 func (ec *executionContext) _Document_id(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
1820 0 fc, err := ec.fieldContext_Document_id(ctx, field)
1821 0 if err != nil {
1822 0 return graphql.Null
1823 0 }
1824 0 ctx = graphql.WithFieldContext(ctx, fc)
1825 0 defer func() {
1826 0 if r := recover(); r != nil {
1827 0 ec.Error(ctx, ec.Recover(ctx, r))
1828 0 ret = graphql.Null
1829 0 }
1830 }()
1831 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
1832 0 ctx = rctx // use context from middleware stack in children
1833 0 return obj.ID, nil
1834 0 })
1835 0 if err != nil {
1836 0 ec.Error(ctx, err)
1837 0 return graphql.Null
1838 0 }
1839 0 if resTmp == nil {
1840 0 if !graphql.HasFieldError(ctx, fc) {
1841 0 ec.Errorf(ctx, "must not be null")
1842 0 }
1843 0 return graphql.Null
1844 }
1845 0 res := resTmp.(string)
1846 0 fc.Result = res
1847 0 return ec.marshalNString2string(ctx, field.Selections, res)
1848 }
1849
1850 0 func (ec *executionContext) fieldContext_Document_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1851 0 fc = &graphql.FieldContext{
1852 0 Object: "Document",
1853 0 Field: field,
1854 0 IsMethod: false,
1855 0 IsResolver: false,
1856 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1857 0 return nil, errors.New("field of type String does not have child fields")
1858 0 },
1859 }
1860 0 return fc, nil
1861 }
1862
1863 0 func (ec *executionContext) _Document_docId(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
1864 0 fc, err := ec.fieldContext_Document_docId(ctx, field)
1865 0 if err != nil {
1866 0 return graphql.Null
1867 0 }
1868 0 ctx = graphql.WithFieldContext(ctx, fc)
1869 0 defer func() {
1870 0 if r := recover(); r != nil {
1871 0 ec.Error(ctx, ec.Recover(ctx, r))
1872 0 ret = graphql.Null
1873 0 }
1874 }()
1875 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
1876 0 ctx = rctx // use context from middleware stack in children
1877 0 return obj.DocID, nil
1878 0 })
1879 0 if err != nil {
1880 0 ec.Error(ctx, err)
1881 0 return graphql.Null
1882 0 }
1883 0 if resTmp == nil {
1884 0 return graphql.Null
1885 0 }
1886 0 res := resTmp.(*string)
1887 0 fc.Result = res
1888 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
1889 }
1890
1891 0 func (ec *executionContext) fieldContext_Document_docId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1892 0 fc = &graphql.FieldContext{
1893 0 Object: "Document",
1894 0 Field: field,
1895 0 IsMethod: false,
1896 0 IsResolver: false,
1897 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1898 0 return nil, errors.New("field of type String does not have child fields")
1899 0 },
1900 }
1901 0 return fc, nil
1902 }
1903
1904 0 func (ec *executionContext) _Document_path(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
1905 0 fc, err := ec.fieldContext_Document_path(ctx, field)
1906 0 if err != nil {
1907 0 return graphql.Null
1908 0 }
1909 0 ctx = graphql.WithFieldContext(ctx, fc)
1910 0 defer func() {
1911 0 if r := recover(); r != nil {
1912 0 ec.Error(ctx, ec.Recover(ctx, r))
1913 0 ret = graphql.Null
1914 0 }
1915 }()
1916 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
1917 0 ctx = rctx // use context from middleware stack in children
1918 0 return obj.Path, nil
1919 0 })
1920 0 if err != nil {
1921 0 ec.Error(ctx, err)
1922 0 return graphql.Null
1923 0 }
1924 0 if resTmp == nil {
1925 0 if !graphql.HasFieldError(ctx, fc) {
1926 0 ec.Errorf(ctx, "must not be null")
1927 0 }
1928 0 return graphql.Null
1929 }
1930 0 res := resTmp.(string)
1931 0 fc.Result = res
1932 0 return ec.marshalNString2string(ctx, field.Selections, res)
1933 }
1934
1935 0 func (ec *executionContext) fieldContext_Document_path(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1936 0 fc = &graphql.FieldContext{
1937 0 Object: "Document",
1938 0 Field: field,
1939 0 IsMethod: false,
1940 0 IsResolver: false,
1941 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1942 0 return nil, errors.New("field of type String does not have child fields")
1943 0 },
1944 }
1945 0 return fc, nil
1946 }
1947
1948 0 func (ec *executionContext) _Document_rev(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
1949 0 fc, err := ec.fieldContext_Document_rev(ctx, field)
1950 0 if err != nil {
1951 0 return graphql.Null
1952 0 }
1953 0 ctx = graphql.WithFieldContext(ctx, fc)
1954 0 defer func() {
1955 0 if r := recover(); r != nil {
1956 0 ec.Error(ctx, ec.Recover(ctx, r))
1957 0 ret = graphql.Null
1958 0 }
1959 }()
1960 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
1961 0 ctx = rctx // use context from middleware stack in children
1962 0 return obj.Rev, nil
1963 0 })
1964 0 if err != nil {
1965 0 ec.Error(ctx, err)
1966 0 return graphql.Null
1967 0 }
1968 0 if resTmp == nil {
1969 0 if !graphql.HasFieldError(ctx, fc) {
1970 0 ec.Errorf(ctx, "must not be null")
1971 0 }
1972 0 return graphql.Null
1973 }
1974 0 res := resTmp.(string)
1975 0 fc.Result = res
1976 0 return ec.marshalNString2string(ctx, field.Selections, res)
1977 }
1978
1979 0 func (ec *executionContext) fieldContext_Document_rev(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1980 0 fc = &graphql.FieldContext{
1981 0 Object: "Document",
1982 0 Field: field,
1983 0 IsMethod: false,
1984 0 IsResolver: false,
1985 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
1986 0 return nil, errors.New("field of type String does not have child fields")
1987 0 },
1988 }
1989 0 return fc, nil
1990 }
1991
1992 0 func (ec *executionContext) _Document_blob(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
1993 0 fc, err := ec.fieldContext_Document_blob(ctx, field)
1994 0 if err != nil {
1995 0 return graphql.Null
1996 0 }
1997 0 ctx = graphql.WithFieldContext(ctx, fc)
1998 0 defer func() {
1999 0 if r := recover(); r != nil {
2000 0 ec.Error(ctx, ec.Recover(ctx, r))
2001 0 ret = graphql.Null
2002 0 }
2003 }()
2004 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2005 0 ctx = rctx // use context from middleware stack in children
2006 0 return obj.Blob, nil
2007 0 })
2008 0 if err != nil {
2009 0 ec.Error(ctx, err)
2010 0 return graphql.Null
2011 0 }
2012 0 if resTmp == nil {
2013 0 if !graphql.HasFieldError(ctx, fc) {
2014 0 ec.Errorf(ctx, "must not be null")
2015 0 }
2016 0 return graphql.Null
2017 }
2018 0 res := resTmp.(string)
2019 0 fc.Result = res
2020 0 return ec.marshalNString2string(ctx, field.Selections, res)
2021 }
2022
2023 0 func (ec *executionContext) fieldContext_Document_blob(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2024 0 fc = &graphql.FieldContext{
2025 0 Object: "Document",
2026 0 Field: field,
2027 0 IsMethod: false,
2028 0 IsResolver: false,
2029 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2030 0 return nil, errors.New("field of type String does not have child fields")
2031 0 },
2032 }
2033 0 return fc, nil
2034 }
2035
2036 0 func (ec *executionContext) _Document_pinned(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2037 0 fc, err := ec.fieldContext_Document_pinned(ctx, field)
2038 0 if err != nil {
2039 0 return graphql.Null
2040 0 }
2041 0 ctx = graphql.WithFieldContext(ctx, fc)
2042 0 defer func() {
2043 0 if r := recover(); r != nil {
2044 0 ec.Error(ctx, ec.Recover(ctx, r))
2045 0 ret = graphql.Null
2046 0 }
2047 }()
2048 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2049 0 ctx = rctx // use context from middleware stack in children
2050 0 return obj.Pinned, nil
2051 0 })
2052 0 if err != nil {
2053 0 ec.Error(ctx, err)
2054 0 return graphql.Null
2055 0 }
2056 0 if resTmp == nil {
2057 0 if !graphql.HasFieldError(ctx, fc) {
2058 0 ec.Errorf(ctx, "must not be null")
2059 0 }
2060 0 return graphql.Null
2061 }
2062 0 res := resTmp.(bool)
2063 0 fc.Result = res
2064 0 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
2065 }
2066
2067 0 func (ec *executionContext) fieldContext_Document_pinned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2068 0 fc = &graphql.FieldContext{
2069 0 Object: "Document",
2070 0 Field: field,
2071 0 IsMethod: false,
2072 0 IsResolver: false,
2073 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2074 0 return nil, errors.New("field of type Boolean does not have child fields")
2075 0 },
2076 }
2077 0 return fc, nil
2078 }
2079
2080 0 func (ec *executionContext) _Document_title(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2081 0 fc, err := ec.fieldContext_Document_title(ctx, field)
2082 0 if err != nil {
2083 0 return graphql.Null
2084 0 }
2085 0 ctx = graphql.WithFieldContext(ctx, fc)
2086 0 defer func() {
2087 0 if r := recover(); r != nil {
2088 0 ec.Error(ctx, ec.Recover(ctx, r))
2089 0 ret = graphql.Null
2090 0 }
2091 }()
2092 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2093 0 ctx = rctx // use context from middleware stack in children
2094 0 return obj.Title, nil
2095 0 })
2096 0 if err != nil {
2097 0 ec.Error(ctx, err)
2098 0 return graphql.Null
2099 0 }
2100 0 if resTmp == nil {
2101 0 if !graphql.HasFieldError(ctx, fc) {
2102 0 ec.Errorf(ctx, "must not be null")
2103 0 }
2104 0 return graphql.Null
2105 }
2106 0 res := resTmp.(string)
2107 0 fc.Result = res
2108 0 return ec.marshalNString2string(ctx, field.Selections, res)
2109 }
2110
2111 0 func (ec *executionContext) fieldContext_Document_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2112 0 fc = &graphql.FieldContext{
2113 0 Object: "Document",
2114 0 Field: field,
2115 0 IsMethod: false,
2116 0 IsResolver: false,
2117 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2118 0 return nil, errors.New("field of type String does not have child fields")
2119 0 },
2120 }
2121 0 return fc, nil
2122 }
2123
2124 0 func (ec *executionContext) _Document_status(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2125 0 fc, err := ec.fieldContext_Document_status(ctx, field)
2126 0 if err != nil {
2127 0 return graphql.Null
2128 0 }
2129 0 ctx = graphql.WithFieldContext(ctx, fc)
2130 0 defer func() {
2131 0 if r := recover(); r != nil {
2132 0 ec.Error(ctx, ec.Recover(ctx, r))
2133 0 ret = graphql.Null
2134 0 }
2135 }()
2136 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2137 0 ctx = rctx // use context from middleware stack in children
2138 0 return obj.Status, nil
2139 0 })
2140 0 if err != nil {
2141 0 ec.Error(ctx, err)
2142 0 return graphql.Null
2143 0 }
2144 0 if resTmp == nil {
2145 0 if !graphql.HasFieldError(ctx, fc) {
2146 0 ec.Errorf(ctx, "must not be null")
2147 0 }
2148 0 return graphql.Null
2149 }
2150 0 res := resTmp.(string)
2151 0 fc.Result = res
2152 0 return ec.marshalNString2string(ctx, field.Selections, res)
2153 }
2154
2155 0 func (ec *executionContext) fieldContext_Document_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2156 0 fc = &graphql.FieldContext{
2157 0 Object: "Document",
2158 0 Field: field,
2159 0 IsMethod: false,
2160 0 IsResolver: false,
2161 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2162 0 return nil, errors.New("field of type String does not have child fields")
2163 0 },
2164 }
2165 0 return fc, nil
2166 }
2167
2168 0 func (ec *executionContext) _Document_section(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2169 0 fc, err := ec.fieldContext_Document_section(ctx, field)
2170 0 if err != nil {
2171 0 return graphql.Null
2172 0 }
2173 0 ctx = graphql.WithFieldContext(ctx, fc)
2174 0 defer func() {
2175 0 if r := recover(); r != nil {
2176 0 ec.Error(ctx, ec.Recover(ctx, r))
2177 0 ret = graphql.Null
2178 0 }
2179 }()
2180 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2181 0 ctx = rctx // use context from middleware stack in children
2182 0 return obj.Section, nil
2183 0 })
2184 0 if err != nil {
2185 0 ec.Error(ctx, err)
2186 0 return graphql.Null
2187 0 }
2188 0 if resTmp == nil {
2189 0 if !graphql.HasFieldError(ctx, fc) {
2190 0 ec.Errorf(ctx, "must not be null")
2191 0 }
2192 0 return graphql.Null
2193 }
2194 0 res := resTmp.(string)
2195 0 fc.Result = res
2196 0 return ec.marshalNString2string(ctx, field.Selections, res)
2197 }
2198
2199 0 func (ec *executionContext) fieldContext_Document_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2200 0 fc = &graphql.FieldContext{
2201 0 Object: "Document",
2202 0 Field: field,
2203 0 IsMethod: false,
2204 0 IsResolver: false,
2205 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2206 0 return nil, errors.New("field of type String does not have child fields")
2207 0 },
2208 }
2209 0 return fc, nil
2210 }
2211
2212 0 func (ec *executionContext) _Document_summary(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2213 0 fc, err := ec.fieldContext_Document_summary(ctx, field)
2214 0 if err != nil {
2215 0 return graphql.Null
2216 0 }
2217 0 ctx = graphql.WithFieldContext(ctx, fc)
2218 0 defer func() {
2219 0 if r := recover(); r != nil {
2220 0 ec.Error(ctx, ec.Recover(ctx, r))
2221 0 ret = graphql.Null
2222 0 }
2223 }()
2224 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2225 0 ctx = rctx // use context from middleware stack in children
2226 0 return obj.Summary, nil
2227 0 })
2228 0 if err != nil {
2229 0 ec.Error(ctx, err)
2230 0 return graphql.Null
2231 0 }
2232 0 if resTmp == nil {
2233 0 if !graphql.HasFieldError(ctx, fc) {
2234 0 ec.Errorf(ctx, "must not be null")
2235 0 }
2236 0 return graphql.Null
2237 }
2238 0 res := resTmp.(string)
2239 0 fc.Result = res
2240 0 return ec.marshalNString2string(ctx, field.Selections, res)
2241 }
2242
2243 0 func (ec *executionContext) fieldContext_Document_summary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2244 0 fc = &graphql.FieldContext{
2245 0 Object: "Document",
2246 0 Field: field,
2247 0 IsMethod: false,
2248 0 IsResolver: false,
2249 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2250 0 return nil, errors.New("field of type String does not have child fields")
2251 0 },
2252 }
2253 0 return fc, nil
2254 }
2255
2256 0 func (ec *executionContext) _Document_type(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2257 0 fc, err := ec.fieldContext_Document_type(ctx, field)
2258 0 if err != nil {
2259 0 return graphql.Null
2260 0 }
2261 0 ctx = graphql.WithFieldContext(ctx, fc)
2262 0 defer func() {
2263 0 if r := recover(); r != nil {
2264 0 ec.Error(ctx, ec.Recover(ctx, r))
2265 0 ret = graphql.Null
2266 0 }
2267 }()
2268 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2269 0 ctx = rctx // use context from middleware stack in children
2270 0 return obj.Type, nil
2271 0 })
2272 0 if err != nil {
2273 0 ec.Error(ctx, err)
2274 0 return graphql.Null
2275 0 }
2276 0 if resTmp == nil {
2277 0 if !graphql.HasFieldError(ctx, fc) {
2278 0 ec.Errorf(ctx, "must not be null")
2279 0 }
2280 0 return graphql.Null
2281 }
2282 0 res := resTmp.(string)
2283 0 fc.Result = res
2284 0 return ec.marshalNString2string(ctx, field.Selections, res)
2285 }
2286
2287 0 func (ec *executionContext) fieldContext_Document_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2288 0 fc = &graphql.FieldContext{
2289 0 Object: "Document",
2290 0 Field: field,
2291 0 IsMethod: false,
2292 0 IsResolver: false,
2293 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2294 0 return nil, errors.New("field of type String does not have child fields")
2295 0 },
2296 }
2297 0 return fc, nil
2298 }
2299
2300 0 func (ec *executionContext) _Document_supersedes(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2301 0 fc, err := ec.fieldContext_Document_supersedes(ctx, field)
2302 0 if err != nil {
2303 0 return graphql.Null
2304 0 }
2305 0 ctx = graphql.WithFieldContext(ctx, fc)
2306 0 defer func() {
2307 0 if r := recover(); r != nil {
2308 0 ec.Error(ctx, ec.Recover(ctx, r))
2309 0 ret = graphql.Null
2310 0 }
2311 }()
2312 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2313 0 ctx = rctx // use context from middleware stack in children
2314 0 return obj.Supersedes, nil
2315 0 })
2316 0 if err != nil {
2317 0 ec.Error(ctx, err)
2318 0 return graphql.Null
2319 0 }
2320 0 if resTmp == nil {
2321 0 if !graphql.HasFieldError(ctx, fc) {
2322 0 ec.Errorf(ctx, "must not be null")
2323 0 }
2324 0 return graphql.Null
2325 }
2326 0 res := resTmp.(string)
2327 0 fc.Result = res
2328 0 return ec.marshalNString2string(ctx, field.Selections, res)
2329 }
2330
2331 0 func (ec *executionContext) fieldContext_Document_supersedes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2332 0 fc = &graphql.FieldContext{
2333 0 Object: "Document",
2334 0 Field: field,
2335 0 IsMethod: false,
2336 0 IsResolver: false,
2337 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2338 0 return nil, errors.New("field of type String does not have child fields")
2339 0 },
2340 }
2341 0 return fc, nil
2342 }
2343
2344 0 func (ec *executionContext) _Document_tags(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2345 0 fc, err := ec.fieldContext_Document_tags(ctx, field)
2346 0 if err != nil {
2347 0 return graphql.Null
2348 0 }
2349 0 ctx = graphql.WithFieldContext(ctx, fc)
2350 0 defer func() {
2351 0 if r := recover(); r != nil {
2352 0 ec.Error(ctx, ec.Recover(ctx, r))
2353 0 ret = graphql.Null
2354 0 }
2355 }()
2356 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2357 0 ctx = rctx // use context from middleware stack in children
2358 0 return obj.Tags, nil
2359 0 })
2360 0 if err != nil {
2361 0 ec.Error(ctx, err)
2362 0 return graphql.Null
2363 0 }
2364 0 if resTmp == nil {
2365 0 if !graphql.HasFieldError(ctx, fc) {
2366 0 ec.Errorf(ctx, "must not be null")
2367 0 }
2368 0 return graphql.Null
2369 }
2370 0 res := resTmp.([]string)
2371 0 fc.Result = res
2372 0 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
2373 }
2374
2375 0 func (ec *executionContext) fieldContext_Document_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2376 0 fc = &graphql.FieldContext{
2377 0 Object: "Document",
2378 0 Field: field,
2379 0 IsMethod: false,
2380 0 IsResolver: false,
2381 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2382 0 return nil, errors.New("field of type String does not have child fields")
2383 0 },
2384 }
2385 0 return fc, nil
2386 }
2387
2388 0 func (ec *executionContext) _Document_owners(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2389 0 fc, err := ec.fieldContext_Document_owners(ctx, field)
2390 0 if err != nil {
2391 0 return graphql.Null
2392 0 }
2393 0 ctx = graphql.WithFieldContext(ctx, fc)
2394 0 defer func() {
2395 0 if r := recover(); r != nil {
2396 0 ec.Error(ctx, ec.Recover(ctx, r))
2397 0 ret = graphql.Null
2398 0 }
2399 }()
2400 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2401 0 ctx = rctx // use context from middleware stack in children
2402 0 return obj.Owners, nil
2403 0 })
2404 0 if err != nil {
2405 0 ec.Error(ctx, err)
2406 0 return graphql.Null
2407 0 }
2408 0 if resTmp == nil {
2409 0 if !graphql.HasFieldError(ctx, fc) {
2410 0 ec.Errorf(ctx, "must not be null")
2411 0 }
2412 0 return graphql.Null
2413 }
2414 0 res := resTmp.([]string)
2415 0 fc.Result = res
2416 0 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
2417 }
2418
2419 0 func (ec *executionContext) fieldContext_Document_owners(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2420 0 fc = &graphql.FieldContext{
2421 0 Object: "Document",
2422 0 Field: field,
2423 0 IsMethod: false,
2424 0 IsResolver: false,
2425 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2426 0 return nil, errors.New("field of type String does not have child fields")
2427 0 },
2428 }
2429 0 return fc, nil
2430 }
2431
2432 0 func (ec *executionContext) _Document_markdown(ctx context.Context, field graphql.CollectedField, obj *model.Document) (ret graphql.Marshaler) {
2433 0 fc, err := ec.fieldContext_Document_markdown(ctx, field)
2434 0 if err != nil {
2435 0 return graphql.Null
2436 0 }
2437 0 ctx = graphql.WithFieldContext(ctx, fc)
2438 0 defer func() {
2439 0 if r := recover(); r != nil {
2440 0 ec.Error(ctx, ec.Recover(ctx, r))
2441 0 ret = graphql.Null
2442 0 }
2443 }()
2444 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2445 0 ctx = rctx // use context from middleware stack in children
2446 0 return obj.Markdown, nil
2447 0 })
2448 0 if err != nil {
2449 0 ec.Error(ctx, err)
2450 0 return graphql.Null
2451 0 }
2452 0 if resTmp == nil {
2453 0 if !graphql.HasFieldError(ctx, fc) {
2454 0 ec.Errorf(ctx, "must not be null")
2455 0 }
2456 0 return graphql.Null
2457 }
2458 0 res := resTmp.(string)
2459 0 fc.Result = res
2460 0 return ec.marshalNString2string(ctx, field.Selections, res)
2461 }
2462
2463 0 func (ec *executionContext) fieldContext_Document_markdown(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2464 0 fc = &graphql.FieldContext{
2465 0 Object: "Document",
2466 0 Field: field,
2467 0 IsMethod: false,
2468 0 IsResolver: false,
2469 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2470 0 return nil, errors.New("field of type String does not have child fields")
2471 0 },
2472 }
2473 0 return fc, nil
2474 }
2475
2476 0 func (ec *executionContext) _Mutation_createUserWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2477 0 fc, err := ec.fieldContext_Mutation_createUserWebhook(ctx, field)
2478 0 if err != nil {
2479 0 return graphql.Null
2480 0 }
2481 0 ctx = graphql.WithFieldContext(ctx, fc)
2482 0 defer func() {
2483 0 if r := recover(); r != nil {
2484 0 ec.Error(ctx, ec.Recover(ctx, r))
2485 0 ret = graphql.Null
2486 0 }
2487 }()
2488 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2489 0 ctx = rctx // use context from middleware stack in children
2490 0 return ec.resolvers.Mutation().CreateUserWebhook(rctx, fc.Args["config"].(model.UserWebhookInput))
2491 0 })
2492 0 if err != nil {
2493 0 ec.Error(ctx, err)
2494 0 return graphql.Null
2495 0 }
2496 0 if resTmp == nil {
2497 0 if !graphql.HasFieldError(ctx, fc) {
2498 0 ec.Errorf(ctx, "must not be null")
2499 0 }
2500 0 return graphql.Null
2501 }
2502 0 res := resTmp.(model.WebhookSubscription)
2503 0 fc.Result = res
2504 0 return ec.marshalNWebhookSubscription2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscription(ctx, field.Selections, res)
2505 }
2506
2507 0 func (ec *executionContext) fieldContext_Mutation_createUserWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2508 0 fc = &graphql.FieldContext{
2509 0 Object: "Mutation",
2510 0 Field: field,
2511 0 IsMethod: true,
2512 0 IsResolver: true,
2513 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2514 0 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
2515 0 },
2516 }
2517 0 defer func() {
2518 0 if r := recover(); r != nil {
2519 0 err = ec.Recover(ctx, r)
2520 0 ec.Error(ctx, err)
2521 0 }
2522 }()
2523 0 ctx = graphql.WithFieldContext(ctx, fc)
2524 0 if fc.Args, err = ec.field_Mutation_createUserWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2525 0 ec.Error(ctx, err)
2526 0 return fc, err
2527 0 }
2528 0 return fc, nil
2529 }
2530
2531 0 func (ec *executionContext) _Mutation_deleteUserWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2532 0 fc, err := ec.fieldContext_Mutation_deleteUserWebhook(ctx, field)
2533 0 if err != nil {
2534 0 return graphql.Null
2535 0 }
2536 0 ctx = graphql.WithFieldContext(ctx, fc)
2537 0 defer func() {
2538 0 if r := recover(); r != nil {
2539 0 ec.Error(ctx, ec.Recover(ctx, r))
2540 0 ret = graphql.Null
2541 0 }
2542 }()
2543 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2544 0 ctx = rctx // use context from middleware stack in children
2545 0 return ec.resolvers.Mutation().DeleteUserWebhook(rctx, fc.Args["id"].(int))
2546 0 })
2547 0 if err != nil {
2548 0 ec.Error(ctx, err)
2549 0 return graphql.Null
2550 0 }
2551 0 if resTmp == nil {
2552 0 if !graphql.HasFieldError(ctx, fc) {
2553 0 ec.Errorf(ctx, "must not be null")
2554 0 }
2555 0 return graphql.Null
2556 }
2557 0 res := resTmp.(model.WebhookSubscription)
2558 0 fc.Result = res
2559 0 return ec.marshalNWebhookSubscription2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscription(ctx, field.Selections, res)
2560 }
2561
2562 0 func (ec *executionContext) fieldContext_Mutation_deleteUserWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2563 0 fc = &graphql.FieldContext{
2564 0 Object: "Mutation",
2565 0 Field: field,
2566 0 IsMethod: true,
2567 0 IsResolver: true,
2568 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2569 0 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
2570 0 },
2571 }
2572 0 defer func() {
2573 0 if r := recover(); r != nil {
2574 0 err = ec.Recover(ctx, r)
2575 0 ec.Error(ctx, err)
2576 0 }
2577 }()
2578 0 ctx = graphql.WithFieldContext(ctx, fc)
2579 0 if fc.Args, err = ec.field_Mutation_deleteUserWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
2580 0 ec.Error(ctx, err)
2581 0 return fc, err
2582 0 }
2583 0 return fc, nil
2584 }
2585
2586 0 func (ec *executionContext) _Project_owner(ctx context.Context, field graphql.CollectedField, obj *model.Project) (ret graphql.Marshaler) {
2587 0 fc, err := ec.fieldContext_Project_owner(ctx, field)
2588 0 if err != nil {
2589 0 return graphql.Null
2590 0 }
2591 0 ctx = graphql.WithFieldContext(ctx, fc)
2592 0 defer func() {
2593 0 if r := recover(); r != nil {
2594 0 ec.Error(ctx, ec.Recover(ctx, r))
2595 0 ret = graphql.Null
2596 0 }
2597 }()
2598 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2599 0 ctx = rctx // use context from middleware stack in children
2600 0 return obj.Owner, nil
2601 0 })
2602 0 if err != nil {
2603 0 ec.Error(ctx, err)
2604 0 return graphql.Null
2605 0 }
2606 0 if resTmp == nil {
2607 0 if !graphql.HasFieldError(ctx, fc) {
2608 0 ec.Errorf(ctx, "must not be null")
2609 0 }
2610 0 return graphql.Null
2611 }
2612 0 res := resTmp.(string)
2613 0 fc.Result = res
2614 0 return ec.marshalNString2string(ctx, field.Selections, res)
2615 }
2616
2617 0 func (ec *executionContext) fieldContext_Project_owner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2618 0 fc = &graphql.FieldContext{
2619 0 Object: "Project",
2620 0 Field: field,
2621 0 IsMethod: false,
2622 0 IsResolver: false,
2623 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2624 0 return nil, errors.New("field of type String does not have child fields")
2625 0 },
2626 }
2627 0 return fc, nil
2628 }
2629
2630 0 func (ec *executionContext) _Project_name(ctx context.Context, field graphql.CollectedField, obj *model.Project) (ret graphql.Marshaler) {
2631 0 fc, err := ec.fieldContext_Project_name(ctx, field)
2632 0 if err != nil {
2633 0 return graphql.Null
2634 0 }
2635 0 ctx = graphql.WithFieldContext(ctx, fc)
2636 0 defer func() {
2637 0 if r := recover(); r != nil {
2638 0 ec.Error(ctx, ec.Recover(ctx, r))
2639 0 ret = graphql.Null
2640 0 }
2641 }()
2642 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2643 0 ctx = rctx // use context from middleware stack in children
2644 0 return obj.Name, nil
2645 0 })
2646 0 if err != nil {
2647 0 ec.Error(ctx, err)
2648 0 return graphql.Null
2649 0 }
2650 0 if resTmp == nil {
2651 0 if !graphql.HasFieldError(ctx, fc) {
2652 0 ec.Errorf(ctx, "must not be null")
2653 0 }
2654 0 return graphql.Null
2655 }
2656 0 res := resTmp.(string)
2657 0 fc.Result = res
2658 0 return ec.marshalNString2string(ctx, field.Selections, res)
2659 }
2660
2661 0 func (ec *executionContext) fieldContext_Project_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2662 0 fc = &graphql.FieldContext{
2663 0 Object: "Project",
2664 0 Field: field,
2665 0 IsMethod: false,
2666 0 IsResolver: false,
2667 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2668 0 return nil, errors.New("field of type String does not have child fields")
2669 0 },
2670 }
2671 0 return fc, nil
2672 }
2673
2674 0 func (ec *executionContext) _Project_ref(ctx context.Context, field graphql.CollectedField, obj *model.Project) (ret graphql.Marshaler) {
2675 0 fc, err := ec.fieldContext_Project_ref(ctx, field)
2676 0 if err != nil {
2677 0 return graphql.Null
2678 0 }
2679 0 ctx = graphql.WithFieldContext(ctx, fc)
2680 0 defer func() {
2681 0 if r := recover(); r != nil {
2682 0 ec.Error(ctx, ec.Recover(ctx, r))
2683 0 ret = graphql.Null
2684 0 }
2685 }()
2686 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2687 0 ctx = rctx // use context from middleware stack in children
2688 0 return obj.Ref, nil
2689 0 })
2690 0 if err != nil {
2691 0 ec.Error(ctx, err)
2692 0 return graphql.Null
2693 0 }
2694 0 if resTmp == nil {
2695 0 if !graphql.HasFieldError(ctx, fc) {
2696 0 ec.Errorf(ctx, "must not be null")
2697 0 }
2698 0 return graphql.Null
2699 }
2700 0 res := resTmp.(string)
2701 0 fc.Result = res
2702 0 return ec.marshalNString2string(ctx, field.Selections, res)
2703 }
2704
2705 0 func (ec *executionContext) fieldContext_Project_ref(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2706 0 fc = &graphql.FieldContext{
2707 0 Object: "Project",
2708 0 Field: field,
2709 0 IsMethod: false,
2710 0 IsResolver: false,
2711 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2712 0 return nil, errors.New("field of type String does not have child fields")
2713 0 },
2714 }
2715 0 return fc, nil
2716 }
2717
2718 0 func (ec *executionContext) _Project_meta(ctx context.Context, field graphql.CollectedField, obj *model.Project) (ret graphql.Marshaler) {
2719 0 fc, err := ec.fieldContext_Project_meta(ctx, field)
2720 0 if err != nil {
2721 0 return graphql.Null
2722 0 }
2723 0 ctx = graphql.WithFieldContext(ctx, fc)
2724 0 defer func() {
2725 0 if r := recover(); r != nil {
2726 0 ec.Error(ctx, ec.Recover(ctx, r))
2727 0 ret = graphql.Null
2728 0 }
2729 }()
2730 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2731 0 ctx = rctx // use context from middleware stack in children
2732 0 return obj.Meta, nil
2733 0 })
2734 0 if err != nil {
2735 0 ec.Error(ctx, err)
2736 0 return graphql.Null
2737 0 }
2738 0 if resTmp == nil {
2739 0 if !graphql.HasFieldError(ctx, fc) {
2740 0 ec.Errorf(ctx, "must not be null")
2741 0 }
2742 0 return graphql.Null
2743 }
2744 0 res := resTmp.(bool)
2745 0 fc.Result = res
2746 0 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
2747 }
2748
2749 0 func (ec *executionContext) fieldContext_Project_meta(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2750 0 fc = &graphql.FieldContext{
2751 0 Object: "Project",
2752 0 Field: field,
2753 0 IsMethod: false,
2754 0 IsResolver: false,
2755 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2756 0 return nil, errors.New("field of type Boolean does not have child fields")
2757 0 },
2758 }
2759 0 return fc, nil
2760 }
2761
2762 0 func (ec *executionContext) _Project_spaces(ctx context.Context, field graphql.CollectedField, obj *model.Project) (ret graphql.Marshaler) {
2763 0 fc, err := ec.fieldContext_Project_spaces(ctx, field)
2764 0 if err != nil {
2765 0 return graphql.Null
2766 0 }
2767 0 ctx = graphql.WithFieldContext(ctx, fc)
2768 0 defer func() {
2769 0 if r := recover(); r != nil {
2770 0 ec.Error(ctx, ec.Recover(ctx, r))
2771 0 ret = graphql.Null
2772 0 }
2773 }()
2774 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2775 0 ctx = rctx // use context from middleware stack in children
2776 0 return ec.resolvers.Project().Spaces(rctx, obj)
2777 0 })
2778 0 if err != nil {
2779 0 ec.Error(ctx, err)
2780 0 return graphql.Null
2781 0 }
2782 0 if resTmp == nil {
2783 0 if !graphql.HasFieldError(ctx, fc) {
2784 0 ec.Errorf(ctx, "must not be null")
2785 0 }
2786 0 return graphql.Null
2787 }
2788 0 res := resTmp.([]*model.Space)
2789 0 fc.Result = res
2790 0 return ec.marshalNSpace2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSpaceᚄ(ctx, field.Selections, res)
2791 }
2792
2793 0 func (ec *executionContext) fieldContext_Project_spaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2794 0 fc = &graphql.FieldContext{
2795 0 Object: "Project",
2796 0 Field: field,
2797 0 IsMethod: true,
2798 0 IsResolver: true,
2799 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2800 0 switch field.Name {
2801 0 case "owner":
2802 0 return ec.fieldContext_Space_owner(ctx, field)
2803 0 case "name":
2804 0 return ec.fieldContext_Space_name(ctx, field)
2805 0 case "ref":
2806 0 return ec.fieldContext_Space_ref(ctx, field)
2807 0 case "created":
2808 0 return ec.fieldContext_Space_created(ctx, field)
2809 0 case "approvedRev":
2810 0 return ec.fieldContext_Space_approvedRev(ctx, field)
2811 }
2812 0 return nil, fmt.Errorf("no field named %q was found under type Space", field.Name)
2813 },
2814 }
2815 0 return fc, nil
2816 }
2817
2818 0 func (ec *executionContext) _Proposal_id(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
2819 0 fc, err := ec.fieldContext_Proposal_id(ctx, field)
2820 0 if err != nil {
2821 0 return graphql.Null
2822 0 }
2823 0 ctx = graphql.WithFieldContext(ctx, fc)
2824 0 defer func() {
2825 0 if r := recover(); r != nil {
2826 0 ec.Error(ctx, ec.Recover(ctx, r))
2827 0 ret = graphql.Null
2828 0 }
2829 }()
2830 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2831 0 ctx = rctx // use context from middleware stack in children
2832 0 return obj.ID, nil
2833 0 })
2834 0 if err != nil {
2835 0 ec.Error(ctx, err)
2836 0 return graphql.Null
2837 0 }
2838 0 if resTmp == nil {
2839 0 if !graphql.HasFieldError(ctx, fc) {
2840 0 ec.Errorf(ctx, "must not be null")
2841 0 }
2842 0 return graphql.Null
2843 }
2844 0 res := resTmp.(int)
2845 0 fc.Result = res
2846 0 return ec.marshalNInt2int(ctx, field.Selections, res)
2847 }
2848
2849 0 func (ec *executionContext) fieldContext_Proposal_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2850 0 fc = &graphql.FieldContext{
2851 0 Object: "Proposal",
2852 0 Field: field,
2853 0 IsMethod: false,
2854 0 IsResolver: false,
2855 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2856 0 return nil, errors.New("field of type Int does not have child fields")
2857 0 },
2858 }
2859 0 return fc, nil
2860 }
2861
2862 0 func (ec *executionContext) _Proposal_space(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
2863 0 fc, err := ec.fieldContext_Proposal_space(ctx, field)
2864 0 if err != nil {
2865 0 return graphql.Null
2866 0 }
2867 0 ctx = graphql.WithFieldContext(ctx, fc)
2868 0 defer func() {
2869 0 if r := recover(); r != nil {
2870 0 ec.Error(ctx, ec.Recover(ctx, r))
2871 0 ret = graphql.Null
2872 0 }
2873 }()
2874 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2875 0 ctx = rctx // use context from middleware stack in children
2876 0 return obj.Space, nil
2877 0 })
2878 0 if err != nil {
2879 0 ec.Error(ctx, err)
2880 0 return graphql.Null
2881 0 }
2882 0 if resTmp == nil {
2883 0 if !graphql.HasFieldError(ctx, fc) {
2884 0 ec.Errorf(ctx, "must not be null")
2885 0 }
2886 0 return graphql.Null
2887 }
2888 0 res := resTmp.(string)
2889 0 fc.Result = res
2890 0 return ec.marshalNString2string(ctx, field.Selections, res)
2891 }
2892
2893 0 func (ec *executionContext) fieldContext_Proposal_space(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2894 0 fc = &graphql.FieldContext{
2895 0 Object: "Proposal",
2896 0 Field: field,
2897 0 IsMethod: false,
2898 0 IsResolver: false,
2899 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2900 0 return nil, errors.New("field of type String does not have child fields")
2901 0 },
2902 }
2903 0 return fc, nil
2904 }
2905
2906 0 func (ec *executionContext) _Proposal_title(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
2907 0 fc, err := ec.fieldContext_Proposal_title(ctx, field)
2908 0 if err != nil {
2909 0 return graphql.Null
2910 0 }
2911 0 ctx = graphql.WithFieldContext(ctx, fc)
2912 0 defer func() {
2913 0 if r := recover(); r != nil {
2914 0 ec.Error(ctx, ec.Recover(ctx, r))
2915 0 ret = graphql.Null
2916 0 }
2917 }()
2918 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2919 0 ctx = rctx // use context from middleware stack in children
2920 0 return obj.Title, nil
2921 0 })
2922 0 if err != nil {
2923 0 ec.Error(ctx, err)
2924 0 return graphql.Null
2925 0 }
2926 0 if resTmp == nil {
2927 0 if !graphql.HasFieldError(ctx, fc) {
2928 0 ec.Errorf(ctx, "must not be null")
2929 0 }
2930 0 return graphql.Null
2931 }
2932 0 res := resTmp.(string)
2933 0 fc.Result = res
2934 0 return ec.marshalNString2string(ctx, field.Selections, res)
2935 }
2936
2937 0 func (ec *executionContext) fieldContext_Proposal_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2938 0 fc = &graphql.FieldContext{
2939 0 Object: "Proposal",
2940 0 Field: field,
2941 0 IsMethod: false,
2942 0 IsResolver: false,
2943 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2944 0 return nil, errors.New("field of type String does not have child fields")
2945 0 },
2946 }
2947 0 return fc, nil
2948 }
2949
2950 0 func (ec *executionContext) _Proposal_rationale(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
2951 0 fc, err := ec.fieldContext_Proposal_rationale(ctx, field)
2952 0 if err != nil {
2953 0 return graphql.Null
2954 0 }
2955 0 ctx = graphql.WithFieldContext(ctx, fc)
2956 0 defer func() {
2957 0 if r := recover(); r != nil {
2958 0 ec.Error(ctx, ec.Recover(ctx, r))
2959 0 ret = graphql.Null
2960 0 }
2961 }()
2962 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2963 0 ctx = rctx // use context from middleware stack in children
2964 0 return obj.Rationale, nil
2965 0 })
2966 0 if err != nil {
2967 0 ec.Error(ctx, err)
2968 0 return graphql.Null
2969 0 }
2970 0 if resTmp == nil {
2971 0 if !graphql.HasFieldError(ctx, fc) {
2972 0 ec.Errorf(ctx, "must not be null")
2973 0 }
2974 0 return graphql.Null
2975 }
2976 0 res := resTmp.(string)
2977 0 fc.Result = res
2978 0 return ec.marshalNString2string(ctx, field.Selections, res)
2979 }
2980
2981 0 func (ec *executionContext) fieldContext_Proposal_rationale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2982 0 fc = &graphql.FieldContext{
2983 0 Object: "Proposal",
2984 0 Field: field,
2985 0 IsMethod: false,
2986 0 IsResolver: false,
2987 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
2988 0 return nil, errors.New("field of type String does not have child fields")
2989 0 },
2990 }
2991 0 return fc, nil
2992 }
2993
2994 0 func (ec *executionContext) _Proposal_baseRev(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
2995 0 fc, err := ec.fieldContext_Proposal_baseRev(ctx, field)
2996 0 if err != nil {
2997 0 return graphql.Null
2998 0 }
2999 0 ctx = graphql.WithFieldContext(ctx, fc)
3000 0 defer func() {
3001 0 if r := recover(); r != nil {
3002 0 ec.Error(ctx, ec.Recover(ctx, r))
3003 0 ret = graphql.Null
3004 0 }
3005 }()
3006 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3007 0 ctx = rctx // use context from middleware stack in children
3008 0 return obj.BaseRev, nil
3009 0 })
3010 0 if err != nil {
3011 0 ec.Error(ctx, err)
3012 0 return graphql.Null
3013 0 }
3014 0 if resTmp == nil {
3015 0 if !graphql.HasFieldError(ctx, fc) {
3016 0 ec.Errorf(ctx, "must not be null")
3017 0 }
3018 0 return graphql.Null
3019 }
3020 0 res := resTmp.(string)
3021 0 fc.Result = res
3022 0 return ec.marshalNString2string(ctx, field.Selections, res)
3023 }
3024
3025 0 func (ec *executionContext) fieldContext_Proposal_baseRev(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3026 0 fc = &graphql.FieldContext{
3027 0 Object: "Proposal",
3028 0 Field: field,
3029 0 IsMethod: false,
3030 0 IsResolver: false,
3031 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3032 0 return nil, errors.New("field of type String does not have child fields")
3033 0 },
3034 }
3035 0 return fc, nil
3036 }
3037
3038 0 func (ec *executionContext) _Proposal_branch(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
3039 0 fc, err := ec.fieldContext_Proposal_branch(ctx, field)
3040 0 if err != nil {
3041 0 return graphql.Null
3042 0 }
3043 0 ctx = graphql.WithFieldContext(ctx, fc)
3044 0 defer func() {
3045 0 if r := recover(); r != nil {
3046 0 ec.Error(ctx, ec.Recover(ctx, r))
3047 0 ret = graphql.Null
3048 0 }
3049 }()
3050 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3051 0 ctx = rctx // use context from middleware stack in children
3052 0 return obj.Branch, nil
3053 0 })
3054 0 if err != nil {
3055 0 ec.Error(ctx, err)
3056 0 return graphql.Null
3057 0 }
3058 0 if resTmp == nil {
3059 0 if !graphql.HasFieldError(ctx, fc) {
3060 0 ec.Errorf(ctx, "must not be null")
3061 0 }
3062 0 return graphql.Null
3063 }
3064 0 res := resTmp.(string)
3065 0 fc.Result = res
3066 0 return ec.marshalNString2string(ctx, field.Selections, res)
3067 }
3068
3069 0 func (ec *executionContext) fieldContext_Proposal_branch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3070 0 fc = &graphql.FieldContext{
3071 0 Object: "Proposal",
3072 0 Field: field,
3073 0 IsMethod: false,
3074 0 IsResolver: false,
3075 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3076 0 return nil, errors.New("field of type String does not have child fields")
3077 0 },
3078 }
3079 0 return fc, nil
3080 }
3081
3082 0 func (ec *executionContext) _Proposal_state(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
3083 0 fc, err := ec.fieldContext_Proposal_state(ctx, field)
3084 0 if err != nil {
3085 0 return graphql.Null
3086 0 }
3087 0 ctx = graphql.WithFieldContext(ctx, fc)
3088 0 defer func() {
3089 0 if r := recover(); r != nil {
3090 0 ec.Error(ctx, ec.Recover(ctx, r))
3091 0 ret = graphql.Null
3092 0 }
3093 }()
3094 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3095 0 ctx = rctx // use context from middleware stack in children
3096 0 return obj.State, nil
3097 0 })
3098 0 if err != nil {
3099 0 ec.Error(ctx, err)
3100 0 return graphql.Null
3101 0 }
3102 0 if resTmp == nil {
3103 0 if !graphql.HasFieldError(ctx, fc) {
3104 0 ec.Errorf(ctx, "must not be null")
3105 0 }
3106 0 return graphql.Null
3107 }
3108 0 res := resTmp.(model.ProposalState)
3109 0 fc.Result = res
3110 0 return ec.marshalNProposalState2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProposalState(ctx, field.Selections, res)
3111 }
3112
3113 0 func (ec *executionContext) fieldContext_Proposal_state(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3114 0 fc = &graphql.FieldContext{
3115 0 Object: "Proposal",
3116 0 Field: field,
3117 0 IsMethod: false,
3118 0 IsResolver: false,
3119 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3120 0 return nil, errors.New("field of type ProposalState does not have child fields")
3121 0 },
3122 }
3123 0 return fc, nil
3124 }
3125
3126 0 func (ec *executionContext) _Proposal_approval(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
3127 0 fc, err := ec.fieldContext_Proposal_approval(ctx, field)
3128 0 if err != nil {
3129 0 return graphql.Null
3130 0 }
3131 0 ctx = graphql.WithFieldContext(ctx, fc)
3132 0 defer func() {
3133 0 if r := recover(); r != nil {
3134 0 ec.Error(ctx, ec.Recover(ctx, r))
3135 0 ret = graphql.Null
3136 0 }
3137 }()
3138 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3139 0 ctx = rctx // use context from middleware stack in children
3140 0 return obj.Approval, nil
3141 0 })
3142 0 if err != nil {
3143 0 ec.Error(ctx, err)
3144 0 return graphql.Null
3145 0 }
3146 0 if resTmp == nil {
3147 0 return graphql.Null
3148 0 }
3149 0 res := resTmp.(*model.Approval)
3150 0 fc.Result = res
3151 0 return ec.marshalOApproval2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐApproval(ctx, field.Selections, res)
3152 }
3153
3154 0 func (ec *executionContext) fieldContext_Proposal_approval(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3155 0 fc = &graphql.FieldContext{
3156 0 Object: "Proposal",
3157 0 Field: field,
3158 0 IsMethod: false,
3159 0 IsResolver: false,
3160 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3161 0 return nil, errors.New("field of type Approval does not have child fields")
3162 0 },
3163 }
3164 0 return fc, nil
3165 }
3166
3167 0 func (ec *executionContext) _Proposal_mergedRev(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
3168 0 fc, err := ec.fieldContext_Proposal_mergedRev(ctx, field)
3169 0 if err != nil {
3170 0 return graphql.Null
3171 0 }
3172 0 ctx = graphql.WithFieldContext(ctx, fc)
3173 0 defer func() {
3174 0 if r := recover(); r != nil {
3175 0 ec.Error(ctx, ec.Recover(ctx, r))
3176 0 ret = graphql.Null
3177 0 }
3178 }()
3179 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3180 0 ctx = rctx // use context from middleware stack in children
3181 0 return obj.MergedRev, nil
3182 0 })
3183 0 if err != nil {
3184 0 ec.Error(ctx, err)
3185 0 return graphql.Null
3186 0 }
3187 0 if resTmp == nil {
3188 0 return graphql.Null
3189 0 }
3190 0 res := resTmp.(*string)
3191 0 fc.Result = res
3192 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
3193 }
3194
3195 0 func (ec *executionContext) fieldContext_Proposal_mergedRev(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3196 0 fc = &graphql.FieldContext{
3197 0 Object: "Proposal",
3198 0 Field: field,
3199 0 IsMethod: false,
3200 0 IsResolver: false,
3201 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3202 0 return nil, errors.New("field of type String does not have child fields")
3203 0 },
3204 }
3205 0 return fc, nil
3206 }
3207
3208 0 func (ec *executionContext) _Proposal_agent(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
3209 0 fc, err := ec.fieldContext_Proposal_agent(ctx, field)
3210 0 if err != nil {
3211 0 return graphql.Null
3212 0 }
3213 0 ctx = graphql.WithFieldContext(ctx, fc)
3214 0 defer func() {
3215 0 if r := recover(); r != nil {
3216 0 ec.Error(ctx, ec.Recover(ctx, r))
3217 0 ret = graphql.Null
3218 0 }
3219 }()
3220 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3221 0 ctx = rctx // use context from middleware stack in children
3222 0 return obj.Agent, nil
3223 0 })
3224 0 if err != nil {
3225 0 ec.Error(ctx, err)
3226 0 return graphql.Null
3227 0 }
3228 0 if resTmp == nil {
3229 0 if !graphql.HasFieldError(ctx, fc) {
3230 0 ec.Errorf(ctx, "must not be null")
3231 0 }
3232 0 return graphql.Null
3233 }
3234 0 res := resTmp.(string)
3235 0 fc.Result = res
3236 0 return ec.marshalNString2string(ctx, field.Selections, res)
3237 }
3238
3239 0 func (ec *executionContext) fieldContext_Proposal_agent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3240 0 fc = &graphql.FieldContext{
3241 0 Object: "Proposal",
3242 0 Field: field,
3243 0 IsMethod: false,
3244 0 IsResolver: false,
3245 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3246 0 return nil, errors.New("field of type String does not have child fields")
3247 0 },
3248 }
3249 0 return fc, nil
3250 }
3251
3252 0 func (ec *executionContext) _Proposal_agentSession(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
3253 0 fc, err := ec.fieldContext_Proposal_agentSession(ctx, field)
3254 0 if err != nil {
3255 0 return graphql.Null
3256 0 }
3257 0 ctx = graphql.WithFieldContext(ctx, fc)
3258 0 defer func() {
3259 0 if r := recover(); r != nil {
3260 0 ec.Error(ctx, ec.Recover(ctx, r))
3261 0 ret = graphql.Null
3262 0 }
3263 }()
3264 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3265 0 ctx = rctx // use context from middleware stack in children
3266 0 return obj.AgentSession, nil
3267 0 })
3268 0 if err != nil {
3269 0 ec.Error(ctx, err)
3270 0 return graphql.Null
3271 0 }
3272 0 if resTmp == nil {
3273 0 if !graphql.HasFieldError(ctx, fc) {
3274 0 ec.Errorf(ctx, "must not be null")
3275 0 }
3276 0 return graphql.Null
3277 }
3278 0 res := resTmp.(string)
3279 0 fc.Result = res
3280 0 return ec.marshalNString2string(ctx, field.Selections, res)
3281 }
3282
3283 0 func (ec *executionContext) fieldContext_Proposal_agentSession(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3284 0 fc = &graphql.FieldContext{
3285 0 Object: "Proposal",
3286 0 Field: field,
3287 0 IsMethod: false,
3288 0 IsResolver: false,
3289 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3290 0 return nil, errors.New("field of type String does not have child fields")
3291 0 },
3292 }
3293 0 return fc, nil
3294 }
3295
3296 0 func (ec *executionContext) _Proposal_created(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
3297 0 fc, err := ec.fieldContext_Proposal_created(ctx, field)
3298 0 if err != nil {
3299 0 return graphql.Null
3300 0 }
3301 0 ctx = graphql.WithFieldContext(ctx, fc)
3302 0 defer func() {
3303 0 if r := recover(); r != nil {
3304 0 ec.Error(ctx, ec.Recover(ctx, r))
3305 0 ret = graphql.Null
3306 0 }
3307 }()
3308 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3309 0 ctx = rctx // use context from middleware stack in children
3310 0 return obj.Created, nil
3311 0 })
3312 0 if err != nil {
3313 0 ec.Error(ctx, err)
3314 0 return graphql.Null
3315 0 }
3316 0 if resTmp == nil {
3317 0 if !graphql.HasFieldError(ctx, fc) {
3318 0 ec.Errorf(ctx, "must not be null")
3319 0 }
3320 0 return graphql.Null
3321 }
3322 0 res := resTmp.(time.Time)
3323 0 fc.Result = res
3324 0 return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
3325 }
3326
3327 0 func (ec *executionContext) fieldContext_Proposal_created(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3328 0 fc = &graphql.FieldContext{
3329 0 Object: "Proposal",
3330 0 Field: field,
3331 0 IsMethod: false,
3332 0 IsResolver: false,
3333 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3334 0 return nil, errors.New("field of type Time does not have child fields")
3335 0 },
3336 }
3337 0 return fc, nil
3338 }
3339
3340 0 func (ec *executionContext) _Proposal_resolved(ctx context.Context, field graphql.CollectedField, obj *model.Proposal) (ret graphql.Marshaler) {
3341 0 fc, err := ec.fieldContext_Proposal_resolved(ctx, field)
3342 0 if err != nil {
3343 0 return graphql.Null
3344 0 }
3345 0 ctx = graphql.WithFieldContext(ctx, fc)
3346 0 defer func() {
3347 0 if r := recover(); r != nil {
3348 0 ec.Error(ctx, ec.Recover(ctx, r))
3349 0 ret = graphql.Null
3350 0 }
3351 }()
3352 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3353 0 ctx = rctx // use context from middleware stack in children
3354 0 return obj.Resolved, nil
3355 0 })
3356 0 if err != nil {
3357 0 ec.Error(ctx, err)
3358 0 return graphql.Null
3359 0 }
3360 0 if resTmp == nil {
3361 0 return graphql.Null
3362 0 }
3363 0 res := resTmp.(*time.Time)
3364 0 fc.Result = res
3365 0 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
3366 }
3367
3368 0 func (ec *executionContext) fieldContext_Proposal_resolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3369 0 fc = &graphql.FieldContext{
3370 0 Object: "Proposal",
3371 0 Field: field,
3372 0 IsMethod: false,
3373 0 IsResolver: false,
3374 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3375 0 return nil, errors.New("field of type Time does not have child fields")
3376 0 },
3377 }
3378 0 return fc, nil
3379 }
3380
3381 0 func (ec *executionContext) _ProposalEvent_uuid(ctx context.Context, field graphql.CollectedField, obj *model.ProposalEvent) (ret graphql.Marshaler) {
3382 0 fc, err := ec.fieldContext_ProposalEvent_uuid(ctx, field)
3383 0 if err != nil {
3384 0 return graphql.Null
3385 0 }
3386 0 ctx = graphql.WithFieldContext(ctx, fc)
3387 0 defer func() {
3388 0 if r := recover(); r != nil {
3389 0 ec.Error(ctx, ec.Recover(ctx, r))
3390 0 ret = graphql.Null
3391 0 }
3392 }()
3393 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3394 0 ctx = rctx // use context from middleware stack in children
3395 0 return obj.UUID, nil
3396 0 })
3397 0 if err != nil {
3398 0 ec.Error(ctx, err)
3399 0 return graphql.Null
3400 0 }
3401 0 if resTmp == nil {
3402 0 if !graphql.HasFieldError(ctx, fc) {
3403 0 ec.Errorf(ctx, "must not be null")
3404 0 }
3405 0 return graphql.Null
3406 }
3407 0 res := resTmp.(string)
3408 0 fc.Result = res
3409 0 return ec.marshalNString2string(ctx, field.Selections, res)
3410 }
3411
3412 0 func (ec *executionContext) fieldContext_ProposalEvent_uuid(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3413 0 fc = &graphql.FieldContext{
3414 0 Object: "ProposalEvent",
3415 0 Field: field,
3416 0 IsMethod: false,
3417 0 IsResolver: false,
3418 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3419 0 return nil, errors.New("field of type String does not have child fields")
3420 0 },
3421 }
3422 0 return fc, nil
3423 }
3424
3425 0 func (ec *executionContext) _ProposalEvent_event(ctx context.Context, field graphql.CollectedField, obj *model.ProposalEvent) (ret graphql.Marshaler) {
3426 0 fc, err := ec.fieldContext_ProposalEvent_event(ctx, field)
3427 0 if err != nil {
3428 0 return graphql.Null
3429 0 }
3430 0 ctx = graphql.WithFieldContext(ctx, fc)
3431 0 defer func() {
3432 0 if r := recover(); r != nil {
3433 0 ec.Error(ctx, ec.Recover(ctx, r))
3434 0 ret = graphql.Null
3435 0 }
3436 }()
3437 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3438 0 ctx = rctx // use context from middleware stack in children
3439 0 return obj.Event, nil
3440 0 })
3441 0 if err != nil {
3442 0 ec.Error(ctx, err)
3443 0 return graphql.Null
3444 0 }
3445 0 if resTmp == nil {
3446 0 if !graphql.HasFieldError(ctx, fc) {
3447 0 ec.Errorf(ctx, "must not be null")
3448 0 }
3449 0 return graphql.Null
3450 }
3451 0 res := resTmp.(model.WebhookEvent)
3452 0 fc.Result = res
3453 0 return ec.marshalNWebhookEvent2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEvent(ctx, field.Selections, res)
3454 }
3455
3456 0 func (ec *executionContext) fieldContext_ProposalEvent_event(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3457 0 fc = &graphql.FieldContext{
3458 0 Object: "ProposalEvent",
3459 0 Field: field,
3460 0 IsMethod: false,
3461 0 IsResolver: false,
3462 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3463 0 return nil, errors.New("field of type WebhookEvent does not have child fields")
3464 0 },
3465 }
3466 0 return fc, nil
3467 }
3468
3469 0 func (ec *executionContext) _ProposalEvent_date(ctx context.Context, field graphql.CollectedField, obj *model.ProposalEvent) (ret graphql.Marshaler) {
3470 0 fc, err := ec.fieldContext_ProposalEvent_date(ctx, field)
3471 0 if err != nil {
3472 0 return graphql.Null
3473 0 }
3474 0 ctx = graphql.WithFieldContext(ctx, fc)
3475 0 defer func() {
3476 0 if r := recover(); r != nil {
3477 0 ec.Error(ctx, ec.Recover(ctx, r))
3478 0 ret = graphql.Null
3479 0 }
3480 }()
3481 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3482 0 ctx = rctx // use context from middleware stack in children
3483 0 return obj.Date, nil
3484 0 })
3485 0 if err != nil {
3486 0 ec.Error(ctx, err)
3487 0 return graphql.Null
3488 0 }
3489 0 if resTmp == nil {
3490 0 if !graphql.HasFieldError(ctx, fc) {
3491 0 ec.Errorf(ctx, "must not be null")
3492 0 }
3493 0 return graphql.Null
3494 }
3495 0 res := resTmp.(time.Time)
3496 0 fc.Result = res
3497 0 return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
3498 }
3499
3500 0 func (ec *executionContext) fieldContext_ProposalEvent_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3501 0 fc = &graphql.FieldContext{
3502 0 Object: "ProposalEvent",
3503 0 Field: field,
3504 0 IsMethod: false,
3505 0 IsResolver: false,
3506 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3507 0 return nil, errors.New("field of type Time does not have child fields")
3508 0 },
3509 }
3510 0 return fc, nil
3511 }
3512
3513 0 func (ec *executionContext) _ProposalEvent_proposal(ctx context.Context, field graphql.CollectedField, obj *model.ProposalEvent) (ret graphql.Marshaler) {
3514 0 fc, err := ec.fieldContext_ProposalEvent_proposal(ctx, field)
3515 0 if err != nil {
3516 0 return graphql.Null
3517 0 }
3518 0 ctx = graphql.WithFieldContext(ctx, fc)
3519 0 defer func() {
3520 0 if r := recover(); r != nil {
3521 0 ec.Error(ctx, ec.Recover(ctx, r))
3522 0 ret = graphql.Null
3523 0 }
3524 }()
3525 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3526 0 ctx = rctx // use context from middleware stack in children
3527 0 return obj.Proposal, nil
3528 0 })
3529 0 if err != nil {
3530 0 ec.Error(ctx, err)
3531 0 return graphql.Null
3532 0 }
3533 0 if resTmp == nil {
3534 0 if !graphql.HasFieldError(ctx, fc) {
3535 0 ec.Errorf(ctx, "must not be null")
3536 0 }
3537 0 return graphql.Null
3538 }
3539 0 res := resTmp.(*model.Proposal)
3540 0 fc.Result = res
3541 0 return ec.marshalNProposal2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProposal(ctx, field.Selections, res)
3542 }
3543
3544 0 func (ec *executionContext) fieldContext_ProposalEvent_proposal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3545 0 fc = &graphql.FieldContext{
3546 0 Object: "ProposalEvent",
3547 0 Field: field,
3548 0 IsMethod: false,
3549 0 IsResolver: false,
3550 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3551 0 switch field.Name {
3552 0 case "id":
3553 0 return ec.fieldContext_Proposal_id(ctx, field)
3554 0 case "space":
3555 0 return ec.fieldContext_Proposal_space(ctx, field)
3556 0 case "title":
3557 0 return ec.fieldContext_Proposal_title(ctx, field)
3558 0 case "rationale":
3559 0 return ec.fieldContext_Proposal_rationale(ctx, field)
3560 0 case "baseRev":
3561 0 return ec.fieldContext_Proposal_baseRev(ctx, field)
3562 0 case "branch":
3563 0 return ec.fieldContext_Proposal_branch(ctx, field)
3564 0 case "state":
3565 0 return ec.fieldContext_Proposal_state(ctx, field)
3566 0 case "approval":
3567 0 return ec.fieldContext_Proposal_approval(ctx, field)
3568 0 case "mergedRev":
3569 0 return ec.fieldContext_Proposal_mergedRev(ctx, field)
3570 0 case "agent":
3571 0 return ec.fieldContext_Proposal_agent(ctx, field)
3572 0 case "agentSession":
3573 0 return ec.fieldContext_Proposal_agentSession(ctx, field)
3574 0 case "created":
3575 0 return ec.fieldContext_Proposal_created(ctx, field)
3576 0 case "resolved":
3577 0 return ec.fieldContext_Proposal_resolved(ctx, field)
3578 }
3579 0 return nil, fmt.Errorf("no field named %q was found under type Proposal", field.Name)
3580 },
3581 }
3582 0 return fc, nil
3583 }
3584
3585 0 func (ec *executionContext) _Query_spaces(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3586 0 fc, err := ec.fieldContext_Query_spaces(ctx, field)
3587 0 if err != nil {
3588 0 return graphql.Null
3589 0 }
3590 0 ctx = graphql.WithFieldContext(ctx, fc)
3591 0 defer func() {
3592 0 if r := recover(); r != nil {
3593 0 ec.Error(ctx, ec.Recover(ctx, r))
3594 0 ret = graphql.Null
3595 0 }
3596 }()
3597 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3598 0 ctx = rctx // use context from middleware stack in children
3599 0 return ec.resolvers.Query().Spaces(rctx)
3600 0 })
3601 0 if err != nil {
3602 0 ec.Error(ctx, err)
3603 0 return graphql.Null
3604 0 }
3605 0 if resTmp == nil {
3606 0 if !graphql.HasFieldError(ctx, fc) {
3607 0 ec.Errorf(ctx, "must not be null")
3608 0 }
3609 0 return graphql.Null
3610 }
3611 0 res := resTmp.([]*model.Space)
3612 0 fc.Result = res
3613 0 return ec.marshalNSpace2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSpaceᚄ(ctx, field.Selections, res)
3614 }
3615
3616 0 func (ec *executionContext) fieldContext_Query_spaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3617 0 fc = &graphql.FieldContext{
3618 0 Object: "Query",
3619 0 Field: field,
3620 0 IsMethod: true,
3621 0 IsResolver: true,
3622 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3623 0 switch field.Name {
3624 0 case "owner":
3625 0 return ec.fieldContext_Space_owner(ctx, field)
3626 0 case "name":
3627 0 return ec.fieldContext_Space_name(ctx, field)
3628 0 case "ref":
3629 0 return ec.fieldContext_Space_ref(ctx, field)
3630 0 case "created":
3631 0 return ec.fieldContext_Space_created(ctx, field)
3632 0 case "approvedRev":
3633 0 return ec.fieldContext_Space_approvedRev(ctx, field)
3634 }
3635 0 return nil, fmt.Errorf("no field named %q was found under type Space", field.Name)
3636 },
3637 }
3638 0 return fc, nil
3639 }
3640
3641 0 func (ec *executionContext) _Query_space(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3642 0 fc, err := ec.fieldContext_Query_space(ctx, field)
3643 0 if err != nil {
3644 0 return graphql.Null
3645 0 }
3646 0 ctx = graphql.WithFieldContext(ctx, fc)
3647 0 defer func() {
3648 0 if r := recover(); r != nil {
3649 0 ec.Error(ctx, ec.Recover(ctx, r))
3650 0 ret = graphql.Null
3651 0 }
3652 }()
3653 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3654 0 ctx = rctx // use context from middleware stack in children
3655 0 return ec.resolvers.Query().Space(rctx, fc.Args["owner"].(string), fc.Args["name"].(string))
3656 0 })
3657 0 if err != nil {
3658 0 ec.Error(ctx, err)
3659 0 return graphql.Null
3660 0 }
3661 0 if resTmp == nil {
3662 0 return graphql.Null
3663 0 }
3664 0 res := resTmp.(*model.Space)
3665 0 fc.Result = res
3666 0 return ec.marshalOSpace2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSpace(ctx, field.Selections, res)
3667 }
3668
3669 0 func (ec *executionContext) fieldContext_Query_space(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3670 0 fc = &graphql.FieldContext{
3671 0 Object: "Query",
3672 0 Field: field,
3673 0 IsMethod: true,
3674 0 IsResolver: true,
3675 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3676 0 switch field.Name {
3677 0 case "owner":
3678 0 return ec.fieldContext_Space_owner(ctx, field)
3679 0 case "name":
3680 0 return ec.fieldContext_Space_name(ctx, field)
3681 0 case "ref":
3682 0 return ec.fieldContext_Space_ref(ctx, field)
3683 0 case "created":
3684 0 return ec.fieldContext_Space_created(ctx, field)
3685 0 case "approvedRev":
3686 0 return ec.fieldContext_Space_approvedRev(ctx, field)
3687 }
3688 0 return nil, fmt.Errorf("no field named %q was found under type Space", field.Name)
3689 },
3690 }
3691 0 defer func() {
3692 0 if r := recover(); r != nil {
3693 0 err = ec.Recover(ctx, r)
3694 0 ec.Error(ctx, err)
3695 0 }
3696 }()
3697 0 ctx = graphql.WithFieldContext(ctx, fc)
3698 0 if fc.Args, err = ec.field_Query_space_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
3699 0 ec.Error(ctx, err)
3700 0 return fc, err
3701 0 }
3702 0 return fc, nil
3703 }
3704
3705 0 func (ec *executionContext) _Query_document(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3706 0 fc, err := ec.fieldContext_Query_document(ctx, field)
3707 0 if err != nil {
3708 0 return graphql.Null
3709 0 }
3710 0 ctx = graphql.WithFieldContext(ctx, fc)
3711 0 defer func() {
3712 0 if r := recover(); r != nil {
3713 0 ec.Error(ctx, ec.Recover(ctx, r))
3714 0 ret = graphql.Null
3715 0 }
3716 }()
3717 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3718 0 ctx = rctx // use context from middleware stack in children
3719 0 return ec.resolvers.Query().Document(rctx, fc.Args["space"].(string), fc.Args["id"].(*string), fc.Args["path"].(*string), fc.Args["rev"].(*string))
3720 0 })
3721 0 if err != nil {
3722 0 ec.Error(ctx, err)
3723 0 return graphql.Null
3724 0 }
3725 0 if resTmp == nil {
3726 0 return graphql.Null
3727 0 }
3728 0 res := resTmp.(*model.Document)
3729 0 fc.Result = res
3730 0 return ec.marshalODocument2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐDocument(ctx, field.Selections, res)
3731 }
3732
3733 0 func (ec *executionContext) fieldContext_Query_document(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3734 0 fc = &graphql.FieldContext{
3735 0 Object: "Query",
3736 0 Field: field,
3737 0 IsMethod: true,
3738 0 IsResolver: true,
3739 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3740 0 switch field.Name {
3741 0 case "space":
3742 0 return ec.fieldContext_Document_space(ctx, field)
3743 0 case "id":
3744 0 return ec.fieldContext_Document_id(ctx, field)
3745 0 case "docId":
3746 0 return ec.fieldContext_Document_docId(ctx, field)
3747 0 case "path":
3748 0 return ec.fieldContext_Document_path(ctx, field)
3749 0 case "rev":
3750 0 return ec.fieldContext_Document_rev(ctx, field)
3751 0 case "blob":
3752 0 return ec.fieldContext_Document_blob(ctx, field)
3753 0 case "pinned":
3754 0 return ec.fieldContext_Document_pinned(ctx, field)
3755 0 case "title":
3756 0 return ec.fieldContext_Document_title(ctx, field)
3757 0 case "status":
3758 0 return ec.fieldContext_Document_status(ctx, field)
3759 0 case "section":
3760 0 return ec.fieldContext_Document_section(ctx, field)
3761 0 case "summary":
3762 0 return ec.fieldContext_Document_summary(ctx, field)
3763 0 case "type":
3764 0 return ec.fieldContext_Document_type(ctx, field)
3765 0 case "supersedes":
3766 0 return ec.fieldContext_Document_supersedes(ctx, field)
3767 0 case "tags":
3768 0 return ec.fieldContext_Document_tags(ctx, field)
3769 0 case "owners":
3770 0 return ec.fieldContext_Document_owners(ctx, field)
3771 0 case "markdown":
3772 0 return ec.fieldContext_Document_markdown(ctx, field)
3773 }
3774 0 return nil, fmt.Errorf("no field named %q was found under type Document", field.Name)
3775 },
3776 }
3777 0 defer func() {
3778 0 if r := recover(); r != nil {
3779 0 err = ec.Recover(ctx, r)
3780 0 ec.Error(ctx, err)
3781 0 }
3782 }()
3783 0 ctx = graphql.WithFieldContext(ctx, fc)
3784 0 if fc.Args, err = ec.field_Query_document_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
3785 0 ec.Error(ctx, err)
3786 0 return fc, err
3787 0 }
3788 0 return fc, nil
3789 }
3790
3791 0 func (ec *executionContext) _Query_documents(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3792 0 fc, err := ec.fieldContext_Query_documents(ctx, field)
3793 0 if err != nil {
3794 0 return graphql.Null
3795 0 }
3796 0 ctx = graphql.WithFieldContext(ctx, fc)
3797 0 defer func() {
3798 0 if r := recover(); r != nil {
3799 0 ec.Error(ctx, ec.Recover(ctx, r))
3800 0 ret = graphql.Null
3801 0 }
3802 }()
3803 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3804 0 ctx = rctx // use context from middleware stack in children
3805 0 return ec.resolvers.Query().Documents(rctx, fc.Args["space"].(string), fc.Args["rev"].(*string))
3806 0 })
3807 0 if err != nil {
3808 0 ec.Error(ctx, err)
3809 0 return graphql.Null
3810 0 }
3811 0 if resTmp == nil {
3812 0 if !graphql.HasFieldError(ctx, fc) {
3813 0 ec.Errorf(ctx, "must not be null")
3814 0 }
3815 0 return graphql.Null
3816 }
3817 0 res := resTmp.([]*model.Document)
3818 0 fc.Result = res
3819 0 return ec.marshalNDocument2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐDocumentᚄ(ctx, field.Selections, res)
3820 }
3821
3822 0 func (ec *executionContext) fieldContext_Query_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3823 0 fc = &graphql.FieldContext{
3824 0 Object: "Query",
3825 0 Field: field,
3826 0 IsMethod: true,
3827 0 IsResolver: true,
3828 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3829 0 switch field.Name {
3830 0 case "space":
3831 0 return ec.fieldContext_Document_space(ctx, field)
3832 0 case "id":
3833 0 return ec.fieldContext_Document_id(ctx, field)
3834 0 case "docId":
3835 0 return ec.fieldContext_Document_docId(ctx, field)
3836 0 case "path":
3837 0 return ec.fieldContext_Document_path(ctx, field)
3838 0 case "rev":
3839 0 return ec.fieldContext_Document_rev(ctx, field)
3840 0 case "blob":
3841 0 return ec.fieldContext_Document_blob(ctx, field)
3842 0 case "pinned":
3843 0 return ec.fieldContext_Document_pinned(ctx, field)
3844 0 case "title":
3845 0 return ec.fieldContext_Document_title(ctx, field)
3846 0 case "status":
3847 0 return ec.fieldContext_Document_status(ctx, field)
3848 0 case "section":
3849 0 return ec.fieldContext_Document_section(ctx, field)
3850 0 case "summary":
3851 0 return ec.fieldContext_Document_summary(ctx, field)
3852 0 case "type":
3853 0 return ec.fieldContext_Document_type(ctx, field)
3854 0 case "supersedes":
3855 0 return ec.fieldContext_Document_supersedes(ctx, field)
3856 0 case "tags":
3857 0 return ec.fieldContext_Document_tags(ctx, field)
3858 0 case "owners":
3859 0 return ec.fieldContext_Document_owners(ctx, field)
3860 0 case "markdown":
3861 0 return ec.fieldContext_Document_markdown(ctx, field)
3862 }
3863 0 return nil, fmt.Errorf("no field named %q was found under type Document", field.Name)
3864 },
3865 }
3866 0 defer func() {
3867 0 if r := recover(); r != nil {
3868 0 err = ec.Recover(ctx, r)
3869 0 ec.Error(ctx, err)
3870 0 }
3871 }()
3872 0 ctx = graphql.WithFieldContext(ctx, fc)
3873 0 if fc.Args, err = ec.field_Query_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
3874 0 ec.Error(ctx, err)
3875 0 return fc, err
3876 0 }
3877 0 return fc, nil
3878 }
3879
3880 0 func (ec *executionContext) _Query_search(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3881 0 fc, err := ec.fieldContext_Query_search(ctx, field)
3882 0 if err != nil {
3883 0 return graphql.Null
3884 0 }
3885 0 ctx = graphql.WithFieldContext(ctx, fc)
3886 0 defer func() {
3887 0 if r := recover(); r != nil {
3888 0 ec.Error(ctx, ec.Recover(ctx, r))
3889 0 ret = graphql.Null
3890 0 }
3891 }()
3892 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3893 0 ctx = rctx // use context from middleware stack in children
3894 0 return ec.resolvers.Query().Search(rctx, fc.Args["query"].(string), fc.Args["spaces"].([]string), fc.Args["limit"].(*int), fc.Args["offset"].(*int))
3895 0 })
3896 0 if err != nil {
3897 0 ec.Error(ctx, err)
3898 0 return graphql.Null
3899 0 }
3900 0 if resTmp == nil {
3901 0 if !graphql.HasFieldError(ctx, fc) {
3902 0 ec.Errorf(ctx, "must not be null")
3903 0 }
3904 0 return graphql.Null
3905 }
3906 0 res := resTmp.(*model.SearchResults)
3907 0 fc.Result = res
3908 0 return ec.marshalNSearchResults2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSearchResults(ctx, field.Selections, res)
3909 }
3910
3911 0 func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3912 0 fc = &graphql.FieldContext{
3913 0 Object: "Query",
3914 0 Field: field,
3915 0 IsMethod: true,
3916 0 IsResolver: true,
3917 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3918 0 switch field.Name {
3919 0 case "total":
3920 0 return ec.fieldContext_SearchResults_total(ctx, field)
3921 0 case "took":
3922 0 return ec.fieldContext_SearchResults_took(ctx, field)
3923 0 case "hits":
3924 0 return ec.fieldContext_SearchResults_hits(ctx, field)
3925 }
3926 0 return nil, fmt.Errorf("no field named %q was found under type SearchResults", field.Name)
3927 },
3928 }
3929 0 defer func() {
3930 0 if r := recover(); r != nil {
3931 0 err = ec.Recover(ctx, r)
3932 0 ec.Error(ctx, err)
3933 0 }
3934 }()
3935 0 ctx = graphql.WithFieldContext(ctx, fc)
3936 0 if fc.Args, err = ec.field_Query_search_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
3937 0 ec.Error(ctx, err)
3938 0 return fc, err
3939 0 }
3940 0 return fc, nil
3941 }
3942
3943 0 func (ec *executionContext) _Query_projects(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3944 0 fc, err := ec.fieldContext_Query_projects(ctx, field)
3945 0 if err != nil {
3946 0 return graphql.Null
3947 0 }
3948 0 ctx = graphql.WithFieldContext(ctx, fc)
3949 0 defer func() {
3950 0 if r := recover(); r != nil {
3951 0 ec.Error(ctx, ec.Recover(ctx, r))
3952 0 ret = graphql.Null
3953 0 }
3954 }()
3955 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3956 0 ctx = rctx // use context from middleware stack in children
3957 0 return ec.resolvers.Query().Projects(rctx)
3958 0 })
3959 0 if err != nil {
3960 0 ec.Error(ctx, err)
3961 0 return graphql.Null
3962 0 }
3963 0 if resTmp == nil {
3964 0 if !graphql.HasFieldError(ctx, fc) {
3965 0 ec.Errorf(ctx, "must not be null")
3966 0 }
3967 0 return graphql.Null
3968 }
3969 0 res := resTmp.([]*model.Project)
3970 0 fc.Result = res
3971 0 return ec.marshalNProject2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProjectᚄ(ctx, field.Selections, res)
3972 }
3973
3974 0 func (ec *executionContext) fieldContext_Query_projects(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3975 0 fc = &graphql.FieldContext{
3976 0 Object: "Query",
3977 0 Field: field,
3978 0 IsMethod: true,
3979 0 IsResolver: true,
3980 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
3981 0 switch field.Name {
3982 0 case "owner":
3983 0 return ec.fieldContext_Project_owner(ctx, field)
3984 0 case "name":
3985 0 return ec.fieldContext_Project_name(ctx, field)
3986 0 case "ref":
3987 0 return ec.fieldContext_Project_ref(ctx, field)
3988 0 case "meta":
3989 0 return ec.fieldContext_Project_meta(ctx, field)
3990 0 case "spaces":
3991 0 return ec.fieldContext_Project_spaces(ctx, field)
3992 }
3993 0 return nil, fmt.Errorf("no field named %q was found under type Project", field.Name)
3994 },
3995 }
3996 0 return fc, nil
3997 }
3998
3999 0 func (ec *executionContext) _Query_project(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
4000 0 fc, err := ec.fieldContext_Query_project(ctx, field)
4001 0 if err != nil {
4002 0 return graphql.Null
4003 0 }
4004 0 ctx = graphql.WithFieldContext(ctx, fc)
4005 0 defer func() {
4006 0 if r := recover(); r != nil {
4007 0 ec.Error(ctx, ec.Recover(ctx, r))
4008 0 ret = graphql.Null
4009 0 }
4010 }()
4011 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4012 0 ctx = rctx // use context from middleware stack in children
4013 0 return ec.resolvers.Query().Project(rctx, fc.Args["owner"].(string), fc.Args["name"].(string))
4014 0 })
4015 0 if err != nil {
4016 0 ec.Error(ctx, err)
4017 0 return graphql.Null
4018 0 }
4019 0 if resTmp == nil {
4020 0 return graphql.Null
4021 0 }
4022 0 res := resTmp.(*model.Project)
4023 0 fc.Result = res
4024 0 return ec.marshalOProject2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProject(ctx, field.Selections, res)
4025 }
4026
4027 0 func (ec *executionContext) fieldContext_Query_project(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4028 0 fc = &graphql.FieldContext{
4029 0 Object: "Query",
4030 0 Field: field,
4031 0 IsMethod: true,
4032 0 IsResolver: true,
4033 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4034 0 switch field.Name {
4035 0 case "owner":
4036 0 return ec.fieldContext_Project_owner(ctx, field)
4037 0 case "name":
4038 0 return ec.fieldContext_Project_name(ctx, field)
4039 0 case "ref":
4040 0 return ec.fieldContext_Project_ref(ctx, field)
4041 0 case "meta":
4042 0 return ec.fieldContext_Project_meta(ctx, field)
4043 0 case "spaces":
4044 0 return ec.fieldContext_Project_spaces(ctx, field)
4045 }
4046 0 return nil, fmt.Errorf("no field named %q was found under type Project", field.Name)
4047 },
4048 }
4049 0 defer func() {
4050 0 if r := recover(); r != nil {
4051 0 err = ec.Recover(ctx, r)
4052 0 ec.Error(ctx, err)
4053 0 }
4054 }()
4055 0 ctx = graphql.WithFieldContext(ctx, fc)
4056 0 if fc.Args, err = ec.field_Query_project_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
4057 0 ec.Error(ctx, err)
4058 0 return fc, err
4059 0 }
4060 0 return fc, nil
4061 }
4062
4063 0 func (ec *executionContext) _Query_proposals(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
4064 0 fc, err := ec.fieldContext_Query_proposals(ctx, field)
4065 0 if err != nil {
4066 0 return graphql.Null
4067 0 }
4068 0 ctx = graphql.WithFieldContext(ctx, fc)
4069 0 defer func() {
4070 0 if r := recover(); r != nil {
4071 0 ec.Error(ctx, ec.Recover(ctx, r))
4072 0 ret = graphql.Null
4073 0 }
4074 }()
4075 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4076 0 ctx = rctx // use context from middleware stack in children
4077 0 return ec.resolvers.Query().Proposals(rctx, fc.Args["space"].(string), fc.Args["state"].(model.ProposalState))
4078 0 })
4079 0 if err != nil {
4080 0 ec.Error(ctx, err)
4081 0 return graphql.Null
4082 0 }
4083 0 if resTmp == nil {
4084 0 if !graphql.HasFieldError(ctx, fc) {
4085 0 ec.Errorf(ctx, "must not be null")
4086 0 }
4087 0 return graphql.Null
4088 }
4089 0 res := resTmp.([]*model.Proposal)
4090 0 fc.Result = res
4091 0 return ec.marshalNProposal2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProposalᚄ(ctx, field.Selections, res)
4092 }
4093
4094 0 func (ec *executionContext) fieldContext_Query_proposals(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4095 0 fc = &graphql.FieldContext{
4096 0 Object: "Query",
4097 0 Field: field,
4098 0 IsMethod: true,
4099 0 IsResolver: true,
4100 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4101 0 switch field.Name {
4102 0 case "id":
4103 0 return ec.fieldContext_Proposal_id(ctx, field)
4104 0 case "space":
4105 0 return ec.fieldContext_Proposal_space(ctx, field)
4106 0 case "title":
4107 0 return ec.fieldContext_Proposal_title(ctx, field)
4108 0 case "rationale":
4109 0 return ec.fieldContext_Proposal_rationale(ctx, field)
4110 0 case "baseRev":
4111 0 return ec.fieldContext_Proposal_baseRev(ctx, field)
4112 0 case "branch":
4113 0 return ec.fieldContext_Proposal_branch(ctx, field)
4114 0 case "state":
4115 0 return ec.fieldContext_Proposal_state(ctx, field)
4116 0 case "approval":
4117 0 return ec.fieldContext_Proposal_approval(ctx, field)
4118 0 case "mergedRev":
4119 0 return ec.fieldContext_Proposal_mergedRev(ctx, field)
4120 0 case "agent":
4121 0 return ec.fieldContext_Proposal_agent(ctx, field)
4122 0 case "agentSession":
4123 0 return ec.fieldContext_Proposal_agentSession(ctx, field)
4124 0 case "created":
4125 0 return ec.fieldContext_Proposal_created(ctx, field)
4126 0 case "resolved":
4127 0 return ec.fieldContext_Proposal_resolved(ctx, field)
4128 }
4129 0 return nil, fmt.Errorf("no field named %q was found under type Proposal", field.Name)
4130 },
4131 }
4132 0 defer func() {
4133 0 if r := recover(); r != nil {
4134 0 err = ec.Recover(ctx, r)
4135 0 ec.Error(ctx, err)
4136 0 }
4137 }()
4138 0 ctx = graphql.WithFieldContext(ctx, fc)
4139 0 if fc.Args, err = ec.field_Query_proposals_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
4140 0 ec.Error(ctx, err)
4141 0 return fc, err
4142 0 }
4143 0 return fc, nil
4144 }
4145
4146 0 func (ec *executionContext) _Query_userWebhooks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
4147 0 fc, err := ec.fieldContext_Query_userWebhooks(ctx, field)
4148 0 if err != nil {
4149 0 return graphql.Null
4150 0 }
4151 0 ctx = graphql.WithFieldContext(ctx, fc)
4152 0 defer func() {
4153 0 if r := recover(); r != nil {
4154 0 ec.Error(ctx, ec.Recover(ctx, r))
4155 0 ret = graphql.Null
4156 0 }
4157 }()
4158 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4159 0 ctx = rctx // use context from middleware stack in children
4160 0 return ec.resolvers.Query().UserWebhooks(rctx, fc.Args["cursor"].(*model1.Cursor))
4161 0 })
4162 0 if err != nil {
4163 0 ec.Error(ctx, err)
4164 0 return graphql.Null
4165 0 }
4166 0 if resTmp == nil {
4167 0 if !graphql.HasFieldError(ctx, fc) {
4168 0 ec.Errorf(ctx, "must not be null")
4169 0 }
4170 0 return graphql.Null
4171 }
4172 0 res := resTmp.(*model.WebhookSubscriptionCursor)
4173 0 fc.Result = res
4174 0 return ec.marshalNWebhookSubscriptionCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscriptionCursor(ctx, field.Selections, res)
4175 }
4176
4177 0 func (ec *executionContext) fieldContext_Query_userWebhooks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4178 0 fc = &graphql.FieldContext{
4179 0 Object: "Query",
4180 0 Field: field,
4181 0 IsMethod: true,
4182 0 IsResolver: true,
4183 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4184 0 switch field.Name {
4185 0 case "results":
4186 0 return ec.fieldContext_WebhookSubscriptionCursor_results(ctx, field)
4187 0 case "cursor":
4188 0 return ec.fieldContext_WebhookSubscriptionCursor_cursor(ctx, field)
4189 }
4190 0 return nil, fmt.Errorf("no field named %q was found under type WebhookSubscriptionCursor", field.Name)
4191 },
4192 }
4193 0 defer func() {
4194 0 if r := recover(); r != nil {
4195 0 err = ec.Recover(ctx, r)
4196 0 ec.Error(ctx, err)
4197 0 }
4198 }()
4199 0 ctx = graphql.WithFieldContext(ctx, fc)
4200 0 if fc.Args, err = ec.field_Query_userWebhooks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
4201 0 ec.Error(ctx, err)
4202 0 return fc, err
4203 0 }
4204 0 return fc, nil
4205 }
4206
4207 0 func (ec *executionContext) _Query_userWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
4208 0 fc, err := ec.fieldContext_Query_userWebhook(ctx, field)
4209 0 if err != nil {
4210 0 return graphql.Null
4211 0 }
4212 0 ctx = graphql.WithFieldContext(ctx, fc)
4213 0 defer func() {
4214 0 if r := recover(); r != nil {
4215 0 ec.Error(ctx, ec.Recover(ctx, r))
4216 0 ret = graphql.Null
4217 0 }
4218 }()
4219 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4220 0 ctx = rctx // use context from middleware stack in children
4221 0 return ec.resolvers.Query().UserWebhook(rctx, fc.Args["id"].(int))
4222 0 })
4223 0 if err != nil {
4224 0 ec.Error(ctx, err)
4225 0 return graphql.Null
4226 0 }
4227 0 if resTmp == nil {
4228 0 return graphql.Null
4229 0 }
4230 0 res := resTmp.(model.WebhookSubscription)
4231 0 fc.Result = res
4232 0 return ec.marshalOWebhookSubscription2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscription(ctx, field.Selections, res)
4233 }
4234
4235 0 func (ec *executionContext) fieldContext_Query_userWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4236 0 fc = &graphql.FieldContext{
4237 0 Object: "Query",
4238 0 Field: field,
4239 0 IsMethod: true,
4240 0 IsResolver: true,
4241 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4242 0 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
4243 0 },
4244 }
4245 0 defer func() {
4246 0 if r := recover(); r != nil {
4247 0 err = ec.Recover(ctx, r)
4248 0 ec.Error(ctx, err)
4249 0 }
4250 }()
4251 0 ctx = graphql.WithFieldContext(ctx, fc)
4252 0 if fc.Args, err = ec.field_Query_userWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
4253 0 ec.Error(ctx, err)
4254 0 return fc, err
4255 0 }
4256 0 return fc, nil
4257 }
4258
4259 0 func (ec *executionContext) _Query_webhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
4260 0 fc, err := ec.fieldContext_Query_webhook(ctx, field)
4261 0 if err != nil {
4262 0 return graphql.Null
4263 0 }
4264 0 ctx = graphql.WithFieldContext(ctx, fc)
4265 0 defer func() {
4266 0 if r := recover(); r != nil {
4267 0 ec.Error(ctx, ec.Recover(ctx, r))
4268 0 ret = graphql.Null
4269 0 }
4270 }()
4271 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4272 0 ctx = rctx // use context from middleware stack in children
4273 0 return ec.resolvers.Query().Webhook(rctx)
4274 0 })
4275 0 if err != nil {
4276 0 ec.Error(ctx, err)
4277 0 return graphql.Null
4278 0 }
4279 0 if resTmp == nil {
4280 0 if !graphql.HasFieldError(ctx, fc) {
4281 0 ec.Errorf(ctx, "must not be null")
4282 0 }
4283 0 return graphql.Null
4284 }
4285 0 res := resTmp.(model.WebhookPayload)
4286 0 fc.Result = res
4287 0 return ec.marshalNWebhookPayload2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookPayload(ctx, field.Selections, res)
4288 }
4289
4290 0 func (ec *executionContext) fieldContext_Query_webhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4291 0 fc = &graphql.FieldContext{
4292 0 Object: "Query",
4293 0 Field: field,
4294 0 IsMethod: true,
4295 0 IsResolver: true,
4296 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4297 0 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
4298 0 },
4299 }
4300 0 return fc, nil
4301 }
4302
4303 0 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
4304 0 fc, err := ec.fieldContext_Query___type(ctx, field)
4305 0 if err != nil {
4306 0 return graphql.Null
4307 0 }
4308 0 ctx = graphql.WithFieldContext(ctx, fc)
4309 0 defer func() {
4310 0 if r := recover(); r != nil {
4311 0 ec.Error(ctx, ec.Recover(ctx, r))
4312 0 ret = graphql.Null
4313 0 }
4314 }()
4315 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4316 0 ctx = rctx // use context from middleware stack in children
4317 0 return ec.introspectType(fc.Args["name"].(string))
4318 0 })
4319 0 if err != nil {
4320 0 ec.Error(ctx, err)
4321 0 return graphql.Null
4322 0 }
4323 0 if resTmp == nil {
4324 0 return graphql.Null
4325 0 }
4326 0 res := resTmp.(*introspection.Type)
4327 0 fc.Result = res
4328 0 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
4329 }
4330
4331 0 func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4332 0 fc = &graphql.FieldContext{
4333 0 Object: "Query",
4334 0 Field: field,
4335 0 IsMethod: true,
4336 0 IsResolver: false,
4337 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4338 0 switch field.Name {
4339 0 case "kind":
4340 0 return ec.fieldContext___Type_kind(ctx, field)
4341 0 case "name":
4342 0 return ec.fieldContext___Type_name(ctx, field)
4343 0 case "description":
4344 0 return ec.fieldContext___Type_description(ctx, field)
4345 0 case "fields":
4346 0 return ec.fieldContext___Type_fields(ctx, field)
4347 0 case "interfaces":
4348 0 return ec.fieldContext___Type_interfaces(ctx, field)
4349 0 case "possibleTypes":
4350 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
4351 0 case "enumValues":
4352 0 return ec.fieldContext___Type_enumValues(ctx, field)
4353 0 case "inputFields":
4354 0 return ec.fieldContext___Type_inputFields(ctx, field)
4355 0 case "ofType":
4356 0 return ec.fieldContext___Type_ofType(ctx, field)
4357 0 case "specifiedByURL":
4358 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
4359 }
4360 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
4361 },
4362 }
4363 0 defer func() {
4364 0 if r := recover(); r != nil {
4365 0 err = ec.Recover(ctx, r)
4366 0 ec.Error(ctx, err)
4367 0 }
4368 }()
4369 0 ctx = graphql.WithFieldContext(ctx, fc)
4370 0 if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
4371 0 ec.Error(ctx, err)
4372 0 return fc, err
4373 0 }
4374 0 return fc, nil
4375 }
4376
4377 0 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
4378 0 fc, err := ec.fieldContext_Query___schema(ctx, field)
4379 0 if err != nil {
4380 0 return graphql.Null
4381 0 }
4382 0 ctx = graphql.WithFieldContext(ctx, fc)
4383 0 defer func() {
4384 0 if r := recover(); r != nil {
4385 0 ec.Error(ctx, ec.Recover(ctx, r))
4386 0 ret = graphql.Null
4387 0 }
4388 }()
4389 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4390 0 ctx = rctx // use context from middleware stack in children
4391 0 return ec.introspectSchema()
4392 0 })
4393 0 if err != nil {
4394 0 ec.Error(ctx, err)
4395 0 return graphql.Null
4396 0 }
4397 0 if resTmp == nil {
4398 0 return graphql.Null
4399 0 }
4400 0 res := resTmp.(*introspection.Schema)
4401 0 fc.Result = res
4402 0 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
4403 }
4404
4405 0 func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4406 0 fc = &graphql.FieldContext{
4407 0 Object: "Query",
4408 0 Field: field,
4409 0 IsMethod: true,
4410 0 IsResolver: false,
4411 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4412 0 switch field.Name {
4413 0 case "description":
4414 0 return ec.fieldContext___Schema_description(ctx, field)
4415 0 case "types":
4416 0 return ec.fieldContext___Schema_types(ctx, field)
4417 0 case "queryType":
4418 0 return ec.fieldContext___Schema_queryType(ctx, field)
4419 0 case "mutationType":
4420 0 return ec.fieldContext___Schema_mutationType(ctx, field)
4421 0 case "subscriptionType":
4422 0 return ec.fieldContext___Schema_subscriptionType(ctx, field)
4423 0 case "directives":
4424 0 return ec.fieldContext___Schema_directives(ctx, field)
4425 }
4426 0 return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
4427 },
4428 }
4429 0 return fc, nil
4430 }
4431
4432 0 func (ec *executionContext) _SearchHit_space(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4433 0 fc, err := ec.fieldContext_SearchHit_space(ctx, field)
4434 0 if err != nil {
4435 0 return graphql.Null
4436 0 }
4437 0 ctx = graphql.WithFieldContext(ctx, fc)
4438 0 defer func() {
4439 0 if r := recover(); r != nil {
4440 0 ec.Error(ctx, ec.Recover(ctx, r))
4441 0 ret = graphql.Null
4442 0 }
4443 }()
4444 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4445 0 ctx = rctx // use context from middleware stack in children
4446 0 return obj.Space, nil
4447 0 })
4448 0 if err != nil {
4449 0 ec.Error(ctx, err)
4450 0 return graphql.Null
4451 0 }
4452 0 if resTmp == nil {
4453 0 if !graphql.HasFieldError(ctx, fc) {
4454 0 ec.Errorf(ctx, "must not be null")
4455 0 }
4456 0 return graphql.Null
4457 }
4458 0 res := resTmp.(string)
4459 0 fc.Result = res
4460 0 return ec.marshalNString2string(ctx, field.Selections, res)
4461 }
4462
4463 0 func (ec *executionContext) fieldContext_SearchHit_space(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4464 0 fc = &graphql.FieldContext{
4465 0 Object: "SearchHit",
4466 0 Field: field,
4467 0 IsMethod: false,
4468 0 IsResolver: false,
4469 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4470 0 return nil, errors.New("field of type String does not have child fields")
4471 0 },
4472 }
4473 0 return fc, nil
4474 }
4475
4476 0 func (ec *executionContext) _SearchHit_id(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4477 0 fc, err := ec.fieldContext_SearchHit_id(ctx, field)
4478 0 if err != nil {
4479 0 return graphql.Null
4480 0 }
4481 0 ctx = graphql.WithFieldContext(ctx, fc)
4482 0 defer func() {
4483 0 if r := recover(); r != nil {
4484 0 ec.Error(ctx, ec.Recover(ctx, r))
4485 0 ret = graphql.Null
4486 0 }
4487 }()
4488 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4489 0 ctx = rctx // use context from middleware stack in children
4490 0 return obj.ID, nil
4491 0 })
4492 0 if err != nil {
4493 0 ec.Error(ctx, err)
4494 0 return graphql.Null
4495 0 }
4496 0 if resTmp == nil {
4497 0 if !graphql.HasFieldError(ctx, fc) {
4498 0 ec.Errorf(ctx, "must not be null")
4499 0 }
4500 0 return graphql.Null
4501 }
4502 0 res := resTmp.(string)
4503 0 fc.Result = res
4504 0 return ec.marshalNString2string(ctx, field.Selections, res)
4505 }
4506
4507 0 func (ec *executionContext) fieldContext_SearchHit_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4508 0 fc = &graphql.FieldContext{
4509 0 Object: "SearchHit",
4510 0 Field: field,
4511 0 IsMethod: false,
4512 0 IsResolver: false,
4513 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4514 0 return nil, errors.New("field of type String does not have child fields")
4515 0 },
4516 }
4517 0 return fc, nil
4518 }
4519
4520 0 func (ec *executionContext) _SearchHit_rev(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4521 0 fc, err := ec.fieldContext_SearchHit_rev(ctx, field)
4522 0 if err != nil {
4523 0 return graphql.Null
4524 0 }
4525 0 ctx = graphql.WithFieldContext(ctx, fc)
4526 0 defer func() {
4527 0 if r := recover(); r != nil {
4528 0 ec.Error(ctx, ec.Recover(ctx, r))
4529 0 ret = graphql.Null
4530 0 }
4531 }()
4532 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4533 0 ctx = rctx // use context from middleware stack in children
4534 0 return obj.Rev, nil
4535 0 })
4536 0 if err != nil {
4537 0 ec.Error(ctx, err)
4538 0 return graphql.Null
4539 0 }
4540 0 if resTmp == nil {
4541 0 if !graphql.HasFieldError(ctx, fc) {
4542 0 ec.Errorf(ctx, "must not be null")
4543 0 }
4544 0 return graphql.Null
4545 }
4546 0 res := resTmp.(string)
4547 0 fc.Result = res
4548 0 return ec.marshalNString2string(ctx, field.Selections, res)
4549 }
4550
4551 0 func (ec *executionContext) fieldContext_SearchHit_rev(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4552 0 fc = &graphql.FieldContext{
4553 0 Object: "SearchHit",
4554 0 Field: field,
4555 0 IsMethod: false,
4556 0 IsResolver: false,
4557 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4558 0 return nil, errors.New("field of type String does not have child fields")
4559 0 },
4560 }
4561 0 return fc, nil
4562 }
4563
4564 0 func (ec *executionContext) _SearchHit_path(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4565 0 fc, err := ec.fieldContext_SearchHit_path(ctx, field)
4566 0 if err != nil {
4567 0 return graphql.Null
4568 0 }
4569 0 ctx = graphql.WithFieldContext(ctx, fc)
4570 0 defer func() {
4571 0 if r := recover(); r != nil {
4572 0 ec.Error(ctx, ec.Recover(ctx, r))
4573 0 ret = graphql.Null
4574 0 }
4575 }()
4576 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4577 0 ctx = rctx // use context from middleware stack in children
4578 0 return obj.Path, nil
4579 0 })
4580 0 if err != nil {
4581 0 ec.Error(ctx, err)
4582 0 return graphql.Null
4583 0 }
4584 0 if resTmp == nil {
4585 0 if !graphql.HasFieldError(ctx, fc) {
4586 0 ec.Errorf(ctx, "must not be null")
4587 0 }
4588 0 return graphql.Null
4589 }
4590 0 res := resTmp.(string)
4591 0 fc.Result = res
4592 0 return ec.marshalNString2string(ctx, field.Selections, res)
4593 }
4594
4595 0 func (ec *executionContext) fieldContext_SearchHit_path(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4596 0 fc = &graphql.FieldContext{
4597 0 Object: "SearchHit",
4598 0 Field: field,
4599 0 IsMethod: false,
4600 0 IsResolver: false,
4601 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4602 0 return nil, errors.New("field of type String does not have child fields")
4603 0 },
4604 }
4605 0 return fc, nil
4606 }
4607
4608 0 func (ec *executionContext) _SearchHit_anchor(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4609 0 fc, err := ec.fieldContext_SearchHit_anchor(ctx, field)
4610 0 if err != nil {
4611 0 return graphql.Null
4612 0 }
4613 0 ctx = graphql.WithFieldContext(ctx, fc)
4614 0 defer func() {
4615 0 if r := recover(); r != nil {
4616 0 ec.Error(ctx, ec.Recover(ctx, r))
4617 0 ret = graphql.Null
4618 0 }
4619 }()
4620 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4621 0 ctx = rctx // use context from middleware stack in children
4622 0 return obj.Anchor, nil
4623 0 })
4624 0 if err != nil {
4625 0 ec.Error(ctx, err)
4626 0 return graphql.Null
4627 0 }
4628 0 if resTmp == nil {
4629 0 if !graphql.HasFieldError(ctx, fc) {
4630 0 ec.Errorf(ctx, "must not be null")
4631 0 }
4632 0 return graphql.Null
4633 }
4634 0 res := resTmp.(string)
4635 0 fc.Result = res
4636 0 return ec.marshalNString2string(ctx, field.Selections, res)
4637 }
4638
4639 0 func (ec *executionContext) fieldContext_SearchHit_anchor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4640 0 fc = &graphql.FieldContext{
4641 0 Object: "SearchHit",
4642 0 Field: field,
4643 0 IsMethod: false,
4644 0 IsResolver: false,
4645 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4646 0 return nil, errors.New("field of type String does not have child fields")
4647 0 },
4648 }
4649 0 return fc, nil
4650 }
4651
4652 0 func (ec *executionContext) _SearchHit_title(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4653 0 fc, err := ec.fieldContext_SearchHit_title(ctx, field)
4654 0 if err != nil {
4655 0 return graphql.Null
4656 0 }
4657 0 ctx = graphql.WithFieldContext(ctx, fc)
4658 0 defer func() {
4659 0 if r := recover(); r != nil {
4660 0 ec.Error(ctx, ec.Recover(ctx, r))
4661 0 ret = graphql.Null
4662 0 }
4663 }()
4664 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4665 0 ctx = rctx // use context from middleware stack in children
4666 0 return obj.Title, nil
4667 0 })
4668 0 if err != nil {
4669 0 ec.Error(ctx, err)
4670 0 return graphql.Null
4671 0 }
4672 0 if resTmp == nil {
4673 0 if !graphql.HasFieldError(ctx, fc) {
4674 0 ec.Errorf(ctx, "must not be null")
4675 0 }
4676 0 return graphql.Null
4677 }
4678 0 res := resTmp.(string)
4679 0 fc.Result = res
4680 0 return ec.marshalNString2string(ctx, field.Selections, res)
4681 }
4682
4683 0 func (ec *executionContext) fieldContext_SearchHit_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4684 0 fc = &graphql.FieldContext{
4685 0 Object: "SearchHit",
4686 0 Field: field,
4687 0 IsMethod: false,
4688 0 IsResolver: false,
4689 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4690 0 return nil, errors.New("field of type String does not have child fields")
4691 0 },
4692 }
4693 0 return fc, nil
4694 }
4695
4696 0 func (ec *executionContext) _SearchHit_section(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4697 0 fc, err := ec.fieldContext_SearchHit_section(ctx, field)
4698 0 if err != nil {
4699 0 return graphql.Null
4700 0 }
4701 0 ctx = graphql.WithFieldContext(ctx, fc)
4702 0 defer func() {
4703 0 if r := recover(); r != nil {
4704 0 ec.Error(ctx, ec.Recover(ctx, r))
4705 0 ret = graphql.Null
4706 0 }
4707 }()
4708 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4709 0 ctx = rctx // use context from middleware stack in children
4710 0 return obj.Section, nil
4711 0 })
4712 0 if err != nil {
4713 0 ec.Error(ctx, err)
4714 0 return graphql.Null
4715 0 }
4716 0 if resTmp == nil {
4717 0 if !graphql.HasFieldError(ctx, fc) {
4718 0 ec.Errorf(ctx, "must not be null")
4719 0 }
4720 0 return graphql.Null
4721 }
4722 0 res := resTmp.(string)
4723 0 fc.Result = res
4724 0 return ec.marshalNString2string(ctx, field.Selections, res)
4725 }
4726
4727 0 func (ec *executionContext) fieldContext_SearchHit_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4728 0 fc = &graphql.FieldContext{
4729 0 Object: "SearchHit",
4730 0 Field: field,
4731 0 IsMethod: false,
4732 0 IsResolver: false,
4733 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4734 0 return nil, errors.New("field of type String does not have child fields")
4735 0 },
4736 }
4737 0 return fc, nil
4738 }
4739
4740 0 func (ec *executionContext) _SearchHit_lang(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4741 0 fc, err := ec.fieldContext_SearchHit_lang(ctx, field)
4742 0 if err != nil {
4743 0 return graphql.Null
4744 0 }
4745 0 ctx = graphql.WithFieldContext(ctx, fc)
4746 0 defer func() {
4747 0 if r := recover(); r != nil {
4748 0 ec.Error(ctx, ec.Recover(ctx, r))
4749 0 ret = graphql.Null
4750 0 }
4751 }()
4752 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4753 0 ctx = rctx // use context from middleware stack in children
4754 0 return obj.Lang, nil
4755 0 })
4756 0 if err != nil {
4757 0 ec.Error(ctx, err)
4758 0 return graphql.Null
4759 0 }
4760 0 if resTmp == nil {
4761 0 if !graphql.HasFieldError(ctx, fc) {
4762 0 ec.Errorf(ctx, "must not be null")
4763 0 }
4764 0 return graphql.Null
4765 }
4766 0 res := resTmp.(string)
4767 0 fc.Result = res
4768 0 return ec.marshalNString2string(ctx, field.Selections, res)
4769 }
4770
4771 0 func (ec *executionContext) fieldContext_SearchHit_lang(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4772 0 fc = &graphql.FieldContext{
4773 0 Object: "SearchHit",
4774 0 Field: field,
4775 0 IsMethod: false,
4776 0 IsResolver: false,
4777 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4778 0 return nil, errors.New("field of type String does not have child fields")
4779 0 },
4780 }
4781 0 return fc, nil
4782 }
4783
4784 0 func (ec *executionContext) _SearchHit_score(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4785 0 fc, err := ec.fieldContext_SearchHit_score(ctx, field)
4786 0 if err != nil {
4787 0 return graphql.Null
4788 0 }
4789 0 ctx = graphql.WithFieldContext(ctx, fc)
4790 0 defer func() {
4791 0 if r := recover(); r != nil {
4792 0 ec.Error(ctx, ec.Recover(ctx, r))
4793 0 ret = graphql.Null
4794 0 }
4795 }()
4796 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4797 0 ctx = rctx // use context from middleware stack in children
4798 0 return obj.Score, nil
4799 0 })
4800 0 if err != nil {
4801 0 ec.Error(ctx, err)
4802 0 return graphql.Null
4803 0 }
4804 0 if resTmp == nil {
4805 0 if !graphql.HasFieldError(ctx, fc) {
4806 0 ec.Errorf(ctx, "must not be null")
4807 0 }
4808 0 return graphql.Null
4809 }
4810 0 res := resTmp.(float64)
4811 0 fc.Result = res
4812 0 return ec.marshalNFloat2float64(ctx, field.Selections, res)
4813 }
4814
4815 0 func (ec *executionContext) fieldContext_SearchHit_score(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4816 0 fc = &graphql.FieldContext{
4817 0 Object: "SearchHit",
4818 0 Field: field,
4819 0 IsMethod: false,
4820 0 IsResolver: false,
4821 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4822 0 return nil, errors.New("field of type Float does not have child fields")
4823 0 },
4824 }
4825 0 return fc, nil
4826 }
4827
4828 0 func (ec *executionContext) _SearchHit_snippet(ctx context.Context, field graphql.CollectedField, obj *model.SearchHit) (ret graphql.Marshaler) {
4829 0 fc, err := ec.fieldContext_SearchHit_snippet(ctx, field)
4830 0 if err != nil {
4831 0 return graphql.Null
4832 0 }
4833 0 ctx = graphql.WithFieldContext(ctx, fc)
4834 0 defer func() {
4835 0 if r := recover(); r != nil {
4836 0 ec.Error(ctx, ec.Recover(ctx, r))
4837 0 ret = graphql.Null
4838 0 }
4839 }()
4840 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4841 0 ctx = rctx // use context from middleware stack in children
4842 0 return obj.Snippet, nil
4843 0 })
4844 0 if err != nil {
4845 0 ec.Error(ctx, err)
4846 0 return graphql.Null
4847 0 }
4848 0 if resTmp == nil {
4849 0 if !graphql.HasFieldError(ctx, fc) {
4850 0 ec.Errorf(ctx, "must not be null")
4851 0 }
4852 0 return graphql.Null
4853 }
4854 0 res := resTmp.(string)
4855 0 fc.Result = res
4856 0 return ec.marshalNString2string(ctx, field.Selections, res)
4857 }
4858
4859 0 func (ec *executionContext) fieldContext_SearchHit_snippet(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4860 0 fc = &graphql.FieldContext{
4861 0 Object: "SearchHit",
4862 0 Field: field,
4863 0 IsMethod: false,
4864 0 IsResolver: false,
4865 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4866 0 return nil, errors.New("field of type String does not have child fields")
4867 0 },
4868 }
4869 0 return fc, nil
4870 }
4871
4872 0 func (ec *executionContext) _SearchResults_total(ctx context.Context, field graphql.CollectedField, obj *model.SearchResults) (ret graphql.Marshaler) {
4873 0 fc, err := ec.fieldContext_SearchResults_total(ctx, field)
4874 0 if err != nil {
4875 0 return graphql.Null
4876 0 }
4877 0 ctx = graphql.WithFieldContext(ctx, fc)
4878 0 defer func() {
4879 0 if r := recover(); r != nil {
4880 0 ec.Error(ctx, ec.Recover(ctx, r))
4881 0 ret = graphql.Null
4882 0 }
4883 }()
4884 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4885 0 ctx = rctx // use context from middleware stack in children
4886 0 return obj.Total, nil
4887 0 })
4888 0 if err != nil {
4889 0 ec.Error(ctx, err)
4890 0 return graphql.Null
4891 0 }
4892 0 if resTmp == nil {
4893 0 if !graphql.HasFieldError(ctx, fc) {
4894 0 ec.Errorf(ctx, "must not be null")
4895 0 }
4896 0 return graphql.Null
4897 }
4898 0 res := resTmp.(int)
4899 0 fc.Result = res
4900 0 return ec.marshalNInt2int(ctx, field.Selections, res)
4901 }
4902
4903 0 func (ec *executionContext) fieldContext_SearchResults_total(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4904 0 fc = &graphql.FieldContext{
4905 0 Object: "SearchResults",
4906 0 Field: field,
4907 0 IsMethod: false,
4908 0 IsResolver: false,
4909 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4910 0 return nil, errors.New("field of type Int does not have child fields")
4911 0 },
4912 }
4913 0 return fc, nil
4914 }
4915
4916 0 func (ec *executionContext) _SearchResults_took(ctx context.Context, field graphql.CollectedField, obj *model.SearchResults) (ret graphql.Marshaler) {
4917 0 fc, err := ec.fieldContext_SearchResults_took(ctx, field)
4918 0 if err != nil {
4919 0 return graphql.Null
4920 0 }
4921 0 ctx = graphql.WithFieldContext(ctx, fc)
4922 0 defer func() {
4923 0 if r := recover(); r != nil {
4924 0 ec.Error(ctx, ec.Recover(ctx, r))
4925 0 ret = graphql.Null
4926 0 }
4927 }()
4928 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4929 0 ctx = rctx // use context from middleware stack in children
4930 0 return obj.Took, nil
4931 0 })
4932 0 if err != nil {
4933 0 ec.Error(ctx, err)
4934 0 return graphql.Null
4935 0 }
4936 0 if resTmp == nil {
4937 0 if !graphql.HasFieldError(ctx, fc) {
4938 0 ec.Errorf(ctx, "must not be null")
4939 0 }
4940 0 return graphql.Null
4941 }
4942 0 res := resTmp.(string)
4943 0 fc.Result = res
4944 0 return ec.marshalNString2string(ctx, field.Selections, res)
4945 }
4946
4947 0 func (ec *executionContext) fieldContext_SearchResults_took(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4948 0 fc = &graphql.FieldContext{
4949 0 Object: "SearchResults",
4950 0 Field: field,
4951 0 IsMethod: false,
4952 0 IsResolver: false,
4953 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4954 0 return nil, errors.New("field of type String does not have child fields")
4955 0 },
4956 }
4957 0 return fc, nil
4958 }
4959
4960 0 func (ec *executionContext) _SearchResults_hits(ctx context.Context, field graphql.CollectedField, obj *model.SearchResults) (ret graphql.Marshaler) {
4961 0 fc, err := ec.fieldContext_SearchResults_hits(ctx, field)
4962 0 if err != nil {
4963 0 return graphql.Null
4964 0 }
4965 0 ctx = graphql.WithFieldContext(ctx, fc)
4966 0 defer func() {
4967 0 if r := recover(); r != nil {
4968 0 ec.Error(ctx, ec.Recover(ctx, r))
4969 0 ret = graphql.Null
4970 0 }
4971 }()
4972 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
4973 0 ctx = rctx // use context from middleware stack in children
4974 0 return obj.Hits, nil
4975 0 })
4976 0 if err != nil {
4977 0 ec.Error(ctx, err)
4978 0 return graphql.Null
4979 0 }
4980 0 if resTmp == nil {
4981 0 if !graphql.HasFieldError(ctx, fc) {
4982 0 ec.Errorf(ctx, "must not be null")
4983 0 }
4984 0 return graphql.Null
4985 }
4986 0 res := resTmp.([]*model.SearchHit)
4987 0 fc.Result = res
4988 0 return ec.marshalNSearchHit2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSearchHitᚄ(ctx, field.Selections, res)
4989 }
4990
4991 0 func (ec *executionContext) fieldContext_SearchResults_hits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
4992 0 fc = &graphql.FieldContext{
4993 0 Object: "SearchResults",
4994 0 Field: field,
4995 0 IsMethod: false,
4996 0 IsResolver: false,
4997 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
4998 0 switch field.Name {
4999 0 case "space":
5000 0 return ec.fieldContext_SearchHit_space(ctx, field)
5001 0 case "id":
5002 0 return ec.fieldContext_SearchHit_id(ctx, field)
5003 0 case "rev":
5004 0 return ec.fieldContext_SearchHit_rev(ctx, field)
5005 0 case "path":
5006 0 return ec.fieldContext_SearchHit_path(ctx, field)
5007 0 case "anchor":
5008 0 return ec.fieldContext_SearchHit_anchor(ctx, field)
5009 0 case "title":
5010 0 return ec.fieldContext_SearchHit_title(ctx, field)
5011 0 case "section":
5012 0 return ec.fieldContext_SearchHit_section(ctx, field)
5013 0 case "lang":
5014 0 return ec.fieldContext_SearchHit_lang(ctx, field)
5015 0 case "score":
5016 0 return ec.fieldContext_SearchHit_score(ctx, field)
5017 0 case "snippet":
5018 0 return ec.fieldContext_SearchHit_snippet(ctx, field)
5019 }
5020 0 return nil, fmt.Errorf("no field named %q was found under type SearchHit", field.Name)
5021 },
5022 }
5023 0 return fc, nil
5024 }
5025
5026 0 func (ec *executionContext) _Space_owner(ctx context.Context, field graphql.CollectedField, obj *model.Space) (ret graphql.Marshaler) {
5027 0 fc, err := ec.fieldContext_Space_owner(ctx, field)
5028 0 if err != nil {
5029 0 return graphql.Null
5030 0 }
5031 0 ctx = graphql.WithFieldContext(ctx, fc)
5032 0 defer func() {
5033 0 if r := recover(); r != nil {
5034 0 ec.Error(ctx, ec.Recover(ctx, r))
5035 0 ret = graphql.Null
5036 0 }
5037 }()
5038 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5039 0 ctx = rctx // use context from middleware stack in children
5040 0 return obj.Owner, nil
5041 0 })
5042 0 if err != nil {
5043 0 ec.Error(ctx, err)
5044 0 return graphql.Null
5045 0 }
5046 0 if resTmp == nil {
5047 0 if !graphql.HasFieldError(ctx, fc) {
5048 0 ec.Errorf(ctx, "must not be null")
5049 0 }
5050 0 return graphql.Null
5051 }
5052 0 res := resTmp.(string)
5053 0 fc.Result = res
5054 0 return ec.marshalNString2string(ctx, field.Selections, res)
5055 }
5056
5057 0 func (ec *executionContext) fieldContext_Space_owner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5058 0 fc = &graphql.FieldContext{
5059 0 Object: "Space",
5060 0 Field: field,
5061 0 IsMethod: false,
5062 0 IsResolver: false,
5063 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5064 0 return nil, errors.New("field of type String does not have child fields")
5065 0 },
5066 }
5067 0 return fc, nil
5068 }
5069
5070 0 func (ec *executionContext) _Space_name(ctx context.Context, field graphql.CollectedField, obj *model.Space) (ret graphql.Marshaler) {
5071 0 fc, err := ec.fieldContext_Space_name(ctx, field)
5072 0 if err != nil {
5073 0 return graphql.Null
5074 0 }
5075 0 ctx = graphql.WithFieldContext(ctx, fc)
5076 0 defer func() {
5077 0 if r := recover(); r != nil {
5078 0 ec.Error(ctx, ec.Recover(ctx, r))
5079 0 ret = graphql.Null
5080 0 }
5081 }()
5082 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5083 0 ctx = rctx // use context from middleware stack in children
5084 0 return obj.Name, nil
5085 0 })
5086 0 if err != nil {
5087 0 ec.Error(ctx, err)
5088 0 return graphql.Null
5089 0 }
5090 0 if resTmp == nil {
5091 0 if !graphql.HasFieldError(ctx, fc) {
5092 0 ec.Errorf(ctx, "must not be null")
5093 0 }
5094 0 return graphql.Null
5095 }
5096 0 res := resTmp.(string)
5097 0 fc.Result = res
5098 0 return ec.marshalNString2string(ctx, field.Selections, res)
5099 }
5100
5101 0 func (ec *executionContext) fieldContext_Space_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5102 0 fc = &graphql.FieldContext{
5103 0 Object: "Space",
5104 0 Field: field,
5105 0 IsMethod: false,
5106 0 IsResolver: false,
5107 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5108 0 return nil, errors.New("field of type String does not have child fields")
5109 0 },
5110 }
5111 0 return fc, nil
5112 }
5113
5114 0 func (ec *executionContext) _Space_ref(ctx context.Context, field graphql.CollectedField, obj *model.Space) (ret graphql.Marshaler) {
5115 0 fc, err := ec.fieldContext_Space_ref(ctx, field)
5116 0 if err != nil {
5117 0 return graphql.Null
5118 0 }
5119 0 ctx = graphql.WithFieldContext(ctx, fc)
5120 0 defer func() {
5121 0 if r := recover(); r != nil {
5122 0 ec.Error(ctx, ec.Recover(ctx, r))
5123 0 ret = graphql.Null
5124 0 }
5125 }()
5126 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5127 0 ctx = rctx // use context from middleware stack in children
5128 0 return obj.Ref, nil
5129 0 })
5130 0 if err != nil {
5131 0 ec.Error(ctx, err)
5132 0 return graphql.Null
5133 0 }
5134 0 if resTmp == nil {
5135 0 if !graphql.HasFieldError(ctx, fc) {
5136 0 ec.Errorf(ctx, "must not be null")
5137 0 }
5138 0 return graphql.Null
5139 }
5140 0 res := resTmp.(string)
5141 0 fc.Result = res
5142 0 return ec.marshalNString2string(ctx, field.Selections, res)
5143 }
5144
5145 0 func (ec *executionContext) fieldContext_Space_ref(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5146 0 fc = &graphql.FieldContext{
5147 0 Object: "Space",
5148 0 Field: field,
5149 0 IsMethod: false,
5150 0 IsResolver: false,
5151 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5152 0 return nil, errors.New("field of type String does not have child fields")
5153 0 },
5154 }
5155 0 return fc, nil
5156 }
5157
5158 0 func (ec *executionContext) _Space_created(ctx context.Context, field graphql.CollectedField, obj *model.Space) (ret graphql.Marshaler) {
5159 0 fc, err := ec.fieldContext_Space_created(ctx, field)
5160 0 if err != nil {
5161 0 return graphql.Null
5162 0 }
5163 0 ctx = graphql.WithFieldContext(ctx, fc)
5164 0 defer func() {
5165 0 if r := recover(); r != nil {
5166 0 ec.Error(ctx, ec.Recover(ctx, r))
5167 0 ret = graphql.Null
5168 0 }
5169 }()
5170 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5171 0 ctx = rctx // use context from middleware stack in children
5172 0 return obj.Created, nil
5173 0 })
5174 0 if err != nil {
5175 0 ec.Error(ctx, err)
5176 0 return graphql.Null
5177 0 }
5178 0 if resTmp == nil {
5179 0 if !graphql.HasFieldError(ctx, fc) {
5180 0 ec.Errorf(ctx, "must not be null")
5181 0 }
5182 0 return graphql.Null
5183 }
5184 0 res := resTmp.(time.Time)
5185 0 fc.Result = res
5186 0 return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
5187 }
5188
5189 0 func (ec *executionContext) fieldContext_Space_created(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5190 0 fc = &graphql.FieldContext{
5191 0 Object: "Space",
5192 0 Field: field,
5193 0 IsMethod: false,
5194 0 IsResolver: false,
5195 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5196 0 return nil, errors.New("field of type Time does not have child fields")
5197 0 },
5198 }
5199 0 return fc, nil
5200 }
5201
5202 0 func (ec *executionContext) _Space_approvedRev(ctx context.Context, field graphql.CollectedField, obj *model.Space) (ret graphql.Marshaler) {
5203 0 fc, err := ec.fieldContext_Space_approvedRev(ctx, field)
5204 0 if err != nil {
5205 0 return graphql.Null
5206 0 }
5207 0 ctx = graphql.WithFieldContext(ctx, fc)
5208 0 defer func() {
5209 0 if r := recover(); r != nil {
5210 0 ec.Error(ctx, ec.Recover(ctx, r))
5211 0 ret = graphql.Null
5212 0 }
5213 }()
5214 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5215 0 ctx = rctx // use context from middleware stack in children
5216 0 return ec.resolvers.Space().ApprovedRev(rctx, obj)
5217 0 })
5218 0 if err != nil {
5219 0 ec.Error(ctx, err)
5220 0 return graphql.Null
5221 0 }
5222 0 if resTmp == nil {
5223 0 if !graphql.HasFieldError(ctx, fc) {
5224 0 ec.Errorf(ctx, "must not be null")
5225 0 }
5226 0 return graphql.Null
5227 }
5228 0 res := resTmp.(string)
5229 0 fc.Result = res
5230 0 return ec.marshalNString2string(ctx, field.Selections, res)
5231 }
5232
5233 0 func (ec *executionContext) fieldContext_Space_approvedRev(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5234 0 fc = &graphql.FieldContext{
5235 0 Object: "Space",
5236 0 Field: field,
5237 0 IsMethod: true,
5238 0 IsResolver: true,
5239 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5240 0 return nil, errors.New("field of type String does not have child fields")
5241 0 },
5242 }
5243 0 return fc, nil
5244 }
5245
5246 0 func (ec *executionContext) _UserWebhookSubscription_id(ctx context.Context, field graphql.CollectedField, obj *model.UserWebhookSubscription) (ret graphql.Marshaler) {
5247 0 fc, err := ec.fieldContext_UserWebhookSubscription_id(ctx, field)
5248 0 if err != nil {
5249 0 return graphql.Null
5250 0 }
5251 0 ctx = graphql.WithFieldContext(ctx, fc)
5252 0 defer func() {
5253 0 if r := recover(); r != nil {
5254 0 ec.Error(ctx, ec.Recover(ctx, r))
5255 0 ret = graphql.Null
5256 0 }
5257 }()
5258 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5259 0 ctx = rctx // use context from middleware stack in children
5260 0 return obj.ID, nil
5261 0 })
5262 0 if err != nil {
5263 0 ec.Error(ctx, err)
5264 0 return graphql.Null
5265 0 }
5266 0 if resTmp == nil {
5267 0 if !graphql.HasFieldError(ctx, fc) {
5268 0 ec.Errorf(ctx, "must not be null")
5269 0 }
5270 0 return graphql.Null
5271 }
5272 0 res := resTmp.(int)
5273 0 fc.Result = res
5274 0 return ec.marshalNInt2int(ctx, field.Selections, res)
5275 }
5276
5277 0 func (ec *executionContext) fieldContext_UserWebhookSubscription_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5278 0 fc = &graphql.FieldContext{
5279 0 Object: "UserWebhookSubscription",
5280 0 Field: field,
5281 0 IsMethod: false,
5282 0 IsResolver: false,
5283 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5284 0 return nil, errors.New("field of type Int does not have child fields")
5285 0 },
5286 }
5287 0 return fc, nil
5288 }
5289
5290 0 func (ec *executionContext) _UserWebhookSubscription_events(ctx context.Context, field graphql.CollectedField, obj *model.UserWebhookSubscription) (ret graphql.Marshaler) {
5291 0 fc, err := ec.fieldContext_UserWebhookSubscription_events(ctx, field)
5292 0 if err != nil {
5293 0 return graphql.Null
5294 0 }
5295 0 ctx = graphql.WithFieldContext(ctx, fc)
5296 0 defer func() {
5297 0 if r := recover(); r != nil {
5298 0 ec.Error(ctx, ec.Recover(ctx, r))
5299 0 ret = graphql.Null
5300 0 }
5301 }()
5302 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5303 0 ctx = rctx // use context from middleware stack in children
5304 0 return obj.Events, nil
5305 0 })
5306 0 if err != nil {
5307 0 ec.Error(ctx, err)
5308 0 return graphql.Null
5309 0 }
5310 0 if resTmp == nil {
5311 0 if !graphql.HasFieldError(ctx, fc) {
5312 0 ec.Errorf(ctx, "must not be null")
5313 0 }
5314 0 return graphql.Null
5315 }
5316 0 res := resTmp.([]model.WebhookEvent)
5317 0 fc.Result = res
5318 0 return ec.marshalNWebhookEvent2ᚕsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEventᚄ(ctx, field.Selections, res)
5319 }
5320
5321 0 func (ec *executionContext) fieldContext_UserWebhookSubscription_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5322 0 fc = &graphql.FieldContext{
5323 0 Object: "UserWebhookSubscription",
5324 0 Field: field,
5325 0 IsMethod: false,
5326 0 IsResolver: false,
5327 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5328 0 return nil, errors.New("field of type WebhookEvent does not have child fields")
5329 0 },
5330 }
5331 0 return fc, nil
5332 }
5333
5334 0 func (ec *executionContext) _UserWebhookSubscription_query(ctx context.Context, field graphql.CollectedField, obj *model.UserWebhookSubscription) (ret graphql.Marshaler) {
5335 0 fc, err := ec.fieldContext_UserWebhookSubscription_query(ctx, field)
5336 0 if err != nil {
5337 0 return graphql.Null
5338 0 }
5339 0 ctx = graphql.WithFieldContext(ctx, fc)
5340 0 defer func() {
5341 0 if r := recover(); r != nil {
5342 0 ec.Error(ctx, ec.Recover(ctx, r))
5343 0 ret = graphql.Null
5344 0 }
5345 }()
5346 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5347 0 ctx = rctx // use context from middleware stack in children
5348 0 return obj.Query, nil
5349 0 })
5350 0 if err != nil {
5351 0 ec.Error(ctx, err)
5352 0 return graphql.Null
5353 0 }
5354 0 if resTmp == nil {
5355 0 if !graphql.HasFieldError(ctx, fc) {
5356 0 ec.Errorf(ctx, "must not be null")
5357 0 }
5358 0 return graphql.Null
5359 }
5360 0 res := resTmp.(string)
5361 0 fc.Result = res
5362 0 return ec.marshalNString2string(ctx, field.Selections, res)
5363 }
5364
5365 0 func (ec *executionContext) fieldContext_UserWebhookSubscription_query(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5366 0 fc = &graphql.FieldContext{
5367 0 Object: "UserWebhookSubscription",
5368 0 Field: field,
5369 0 IsMethod: false,
5370 0 IsResolver: false,
5371 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5372 0 return nil, errors.New("field of type String does not have child fields")
5373 0 },
5374 }
5375 0 return fc, nil
5376 }
5377
5378 0 func (ec *executionContext) _UserWebhookSubscription_url(ctx context.Context, field graphql.CollectedField, obj *model.UserWebhookSubscription) (ret graphql.Marshaler) {
5379 0 fc, err := ec.fieldContext_UserWebhookSubscription_url(ctx, field)
5380 0 if err != nil {
5381 0 return graphql.Null
5382 0 }
5383 0 ctx = graphql.WithFieldContext(ctx, fc)
5384 0 defer func() {
5385 0 if r := recover(); r != nil {
5386 0 ec.Error(ctx, ec.Recover(ctx, r))
5387 0 ret = graphql.Null
5388 0 }
5389 }()
5390 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5391 0 ctx = rctx // use context from middleware stack in children
5392 0 return obj.URL, nil
5393 0 })
5394 0 if err != nil {
5395 0 ec.Error(ctx, err)
5396 0 return graphql.Null
5397 0 }
5398 0 if resTmp == nil {
5399 0 if !graphql.HasFieldError(ctx, fc) {
5400 0 ec.Errorf(ctx, "must not be null")
5401 0 }
5402 0 return graphql.Null
5403 }
5404 0 res := resTmp.(string)
5405 0 fc.Result = res
5406 0 return ec.marshalNString2string(ctx, field.Selections, res)
5407 }
5408
5409 0 func (ec *executionContext) fieldContext_UserWebhookSubscription_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5410 0 fc = &graphql.FieldContext{
5411 0 Object: "UserWebhookSubscription",
5412 0 Field: field,
5413 0 IsMethod: false,
5414 0 IsResolver: false,
5415 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5416 0 return nil, errors.New("field of type String does not have child fields")
5417 0 },
5418 }
5419 0 return fc, nil
5420 }
5421
5422 0 func (ec *executionContext) _UserWebhookSubscription_deliveries(ctx context.Context, field graphql.CollectedField, obj *model.UserWebhookSubscription) (ret graphql.Marshaler) {
5423 0 fc, err := ec.fieldContext_UserWebhookSubscription_deliveries(ctx, field)
5424 0 if err != nil {
5425 0 return graphql.Null
5426 0 }
5427 0 ctx = graphql.WithFieldContext(ctx, fc)
5428 0 defer func() {
5429 0 if r := recover(); r != nil {
5430 0 ec.Error(ctx, ec.Recover(ctx, r))
5431 0 ret = graphql.Null
5432 0 }
5433 }()
5434 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5435 0 ctx = rctx // use context from middleware stack in children
5436 0 return ec.resolvers.UserWebhookSubscription().Deliveries(rctx, obj, fc.Args["cursor"].(*model1.Cursor))
5437 0 })
5438 0 if err != nil {
5439 0 ec.Error(ctx, err)
5440 0 return graphql.Null
5441 0 }
5442 0 if resTmp == nil {
5443 0 if !graphql.HasFieldError(ctx, fc) {
5444 0 ec.Errorf(ctx, "must not be null")
5445 0 }
5446 0 return graphql.Null
5447 }
5448 0 res := resTmp.(*model.WebhookDeliveryCursor)
5449 0 fc.Result = res
5450 0 return ec.marshalNWebhookDeliveryCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookDeliveryCursor(ctx, field.Selections, res)
5451 }
5452
5453 0 func (ec *executionContext) fieldContext_UserWebhookSubscription_deliveries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5454 0 fc = &graphql.FieldContext{
5455 0 Object: "UserWebhookSubscription",
5456 0 Field: field,
5457 0 IsMethod: true,
5458 0 IsResolver: true,
5459 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5460 0 switch field.Name {
5461 0 case "results":
5462 0 return ec.fieldContext_WebhookDeliveryCursor_results(ctx, field)
5463 0 case "cursor":
5464 0 return ec.fieldContext_WebhookDeliveryCursor_cursor(ctx, field)
5465 }
5466 0 return nil, fmt.Errorf("no field named %q was found under type WebhookDeliveryCursor", field.Name)
5467 },
5468 }
5469 0 defer func() {
5470 0 if r := recover(); r != nil {
5471 0 err = ec.Recover(ctx, r)
5472 0 ec.Error(ctx, err)
5473 0 }
5474 }()
5475 0 ctx = graphql.WithFieldContext(ctx, fc)
5476 0 if fc.Args, err = ec.field_UserWebhookSubscription_deliveries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
5477 0 ec.Error(ctx, err)
5478 0 return fc, err
5479 0 }
5480 0 return fc, nil
5481 }
5482
5483 0 func (ec *executionContext) _UserWebhookSubscription_sample(ctx context.Context, field graphql.CollectedField, obj *model.UserWebhookSubscription) (ret graphql.Marshaler) {
5484 0 fc, err := ec.fieldContext_UserWebhookSubscription_sample(ctx, field)
5485 0 if err != nil {
5486 0 return graphql.Null
5487 0 }
5488 0 ctx = graphql.WithFieldContext(ctx, fc)
5489 0 defer func() {
5490 0 if r := recover(); r != nil {
5491 0 ec.Error(ctx, ec.Recover(ctx, r))
5492 0 ret = graphql.Null
5493 0 }
5494 }()
5495 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5496 0 ctx = rctx // use context from middleware stack in children
5497 0 return ec.resolvers.UserWebhookSubscription().Sample(rctx, obj, fc.Args["event"].(model.WebhookEvent))
5498 0 })
5499 0 if err != nil {
5500 0 ec.Error(ctx, err)
5501 0 return graphql.Null
5502 0 }
5503 0 if resTmp == nil {
5504 0 if !graphql.HasFieldError(ctx, fc) {
5505 0 ec.Errorf(ctx, "must not be null")
5506 0 }
5507 0 return graphql.Null
5508 }
5509 0 res := resTmp.(string)
5510 0 fc.Result = res
5511 0 return ec.marshalNString2string(ctx, field.Selections, res)
5512 }
5513
5514 0 func (ec *executionContext) fieldContext_UserWebhookSubscription_sample(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5515 0 fc = &graphql.FieldContext{
5516 0 Object: "UserWebhookSubscription",
5517 0 Field: field,
5518 0 IsMethod: true,
5519 0 IsResolver: true,
5520 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5521 0 return nil, errors.New("field of type String does not have child fields")
5522 0 },
5523 }
5524 0 defer func() {
5525 0 if r := recover(); r != nil {
5526 0 err = ec.Recover(ctx, r)
5527 0 ec.Error(ctx, err)
5528 0 }
5529 }()
5530 0 ctx = graphql.WithFieldContext(ctx, fc)
5531 0 if fc.Args, err = ec.field_UserWebhookSubscription_sample_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
5532 0 ec.Error(ctx, err)
5533 0 return fc, err
5534 0 }
5535 0 return fc, nil
5536 }
5537
5538 0 func (ec *executionContext) _WebhookDelivery_uuid(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDelivery) (ret graphql.Marshaler) {
5539 0 fc, err := ec.fieldContext_WebhookDelivery_uuid(ctx, field)
5540 0 if err != nil {
5541 0 return graphql.Null
5542 0 }
5543 0 ctx = graphql.WithFieldContext(ctx, fc)
5544 0 defer func() {
5545 0 if r := recover(); r != nil {
5546 0 ec.Error(ctx, ec.Recover(ctx, r))
5547 0 ret = graphql.Null
5548 0 }
5549 }()
5550 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5551 0 ctx = rctx // use context from middleware stack in children
5552 0 return obj.UUID, nil
5553 0 })
5554 0 if err != nil {
5555 0 ec.Error(ctx, err)
5556 0 return graphql.Null
5557 0 }
5558 0 if resTmp == nil {
5559 0 if !graphql.HasFieldError(ctx, fc) {
5560 0 ec.Errorf(ctx, "must not be null")
5561 0 }
5562 0 return graphql.Null
5563 }
5564 0 res := resTmp.(string)
5565 0 fc.Result = res
5566 0 return ec.marshalNString2string(ctx, field.Selections, res)
5567 }
5568
5569 0 func (ec *executionContext) fieldContext_WebhookDelivery_uuid(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5570 0 fc = &graphql.FieldContext{
5571 0 Object: "WebhookDelivery",
5572 0 Field: field,
5573 0 IsMethod: false,
5574 0 IsResolver: false,
5575 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5576 0 return nil, errors.New("field of type String does not have child fields")
5577 0 },
5578 }
5579 0 return fc, nil
5580 }
5581
5582 0 func (ec *executionContext) _WebhookDelivery_date(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDelivery) (ret graphql.Marshaler) {
5583 0 fc, err := ec.fieldContext_WebhookDelivery_date(ctx, field)
5584 0 if err != nil {
5585 0 return graphql.Null
5586 0 }
5587 0 ctx = graphql.WithFieldContext(ctx, fc)
5588 0 defer func() {
5589 0 if r := recover(); r != nil {
5590 0 ec.Error(ctx, ec.Recover(ctx, r))
5591 0 ret = graphql.Null
5592 0 }
5593 }()
5594 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5595 0 ctx = rctx // use context from middleware stack in children
5596 0 return obj.Date, nil
5597 0 })
5598 0 if err != nil {
5599 0 ec.Error(ctx, err)
5600 0 return graphql.Null
5601 0 }
5602 0 if resTmp == nil {
5603 0 if !graphql.HasFieldError(ctx, fc) {
5604 0 ec.Errorf(ctx, "must not be null")
5605 0 }
5606 0 return graphql.Null
5607 }
5608 0 res := resTmp.(time.Time)
5609 0 fc.Result = res
5610 0 return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
5611 }
5612
5613 0 func (ec *executionContext) fieldContext_WebhookDelivery_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5614 0 fc = &graphql.FieldContext{
5615 0 Object: "WebhookDelivery",
5616 0 Field: field,
5617 0 IsMethod: false,
5618 0 IsResolver: false,
5619 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5620 0 return nil, errors.New("field of type Time does not have child fields")
5621 0 },
5622 }
5623 0 return fc, nil
5624 }
5625
5626 0 func (ec *executionContext) _WebhookDelivery_event(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDelivery) (ret graphql.Marshaler) {
5627 0 fc, err := ec.fieldContext_WebhookDelivery_event(ctx, field)
5628 0 if err != nil {
5629 0 return graphql.Null
5630 0 }
5631 0 ctx = graphql.WithFieldContext(ctx, fc)
5632 0 defer func() {
5633 0 if r := recover(); r != nil {
5634 0 ec.Error(ctx, ec.Recover(ctx, r))
5635 0 ret = graphql.Null
5636 0 }
5637 }()
5638 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5639 0 ctx = rctx // use context from middleware stack in children
5640 0 return obj.Event, nil
5641 0 })
5642 0 if err != nil {
5643 0 ec.Error(ctx, err)
5644 0 return graphql.Null
5645 0 }
5646 0 if resTmp == nil {
5647 0 if !graphql.HasFieldError(ctx, fc) {
5648 0 ec.Errorf(ctx, "must not be null")
5649 0 }
5650 0 return graphql.Null
5651 }
5652 0 res := resTmp.(model.WebhookEvent)
5653 0 fc.Result = res
5654 0 return ec.marshalNWebhookEvent2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEvent(ctx, field.Selections, res)
5655 }
5656
5657 0 func (ec *executionContext) fieldContext_WebhookDelivery_event(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5658 0 fc = &graphql.FieldContext{
5659 0 Object: "WebhookDelivery",
5660 0 Field: field,
5661 0 IsMethod: false,
5662 0 IsResolver: false,
5663 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5664 0 return nil, errors.New("field of type WebhookEvent does not have child fields")
5665 0 },
5666 }
5667 0 return fc, nil
5668 }
5669
5670 0 func (ec *executionContext) _WebhookDelivery_subscription(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDelivery) (ret graphql.Marshaler) {
5671 0 fc, err := ec.fieldContext_WebhookDelivery_subscription(ctx, field)
5672 0 if err != nil {
5673 0 return graphql.Null
5674 0 }
5675 0 ctx = graphql.WithFieldContext(ctx, fc)
5676 0 defer func() {
5677 0 if r := recover(); r != nil {
5678 0 ec.Error(ctx, ec.Recover(ctx, r))
5679 0 ret = graphql.Null
5680 0 }
5681 }()
5682 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5683 0 ctx = rctx // use context from middleware stack in children
5684 0 return ec.resolvers.WebhookDelivery().Subscription(rctx, obj)
5685 0 })
5686 0 if err != nil {
5687 0 ec.Error(ctx, err)
5688 0 return graphql.Null
5689 0 }
5690 0 if resTmp == nil {
5691 0 if !graphql.HasFieldError(ctx, fc) {
5692 0 ec.Errorf(ctx, "must not be null")
5693 0 }
5694 0 return graphql.Null
5695 }
5696 0 res := resTmp.(model.WebhookSubscription)
5697 0 fc.Result = res
5698 0 return ec.marshalNWebhookSubscription2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscription(ctx, field.Selections, res)
5699 }
5700
5701 0 func (ec *executionContext) fieldContext_WebhookDelivery_subscription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5702 0 fc = &graphql.FieldContext{
5703 0 Object: "WebhookDelivery",
5704 0 Field: field,
5705 0 IsMethod: true,
5706 0 IsResolver: true,
5707 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5708 0 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
5709 0 },
5710 }
5711 0 return fc, nil
5712 }
5713
5714 0 func (ec *executionContext) _WebhookDelivery_requestBody(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDelivery) (ret graphql.Marshaler) {
5715 0 fc, err := ec.fieldContext_WebhookDelivery_requestBody(ctx, field)
5716 0 if err != nil {
5717 0 return graphql.Null
5718 0 }
5719 0 ctx = graphql.WithFieldContext(ctx, fc)
5720 0 defer func() {
5721 0 if r := recover(); r != nil {
5722 0 ec.Error(ctx, ec.Recover(ctx, r))
5723 0 ret = graphql.Null
5724 0 }
5725 }()
5726 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5727 0 ctx = rctx // use context from middleware stack in children
5728 0 return obj.RequestBody, nil
5729 0 })
5730 0 if err != nil {
5731 0 ec.Error(ctx, err)
5732 0 return graphql.Null
5733 0 }
5734 0 if resTmp == nil {
5735 0 if !graphql.HasFieldError(ctx, fc) {
5736 0 ec.Errorf(ctx, "must not be null")
5737 0 }
5738 0 return graphql.Null
5739 }
5740 0 res := resTmp.(string)
5741 0 fc.Result = res
5742 0 return ec.marshalNString2string(ctx, field.Selections, res)
5743 }
5744
5745 0 func (ec *executionContext) fieldContext_WebhookDelivery_requestBody(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5746 0 fc = &graphql.FieldContext{
5747 0 Object: "WebhookDelivery",
5748 0 Field: field,
5749 0 IsMethod: false,
5750 0 IsResolver: false,
5751 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5752 0 return nil, errors.New("field of type String does not have child fields")
5753 0 },
5754 }
5755 0 return fc, nil
5756 }
5757
5758 0 func (ec *executionContext) _WebhookDelivery_responseBody(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDelivery) (ret graphql.Marshaler) {
5759 0 fc, err := ec.fieldContext_WebhookDelivery_responseBody(ctx, field)
5760 0 if err != nil {
5761 0 return graphql.Null
5762 0 }
5763 0 ctx = graphql.WithFieldContext(ctx, fc)
5764 0 defer func() {
5765 0 if r := recover(); r != nil {
5766 0 ec.Error(ctx, ec.Recover(ctx, r))
5767 0 ret = graphql.Null
5768 0 }
5769 }()
5770 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5771 0 ctx = rctx // use context from middleware stack in children
5772 0 return obj.ResponseBody, nil
5773 0 })
5774 0 if err != nil {
5775 0 ec.Error(ctx, err)
5776 0 return graphql.Null
5777 0 }
5778 0 if resTmp == nil {
5779 0 return graphql.Null
5780 0 }
5781 0 res := resTmp.(*string)
5782 0 fc.Result = res
5783 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5784 }
5785
5786 0 func (ec *executionContext) fieldContext_WebhookDelivery_responseBody(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5787 0 fc = &graphql.FieldContext{
5788 0 Object: "WebhookDelivery",
5789 0 Field: field,
5790 0 IsMethod: false,
5791 0 IsResolver: false,
5792 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5793 0 return nil, errors.New("field of type String does not have child fields")
5794 0 },
5795 }
5796 0 return fc, nil
5797 }
5798
5799 0 func (ec *executionContext) _WebhookDelivery_responseHeaders(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDelivery) (ret graphql.Marshaler) {
5800 0 fc, err := ec.fieldContext_WebhookDelivery_responseHeaders(ctx, field)
5801 0 if err != nil {
5802 0 return graphql.Null
5803 0 }
5804 0 ctx = graphql.WithFieldContext(ctx, fc)
5805 0 defer func() {
5806 0 if r := recover(); r != nil {
5807 0 ec.Error(ctx, ec.Recover(ctx, r))
5808 0 ret = graphql.Null
5809 0 }
5810 }()
5811 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5812 0 ctx = rctx // use context from middleware stack in children
5813 0 return obj.ResponseHeaders, nil
5814 0 })
5815 0 if err != nil {
5816 0 ec.Error(ctx, err)
5817 0 return graphql.Null
5818 0 }
5819 0 if resTmp == nil {
5820 0 return graphql.Null
5821 0 }
5822 0 res := resTmp.(*string)
5823 0 fc.Result = res
5824 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5825 }
5826
5827 0 func (ec *executionContext) fieldContext_WebhookDelivery_responseHeaders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5828 0 fc = &graphql.FieldContext{
5829 0 Object: "WebhookDelivery",
5830 0 Field: field,
5831 0 IsMethod: false,
5832 0 IsResolver: false,
5833 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5834 0 return nil, errors.New("field of type String does not have child fields")
5835 0 },
5836 }
5837 0 return fc, nil
5838 }
5839
5840 0 func (ec *executionContext) _WebhookDelivery_responseStatus(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDelivery) (ret graphql.Marshaler) {
5841 0 fc, err := ec.fieldContext_WebhookDelivery_responseStatus(ctx, field)
5842 0 if err != nil {
5843 0 return graphql.Null
5844 0 }
5845 0 ctx = graphql.WithFieldContext(ctx, fc)
5846 0 defer func() {
5847 0 if r := recover(); r != nil {
5848 0 ec.Error(ctx, ec.Recover(ctx, r))
5849 0 ret = graphql.Null
5850 0 }
5851 }()
5852 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5853 0 ctx = rctx // use context from middleware stack in children
5854 0 return obj.ResponseStatus, nil
5855 0 })
5856 0 if err != nil {
5857 0 ec.Error(ctx, err)
5858 0 return graphql.Null
5859 0 }
5860 0 if resTmp == nil {
5861 0 return graphql.Null
5862 0 }
5863 0 res := resTmp.(*int)
5864 0 fc.Result = res
5865 0 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5866 }
5867
5868 0 func (ec *executionContext) fieldContext_WebhookDelivery_responseStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5869 0 fc = &graphql.FieldContext{
5870 0 Object: "WebhookDelivery",
5871 0 Field: field,
5872 0 IsMethod: false,
5873 0 IsResolver: false,
5874 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5875 0 return nil, errors.New("field of type Int does not have child fields")
5876 0 },
5877 }
5878 0 return fc, nil
5879 }
5880
5881 0 func (ec *executionContext) _WebhookDeliveryCursor_results(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDeliveryCursor) (ret graphql.Marshaler) {
5882 0 fc, err := ec.fieldContext_WebhookDeliveryCursor_results(ctx, field)
5883 0 if err != nil {
5884 0 return graphql.Null
5885 0 }
5886 0 ctx = graphql.WithFieldContext(ctx, fc)
5887 0 defer func() {
5888 0 if r := recover(); r != nil {
5889 0 ec.Error(ctx, ec.Recover(ctx, r))
5890 0 ret = graphql.Null
5891 0 }
5892 }()
5893 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5894 0 ctx = rctx // use context from middleware stack in children
5895 0 return obj.Results, nil
5896 0 })
5897 0 if err != nil {
5898 0 ec.Error(ctx, err)
5899 0 return graphql.Null
5900 0 }
5901 0 if resTmp == nil {
5902 0 if !graphql.HasFieldError(ctx, fc) {
5903 0 ec.Errorf(ctx, "must not be null")
5904 0 }
5905 0 return graphql.Null
5906 }
5907 0 res := resTmp.([]*model.WebhookDelivery)
5908 0 fc.Result = res
5909 0 return ec.marshalNWebhookDelivery2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookDeliveryᚄ(ctx, field.Selections, res)
5910 }
5911
5912 0 func (ec *executionContext) fieldContext_WebhookDeliveryCursor_results(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5913 0 fc = &graphql.FieldContext{
5914 0 Object: "WebhookDeliveryCursor",
5915 0 Field: field,
5916 0 IsMethod: false,
5917 0 IsResolver: false,
5918 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5919 0 switch field.Name {
5920 0 case "uuid":
5921 0 return ec.fieldContext_WebhookDelivery_uuid(ctx, field)
5922 0 case "date":
5923 0 return ec.fieldContext_WebhookDelivery_date(ctx, field)
5924 0 case "event":
5925 0 return ec.fieldContext_WebhookDelivery_event(ctx, field)
5926 0 case "subscription":
5927 0 return ec.fieldContext_WebhookDelivery_subscription(ctx, field)
5928 0 case "requestBody":
5929 0 return ec.fieldContext_WebhookDelivery_requestBody(ctx, field)
5930 0 case "responseBody":
5931 0 return ec.fieldContext_WebhookDelivery_responseBody(ctx, field)
5932 0 case "responseHeaders":
5933 0 return ec.fieldContext_WebhookDelivery_responseHeaders(ctx, field)
5934 0 case "responseStatus":
5935 0 return ec.fieldContext_WebhookDelivery_responseStatus(ctx, field)
5936 }
5937 0 return nil, fmt.Errorf("no field named %q was found under type WebhookDelivery", field.Name)
5938 },
5939 }
5940 0 return fc, nil
5941 }
5942
5943 0 func (ec *executionContext) _WebhookDeliveryCursor_cursor(ctx context.Context, field graphql.CollectedField, obj *model.WebhookDeliveryCursor) (ret graphql.Marshaler) {
5944 0 fc, err := ec.fieldContext_WebhookDeliveryCursor_cursor(ctx, field)
5945 0 if err != nil {
5946 0 return graphql.Null
5947 0 }
5948 0 ctx = graphql.WithFieldContext(ctx, fc)
5949 0 defer func() {
5950 0 if r := recover(); r != nil {
5951 0 ec.Error(ctx, ec.Recover(ctx, r))
5952 0 ret = graphql.Null
5953 0 }
5954 }()
5955 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5956 0 ctx = rctx // use context from middleware stack in children
5957 0 return obj.Cursor, nil
5958 0 })
5959 0 if err != nil {
5960 0 ec.Error(ctx, err)
5961 0 return graphql.Null
5962 0 }
5963 0 if resTmp == nil {
5964 0 return graphql.Null
5965 0 }
5966 0 res := resTmp.(*model1.Cursor)
5967 0 fc.Result = res
5968 0 return ec.marshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx, field.Selections, res)
5969 }
5970
5971 0 func (ec *executionContext) fieldContext_WebhookDeliveryCursor_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
5972 0 fc = &graphql.FieldContext{
5973 0 Object: "WebhookDeliveryCursor",
5974 0 Field: field,
5975 0 IsMethod: false,
5976 0 IsResolver: false,
5977 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
5978 0 return nil, errors.New("field of type Cursor does not have child fields")
5979 0 },
5980 }
5981 0 return fc, nil
5982 }
5983
5984 0 func (ec *executionContext) _WebhookSubscriptionCursor_results(ctx context.Context, field graphql.CollectedField, obj *model.WebhookSubscriptionCursor) (ret graphql.Marshaler) {
5985 0 fc, err := ec.fieldContext_WebhookSubscriptionCursor_results(ctx, field)
5986 0 if err != nil {
5987 0 return graphql.Null
5988 0 }
5989 0 ctx = graphql.WithFieldContext(ctx, fc)
5990 0 defer func() {
5991 0 if r := recover(); r != nil {
5992 0 ec.Error(ctx, ec.Recover(ctx, r))
5993 0 ret = graphql.Null
5994 0 }
5995 }()
5996 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5997 0 ctx = rctx // use context from middleware stack in children
5998 0 return obj.Results, nil
5999 0 })
6000 0 if err != nil {
6001 0 ec.Error(ctx, err)
6002 0 return graphql.Null
6003 0 }
6004 0 if resTmp == nil {
6005 0 if !graphql.HasFieldError(ctx, fc) {
6006 0 ec.Errorf(ctx, "must not be null")
6007 0 }
6008 0 return graphql.Null
6009 }
6010 0 res := resTmp.([]model.WebhookSubscription)
6011 0 fc.Result = res
6012 0 return ec.marshalNWebhookSubscription2ᚕsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscriptionᚄ(ctx, field.Selections, res)
6013 }
6014
6015 0 func (ec *executionContext) fieldContext_WebhookSubscriptionCursor_results(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6016 0 fc = &graphql.FieldContext{
6017 0 Object: "WebhookSubscriptionCursor",
6018 0 Field: field,
6019 0 IsMethod: false,
6020 0 IsResolver: false,
6021 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6022 0 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
6023 0 },
6024 }
6025 0 return fc, nil
6026 }
6027
6028 0 func (ec *executionContext) _WebhookSubscriptionCursor_cursor(ctx context.Context, field graphql.CollectedField, obj *model.WebhookSubscriptionCursor) (ret graphql.Marshaler) {
6029 0 fc, err := ec.fieldContext_WebhookSubscriptionCursor_cursor(ctx, field)
6030 0 if err != nil {
6031 0 return graphql.Null
6032 0 }
6033 0 ctx = graphql.WithFieldContext(ctx, fc)
6034 0 defer func() {
6035 0 if r := recover(); r != nil {
6036 0 ec.Error(ctx, ec.Recover(ctx, r))
6037 0 ret = graphql.Null
6038 0 }
6039 }()
6040 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6041 0 ctx = rctx // use context from middleware stack in children
6042 0 return obj.Cursor, nil
6043 0 })
6044 0 if err != nil {
6045 0 ec.Error(ctx, err)
6046 0 return graphql.Null
6047 0 }
6048 0 if resTmp == nil {
6049 0 return graphql.Null
6050 0 }
6051 0 res := resTmp.(*model1.Cursor)
6052 0 fc.Result = res
6053 0 return ec.marshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx, field.Selections, res)
6054 }
6055
6056 0 func (ec *executionContext) fieldContext_WebhookSubscriptionCursor_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6057 0 fc = &graphql.FieldContext{
6058 0 Object: "WebhookSubscriptionCursor",
6059 0 Field: field,
6060 0 IsMethod: false,
6061 0 IsResolver: false,
6062 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6063 0 return nil, errors.New("field of type Cursor does not have child fields")
6064 0 },
6065 }
6066 0 return fc, nil
6067 }
6068
6069 0 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
6070 0 fc, err := ec.fieldContext___Directive_name(ctx, field)
6071 0 if err != nil {
6072 0 return graphql.Null
6073 0 }
6074 0 ctx = graphql.WithFieldContext(ctx, fc)
6075 0 defer func() {
6076 0 if r := recover(); r != nil {
6077 0 ec.Error(ctx, ec.Recover(ctx, r))
6078 0 ret = graphql.Null
6079 0 }
6080 }()
6081 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6082 0 ctx = rctx // use context from middleware stack in children
6083 0 return obj.Name, nil
6084 0 })
6085 0 if err != nil {
6086 0 ec.Error(ctx, err)
6087 0 return graphql.Null
6088 0 }
6089 0 if resTmp == nil {
6090 0 if !graphql.HasFieldError(ctx, fc) {
6091 0 ec.Errorf(ctx, "must not be null")
6092 0 }
6093 0 return graphql.Null
6094 }
6095 0 res := resTmp.(string)
6096 0 fc.Result = res
6097 0 return ec.marshalNString2string(ctx, field.Selections, res)
6098 }
6099
6100 0 func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6101 0 fc = &graphql.FieldContext{
6102 0 Object: "__Directive",
6103 0 Field: field,
6104 0 IsMethod: false,
6105 0 IsResolver: false,
6106 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6107 0 return nil, errors.New("field of type String does not have child fields")
6108 0 },
6109 }
6110 0 return fc, nil
6111 }
6112
6113 0 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
6114 0 fc, err := ec.fieldContext___Directive_description(ctx, field)
6115 0 if err != nil {
6116 0 return graphql.Null
6117 0 }
6118 0 ctx = graphql.WithFieldContext(ctx, fc)
6119 0 defer func() {
6120 0 if r := recover(); r != nil {
6121 0 ec.Error(ctx, ec.Recover(ctx, r))
6122 0 ret = graphql.Null
6123 0 }
6124 }()
6125 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6126 0 ctx = rctx // use context from middleware stack in children
6127 0 return obj.Description(), nil
6128 0 })
6129 0 if err != nil {
6130 0 ec.Error(ctx, err)
6131 0 return graphql.Null
6132 0 }
6133 0 if resTmp == nil {
6134 0 return graphql.Null
6135 0 }
6136 0 res := resTmp.(*string)
6137 0 fc.Result = res
6138 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6139 }
6140
6141 0 func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6142 0 fc = &graphql.FieldContext{
6143 0 Object: "__Directive",
6144 0 Field: field,
6145 0 IsMethod: true,
6146 0 IsResolver: false,
6147 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6148 0 return nil, errors.New("field of type String does not have child fields")
6149 0 },
6150 }
6151 0 return fc, nil
6152 }
6153
6154 0 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
6155 0 fc, err := ec.fieldContext___Directive_locations(ctx, field)
6156 0 if err != nil {
6157 0 return graphql.Null
6158 0 }
6159 0 ctx = graphql.WithFieldContext(ctx, fc)
6160 0 defer func() {
6161 0 if r := recover(); r != nil {
6162 0 ec.Error(ctx, ec.Recover(ctx, r))
6163 0 ret = graphql.Null
6164 0 }
6165 }()
6166 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6167 0 ctx = rctx // use context from middleware stack in children
6168 0 return obj.Locations, nil
6169 0 })
6170 0 if err != nil {
6171 0 ec.Error(ctx, err)
6172 0 return graphql.Null
6173 0 }
6174 0 if resTmp == nil {
6175 0 if !graphql.HasFieldError(ctx, fc) {
6176 0 ec.Errorf(ctx, "must not be null")
6177 0 }
6178 0 return graphql.Null
6179 }
6180 0 res := resTmp.([]string)
6181 0 fc.Result = res
6182 0 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
6183 }
6184
6185 0 func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6186 0 fc = &graphql.FieldContext{
6187 0 Object: "__Directive",
6188 0 Field: field,
6189 0 IsMethod: false,
6190 0 IsResolver: false,
6191 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6192 0 return nil, errors.New("field of type __DirectiveLocation does not have child fields")
6193 0 },
6194 }
6195 0 return fc, nil
6196 }
6197
6198 0 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
6199 0 fc, err := ec.fieldContext___Directive_args(ctx, field)
6200 0 if err != nil {
6201 0 return graphql.Null
6202 0 }
6203 0 ctx = graphql.WithFieldContext(ctx, fc)
6204 0 defer func() {
6205 0 if r := recover(); r != nil {
6206 0 ec.Error(ctx, ec.Recover(ctx, r))
6207 0 ret = graphql.Null
6208 0 }
6209 }()
6210 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6211 0 ctx = rctx // use context from middleware stack in children
6212 0 return obj.Args, nil
6213 0 })
6214 0 if err != nil {
6215 0 ec.Error(ctx, err)
6216 0 return graphql.Null
6217 0 }
6218 0 if resTmp == nil {
6219 0 if !graphql.HasFieldError(ctx, fc) {
6220 0 ec.Errorf(ctx, "must not be null")
6221 0 }
6222 0 return graphql.Null
6223 }
6224 0 res := resTmp.([]introspection.InputValue)
6225 0 fc.Result = res
6226 0 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
6227 }
6228
6229 0 func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6230 0 fc = &graphql.FieldContext{
6231 0 Object: "__Directive",
6232 0 Field: field,
6233 0 IsMethod: false,
6234 0 IsResolver: false,
6235 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6236 0 switch field.Name {
6237 0 case "name":
6238 0 return ec.fieldContext___InputValue_name(ctx, field)
6239 0 case "description":
6240 0 return ec.fieldContext___InputValue_description(ctx, field)
6241 0 case "type":
6242 0 return ec.fieldContext___InputValue_type(ctx, field)
6243 0 case "defaultValue":
6244 0 return ec.fieldContext___InputValue_defaultValue(ctx, field)
6245 }
6246 0 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
6247 },
6248 }
6249 0 return fc, nil
6250 }
6251
6252 0 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
6253 0 fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field)
6254 0 if err != nil {
6255 0 return graphql.Null
6256 0 }
6257 0 ctx = graphql.WithFieldContext(ctx, fc)
6258 0 defer func() {
6259 0 if r := recover(); r != nil {
6260 0 ec.Error(ctx, ec.Recover(ctx, r))
6261 0 ret = graphql.Null
6262 0 }
6263 }()
6264 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6265 0 ctx = rctx // use context from middleware stack in children
6266 0 return obj.IsRepeatable, nil
6267 0 })
6268 0 if err != nil {
6269 0 ec.Error(ctx, err)
6270 0 return graphql.Null
6271 0 }
6272 0 if resTmp == nil {
6273 0 if !graphql.HasFieldError(ctx, fc) {
6274 0 ec.Errorf(ctx, "must not be null")
6275 0 }
6276 0 return graphql.Null
6277 }
6278 0 res := resTmp.(bool)
6279 0 fc.Result = res
6280 0 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
6281 }
6282
6283 0 func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6284 0 fc = &graphql.FieldContext{
6285 0 Object: "__Directive",
6286 0 Field: field,
6287 0 IsMethod: false,
6288 0 IsResolver: false,
6289 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6290 0 return nil, errors.New("field of type Boolean does not have child fields")
6291 0 },
6292 }
6293 0 return fc, nil
6294 }
6295
6296 0 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
6297 0 fc, err := ec.fieldContext___EnumValue_name(ctx, field)
6298 0 if err != nil {
6299 0 return graphql.Null
6300 0 }
6301 0 ctx = graphql.WithFieldContext(ctx, fc)
6302 0 defer func() {
6303 0 if r := recover(); r != nil {
6304 0 ec.Error(ctx, ec.Recover(ctx, r))
6305 0 ret = graphql.Null
6306 0 }
6307 }()
6308 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6309 0 ctx = rctx // use context from middleware stack in children
6310 0 return obj.Name, nil
6311 0 })
6312 0 if err != nil {
6313 0 ec.Error(ctx, err)
6314 0 return graphql.Null
6315 0 }
6316 0 if resTmp == nil {
6317 0 if !graphql.HasFieldError(ctx, fc) {
6318 0 ec.Errorf(ctx, "must not be null")
6319 0 }
6320 0 return graphql.Null
6321 }
6322 0 res := resTmp.(string)
6323 0 fc.Result = res
6324 0 return ec.marshalNString2string(ctx, field.Selections, res)
6325 }
6326
6327 0 func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6328 0 fc = &graphql.FieldContext{
6329 0 Object: "__EnumValue",
6330 0 Field: field,
6331 0 IsMethod: false,
6332 0 IsResolver: false,
6333 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6334 0 return nil, errors.New("field of type String does not have child fields")
6335 0 },
6336 }
6337 0 return fc, nil
6338 }
6339
6340 0 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
6341 0 fc, err := ec.fieldContext___EnumValue_description(ctx, field)
6342 0 if err != nil {
6343 0 return graphql.Null
6344 0 }
6345 0 ctx = graphql.WithFieldContext(ctx, fc)
6346 0 defer func() {
6347 0 if r := recover(); r != nil {
6348 0 ec.Error(ctx, ec.Recover(ctx, r))
6349 0 ret = graphql.Null
6350 0 }
6351 }()
6352 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6353 0 ctx = rctx // use context from middleware stack in children
6354 0 return obj.Description(), nil
6355 0 })
6356 0 if err != nil {
6357 0 ec.Error(ctx, err)
6358 0 return graphql.Null
6359 0 }
6360 0 if resTmp == nil {
6361 0 return graphql.Null
6362 0 }
6363 0 res := resTmp.(*string)
6364 0 fc.Result = res
6365 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6366 }
6367
6368 0 func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6369 0 fc = &graphql.FieldContext{
6370 0 Object: "__EnumValue",
6371 0 Field: field,
6372 0 IsMethod: true,
6373 0 IsResolver: false,
6374 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6375 0 return nil, errors.New("field of type String does not have child fields")
6376 0 },
6377 }
6378 0 return fc, nil
6379 }
6380
6381 0 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
6382 0 fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field)
6383 0 if err != nil {
6384 0 return graphql.Null
6385 0 }
6386 0 ctx = graphql.WithFieldContext(ctx, fc)
6387 0 defer func() {
6388 0 if r := recover(); r != nil {
6389 0 ec.Error(ctx, ec.Recover(ctx, r))
6390 0 ret = graphql.Null
6391 0 }
6392 }()
6393 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6394 0 ctx = rctx // use context from middleware stack in children
6395 0 return obj.IsDeprecated(), nil
6396 0 })
6397 0 if err != nil {
6398 0 ec.Error(ctx, err)
6399 0 return graphql.Null
6400 0 }
6401 0 if resTmp == nil {
6402 0 if !graphql.HasFieldError(ctx, fc) {
6403 0 ec.Errorf(ctx, "must not be null")
6404 0 }
6405 0 return graphql.Null
6406 }
6407 0 res := resTmp.(bool)
6408 0 fc.Result = res
6409 0 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
6410 }
6411
6412 0 func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6413 0 fc = &graphql.FieldContext{
6414 0 Object: "__EnumValue",
6415 0 Field: field,
6416 0 IsMethod: true,
6417 0 IsResolver: false,
6418 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6419 0 return nil, errors.New("field of type Boolean does not have child fields")
6420 0 },
6421 }
6422 0 return fc, nil
6423 }
6424
6425 0 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
6426 0 fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field)
6427 0 if err != nil {
6428 0 return graphql.Null
6429 0 }
6430 0 ctx = graphql.WithFieldContext(ctx, fc)
6431 0 defer func() {
6432 0 if r := recover(); r != nil {
6433 0 ec.Error(ctx, ec.Recover(ctx, r))
6434 0 ret = graphql.Null
6435 0 }
6436 }()
6437 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6438 0 ctx = rctx // use context from middleware stack in children
6439 0 return obj.DeprecationReason(), nil
6440 0 })
6441 0 if err != nil {
6442 0 ec.Error(ctx, err)
6443 0 return graphql.Null
6444 0 }
6445 0 if resTmp == nil {
6446 0 return graphql.Null
6447 0 }
6448 0 res := resTmp.(*string)
6449 0 fc.Result = res
6450 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6451 }
6452
6453 0 func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6454 0 fc = &graphql.FieldContext{
6455 0 Object: "__EnumValue",
6456 0 Field: field,
6457 0 IsMethod: true,
6458 0 IsResolver: false,
6459 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6460 0 return nil, errors.New("field of type String does not have child fields")
6461 0 },
6462 }
6463 0 return fc, nil
6464 }
6465
6466 0 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
6467 0 fc, err := ec.fieldContext___Field_name(ctx, field)
6468 0 if err != nil {
6469 0 return graphql.Null
6470 0 }
6471 0 ctx = graphql.WithFieldContext(ctx, fc)
6472 0 defer func() {
6473 0 if r := recover(); r != nil {
6474 0 ec.Error(ctx, ec.Recover(ctx, r))
6475 0 ret = graphql.Null
6476 0 }
6477 }()
6478 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6479 0 ctx = rctx // use context from middleware stack in children
6480 0 return obj.Name, nil
6481 0 })
6482 0 if err != nil {
6483 0 ec.Error(ctx, err)
6484 0 return graphql.Null
6485 0 }
6486 0 if resTmp == nil {
6487 0 if !graphql.HasFieldError(ctx, fc) {
6488 0 ec.Errorf(ctx, "must not be null")
6489 0 }
6490 0 return graphql.Null
6491 }
6492 0 res := resTmp.(string)
6493 0 fc.Result = res
6494 0 return ec.marshalNString2string(ctx, field.Selections, res)
6495 }
6496
6497 0 func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6498 0 fc = &graphql.FieldContext{
6499 0 Object: "__Field",
6500 0 Field: field,
6501 0 IsMethod: false,
6502 0 IsResolver: false,
6503 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6504 0 return nil, errors.New("field of type String does not have child fields")
6505 0 },
6506 }
6507 0 return fc, nil
6508 }
6509
6510 0 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
6511 0 fc, err := ec.fieldContext___Field_description(ctx, field)
6512 0 if err != nil {
6513 0 return graphql.Null
6514 0 }
6515 0 ctx = graphql.WithFieldContext(ctx, fc)
6516 0 defer func() {
6517 0 if r := recover(); r != nil {
6518 0 ec.Error(ctx, ec.Recover(ctx, r))
6519 0 ret = graphql.Null
6520 0 }
6521 }()
6522 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6523 0 ctx = rctx // use context from middleware stack in children
6524 0 return obj.Description(), nil
6525 0 })
6526 0 if err != nil {
6527 0 ec.Error(ctx, err)
6528 0 return graphql.Null
6529 0 }
6530 0 if resTmp == nil {
6531 0 return graphql.Null
6532 0 }
6533 0 res := resTmp.(*string)
6534 0 fc.Result = res
6535 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6536 }
6537
6538 0 func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6539 0 fc = &graphql.FieldContext{
6540 0 Object: "__Field",
6541 0 Field: field,
6542 0 IsMethod: true,
6543 0 IsResolver: false,
6544 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6545 0 return nil, errors.New("field of type String does not have child fields")
6546 0 },
6547 }
6548 0 return fc, nil
6549 }
6550
6551 0 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
6552 0 fc, err := ec.fieldContext___Field_args(ctx, field)
6553 0 if err != nil {
6554 0 return graphql.Null
6555 0 }
6556 0 ctx = graphql.WithFieldContext(ctx, fc)
6557 0 defer func() {
6558 0 if r := recover(); r != nil {
6559 0 ec.Error(ctx, ec.Recover(ctx, r))
6560 0 ret = graphql.Null
6561 0 }
6562 }()
6563 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6564 0 ctx = rctx // use context from middleware stack in children
6565 0 return obj.Args, nil
6566 0 })
6567 0 if err != nil {
6568 0 ec.Error(ctx, err)
6569 0 return graphql.Null
6570 0 }
6571 0 if resTmp == nil {
6572 0 if !graphql.HasFieldError(ctx, fc) {
6573 0 ec.Errorf(ctx, "must not be null")
6574 0 }
6575 0 return graphql.Null
6576 }
6577 0 res := resTmp.([]introspection.InputValue)
6578 0 fc.Result = res
6579 0 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
6580 }
6581
6582 0 func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6583 0 fc = &graphql.FieldContext{
6584 0 Object: "__Field",
6585 0 Field: field,
6586 0 IsMethod: false,
6587 0 IsResolver: false,
6588 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6589 0 switch field.Name {
6590 0 case "name":
6591 0 return ec.fieldContext___InputValue_name(ctx, field)
6592 0 case "description":
6593 0 return ec.fieldContext___InputValue_description(ctx, field)
6594 0 case "type":
6595 0 return ec.fieldContext___InputValue_type(ctx, field)
6596 0 case "defaultValue":
6597 0 return ec.fieldContext___InputValue_defaultValue(ctx, field)
6598 }
6599 0 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
6600 },
6601 }
6602 0 return fc, nil
6603 }
6604
6605 0 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
6606 0 fc, err := ec.fieldContext___Field_type(ctx, field)
6607 0 if err != nil {
6608 0 return graphql.Null
6609 0 }
6610 0 ctx = graphql.WithFieldContext(ctx, fc)
6611 0 defer func() {
6612 0 if r := recover(); r != nil {
6613 0 ec.Error(ctx, ec.Recover(ctx, r))
6614 0 ret = graphql.Null
6615 0 }
6616 }()
6617 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6618 0 ctx = rctx // use context from middleware stack in children
6619 0 return obj.Type, nil
6620 0 })
6621 0 if err != nil {
6622 0 ec.Error(ctx, err)
6623 0 return graphql.Null
6624 0 }
6625 0 if resTmp == nil {
6626 0 if !graphql.HasFieldError(ctx, fc) {
6627 0 ec.Errorf(ctx, "must not be null")
6628 0 }
6629 0 return graphql.Null
6630 }
6631 0 res := resTmp.(*introspection.Type)
6632 0 fc.Result = res
6633 0 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
6634 }
6635
6636 0 func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6637 0 fc = &graphql.FieldContext{
6638 0 Object: "__Field",
6639 0 Field: field,
6640 0 IsMethod: false,
6641 0 IsResolver: false,
6642 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6643 0 switch field.Name {
6644 0 case "kind":
6645 0 return ec.fieldContext___Type_kind(ctx, field)
6646 0 case "name":
6647 0 return ec.fieldContext___Type_name(ctx, field)
6648 0 case "description":
6649 0 return ec.fieldContext___Type_description(ctx, field)
6650 0 case "fields":
6651 0 return ec.fieldContext___Type_fields(ctx, field)
6652 0 case "interfaces":
6653 0 return ec.fieldContext___Type_interfaces(ctx, field)
6654 0 case "possibleTypes":
6655 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
6656 0 case "enumValues":
6657 0 return ec.fieldContext___Type_enumValues(ctx, field)
6658 0 case "inputFields":
6659 0 return ec.fieldContext___Type_inputFields(ctx, field)
6660 0 case "ofType":
6661 0 return ec.fieldContext___Type_ofType(ctx, field)
6662 0 case "specifiedByURL":
6663 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
6664 }
6665 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
6666 },
6667 }
6668 0 return fc, nil
6669 }
6670
6671 0 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
6672 0 fc, err := ec.fieldContext___Field_isDeprecated(ctx, field)
6673 0 if err != nil {
6674 0 return graphql.Null
6675 0 }
6676 0 ctx = graphql.WithFieldContext(ctx, fc)
6677 0 defer func() {
6678 0 if r := recover(); r != nil {
6679 0 ec.Error(ctx, ec.Recover(ctx, r))
6680 0 ret = graphql.Null
6681 0 }
6682 }()
6683 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6684 0 ctx = rctx // use context from middleware stack in children
6685 0 return obj.IsDeprecated(), nil
6686 0 })
6687 0 if err != nil {
6688 0 ec.Error(ctx, err)
6689 0 return graphql.Null
6690 0 }
6691 0 if resTmp == nil {
6692 0 if !graphql.HasFieldError(ctx, fc) {
6693 0 ec.Errorf(ctx, "must not be null")
6694 0 }
6695 0 return graphql.Null
6696 }
6697 0 res := resTmp.(bool)
6698 0 fc.Result = res
6699 0 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
6700 }
6701
6702 0 func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6703 0 fc = &graphql.FieldContext{
6704 0 Object: "__Field",
6705 0 Field: field,
6706 0 IsMethod: true,
6707 0 IsResolver: false,
6708 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6709 0 return nil, errors.New("field of type Boolean does not have child fields")
6710 0 },
6711 }
6712 0 return fc, nil
6713 }
6714
6715 0 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
6716 0 fc, err := ec.fieldContext___Field_deprecationReason(ctx, field)
6717 0 if err != nil {
6718 0 return graphql.Null
6719 0 }
6720 0 ctx = graphql.WithFieldContext(ctx, fc)
6721 0 defer func() {
6722 0 if r := recover(); r != nil {
6723 0 ec.Error(ctx, ec.Recover(ctx, r))
6724 0 ret = graphql.Null
6725 0 }
6726 }()
6727 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6728 0 ctx = rctx // use context from middleware stack in children
6729 0 return obj.DeprecationReason(), nil
6730 0 })
6731 0 if err != nil {
6732 0 ec.Error(ctx, err)
6733 0 return graphql.Null
6734 0 }
6735 0 if resTmp == nil {
6736 0 return graphql.Null
6737 0 }
6738 0 res := resTmp.(*string)
6739 0 fc.Result = res
6740 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6741 }
6742
6743 0 func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6744 0 fc = &graphql.FieldContext{
6745 0 Object: "__Field",
6746 0 Field: field,
6747 0 IsMethod: true,
6748 0 IsResolver: false,
6749 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6750 0 return nil, errors.New("field of type String does not have child fields")
6751 0 },
6752 }
6753 0 return fc, nil
6754 }
6755
6756 0 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
6757 0 fc, err := ec.fieldContext___InputValue_name(ctx, field)
6758 0 if err != nil {
6759 0 return graphql.Null
6760 0 }
6761 0 ctx = graphql.WithFieldContext(ctx, fc)
6762 0 defer func() {
6763 0 if r := recover(); r != nil {
6764 0 ec.Error(ctx, ec.Recover(ctx, r))
6765 0 ret = graphql.Null
6766 0 }
6767 }()
6768 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6769 0 ctx = rctx // use context from middleware stack in children
6770 0 return obj.Name, nil
6771 0 })
6772 0 if err != nil {
6773 0 ec.Error(ctx, err)
6774 0 return graphql.Null
6775 0 }
6776 0 if resTmp == nil {
6777 0 if !graphql.HasFieldError(ctx, fc) {
6778 0 ec.Errorf(ctx, "must not be null")
6779 0 }
6780 0 return graphql.Null
6781 }
6782 0 res := resTmp.(string)
6783 0 fc.Result = res
6784 0 return ec.marshalNString2string(ctx, field.Selections, res)
6785 }
6786
6787 0 func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6788 0 fc = &graphql.FieldContext{
6789 0 Object: "__InputValue",
6790 0 Field: field,
6791 0 IsMethod: false,
6792 0 IsResolver: false,
6793 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6794 0 return nil, errors.New("field of type String does not have child fields")
6795 0 },
6796 }
6797 0 return fc, nil
6798 }
6799
6800 0 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
6801 0 fc, err := ec.fieldContext___InputValue_description(ctx, field)
6802 0 if err != nil {
6803 0 return graphql.Null
6804 0 }
6805 0 ctx = graphql.WithFieldContext(ctx, fc)
6806 0 defer func() {
6807 0 if r := recover(); r != nil {
6808 0 ec.Error(ctx, ec.Recover(ctx, r))
6809 0 ret = graphql.Null
6810 0 }
6811 }()
6812 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6813 0 ctx = rctx // use context from middleware stack in children
6814 0 return obj.Description(), nil
6815 0 })
6816 0 if err != nil {
6817 0 ec.Error(ctx, err)
6818 0 return graphql.Null
6819 0 }
6820 0 if resTmp == nil {
6821 0 return graphql.Null
6822 0 }
6823 0 res := resTmp.(*string)
6824 0 fc.Result = res
6825 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6826 }
6827
6828 0 func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6829 0 fc = &graphql.FieldContext{
6830 0 Object: "__InputValue",
6831 0 Field: field,
6832 0 IsMethod: true,
6833 0 IsResolver: false,
6834 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6835 0 return nil, errors.New("field of type String does not have child fields")
6836 0 },
6837 }
6838 0 return fc, nil
6839 }
6840
6841 0 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
6842 0 fc, err := ec.fieldContext___InputValue_type(ctx, field)
6843 0 if err != nil {
6844 0 return graphql.Null
6845 0 }
6846 0 ctx = graphql.WithFieldContext(ctx, fc)
6847 0 defer func() {
6848 0 if r := recover(); r != nil {
6849 0 ec.Error(ctx, ec.Recover(ctx, r))
6850 0 ret = graphql.Null
6851 0 }
6852 }()
6853 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6854 0 ctx = rctx // use context from middleware stack in children
6855 0 return obj.Type, nil
6856 0 })
6857 0 if err != nil {
6858 0 ec.Error(ctx, err)
6859 0 return graphql.Null
6860 0 }
6861 0 if resTmp == nil {
6862 0 if !graphql.HasFieldError(ctx, fc) {
6863 0 ec.Errorf(ctx, "must not be null")
6864 0 }
6865 0 return graphql.Null
6866 }
6867 0 res := resTmp.(*introspection.Type)
6868 0 fc.Result = res
6869 0 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
6870 }
6871
6872 0 func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6873 0 fc = &graphql.FieldContext{
6874 0 Object: "__InputValue",
6875 0 Field: field,
6876 0 IsMethod: false,
6877 0 IsResolver: false,
6878 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6879 0 switch field.Name {
6880 0 case "kind":
6881 0 return ec.fieldContext___Type_kind(ctx, field)
6882 0 case "name":
6883 0 return ec.fieldContext___Type_name(ctx, field)
6884 0 case "description":
6885 0 return ec.fieldContext___Type_description(ctx, field)
6886 0 case "fields":
6887 0 return ec.fieldContext___Type_fields(ctx, field)
6888 0 case "interfaces":
6889 0 return ec.fieldContext___Type_interfaces(ctx, field)
6890 0 case "possibleTypes":
6891 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
6892 0 case "enumValues":
6893 0 return ec.fieldContext___Type_enumValues(ctx, field)
6894 0 case "inputFields":
6895 0 return ec.fieldContext___Type_inputFields(ctx, field)
6896 0 case "ofType":
6897 0 return ec.fieldContext___Type_ofType(ctx, field)
6898 0 case "specifiedByURL":
6899 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
6900 }
6901 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
6902 },
6903 }
6904 0 return fc, nil
6905 }
6906
6907 0 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
6908 0 fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field)
6909 0 if err != nil {
6910 0 return graphql.Null
6911 0 }
6912 0 ctx = graphql.WithFieldContext(ctx, fc)
6913 0 defer func() {
6914 0 if r := recover(); r != nil {
6915 0 ec.Error(ctx, ec.Recover(ctx, r))
6916 0 ret = graphql.Null
6917 0 }
6918 }()
6919 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6920 0 ctx = rctx // use context from middleware stack in children
6921 0 return obj.DefaultValue, nil
6922 0 })
6923 0 if err != nil {
6924 0 ec.Error(ctx, err)
6925 0 return graphql.Null
6926 0 }
6927 0 if resTmp == nil {
6928 0 return graphql.Null
6929 0 }
6930 0 res := resTmp.(*string)
6931 0 fc.Result = res
6932 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6933 }
6934
6935 0 func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6936 0 fc = &graphql.FieldContext{
6937 0 Object: "__InputValue",
6938 0 Field: field,
6939 0 IsMethod: false,
6940 0 IsResolver: false,
6941 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6942 0 return nil, errors.New("field of type String does not have child fields")
6943 0 },
6944 }
6945 0 return fc, nil
6946 }
6947
6948 0 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
6949 0 fc, err := ec.fieldContext___Schema_description(ctx, field)
6950 0 if err != nil {
6951 0 return graphql.Null
6952 0 }
6953 0 ctx = graphql.WithFieldContext(ctx, fc)
6954 0 defer func() {
6955 0 if r := recover(); r != nil {
6956 0 ec.Error(ctx, ec.Recover(ctx, r))
6957 0 ret = graphql.Null
6958 0 }
6959 }()
6960 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6961 0 ctx = rctx // use context from middleware stack in children
6962 0 return obj.Description(), nil
6963 0 })
6964 0 if err != nil {
6965 0 ec.Error(ctx, err)
6966 0 return graphql.Null
6967 0 }
6968 0 if resTmp == nil {
6969 0 return graphql.Null
6970 0 }
6971 0 res := resTmp.(*string)
6972 0 fc.Result = res
6973 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6974 }
6975
6976 0 func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
6977 0 fc = &graphql.FieldContext{
6978 0 Object: "__Schema",
6979 0 Field: field,
6980 0 IsMethod: true,
6981 0 IsResolver: false,
6982 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
6983 0 return nil, errors.New("field of type String does not have child fields")
6984 0 },
6985 }
6986 0 return fc, nil
6987 }
6988
6989 0 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
6990 0 fc, err := ec.fieldContext___Schema_types(ctx, field)
6991 0 if err != nil {
6992 0 return graphql.Null
6993 0 }
6994 0 ctx = graphql.WithFieldContext(ctx, fc)
6995 0 defer func() {
6996 0 if r := recover(); r != nil {
6997 0 ec.Error(ctx, ec.Recover(ctx, r))
6998 0 ret = graphql.Null
6999 0 }
7000 }()
7001 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7002 0 ctx = rctx // use context from middleware stack in children
7003 0 return obj.Types(), nil
7004 0 })
7005 0 if err != nil {
7006 0 ec.Error(ctx, err)
7007 0 return graphql.Null
7008 0 }
7009 0 if resTmp == nil {
7010 0 if !graphql.HasFieldError(ctx, fc) {
7011 0 ec.Errorf(ctx, "must not be null")
7012 0 }
7013 0 return graphql.Null
7014 }
7015 0 res := resTmp.([]introspection.Type)
7016 0 fc.Result = res
7017 0 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
7018 }
7019
7020 0 func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7021 0 fc = &graphql.FieldContext{
7022 0 Object: "__Schema",
7023 0 Field: field,
7024 0 IsMethod: true,
7025 0 IsResolver: false,
7026 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7027 0 switch field.Name {
7028 0 case "kind":
7029 0 return ec.fieldContext___Type_kind(ctx, field)
7030 0 case "name":
7031 0 return ec.fieldContext___Type_name(ctx, field)
7032 0 case "description":
7033 0 return ec.fieldContext___Type_description(ctx, field)
7034 0 case "fields":
7035 0 return ec.fieldContext___Type_fields(ctx, field)
7036 0 case "interfaces":
7037 0 return ec.fieldContext___Type_interfaces(ctx, field)
7038 0 case "possibleTypes":
7039 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
7040 0 case "enumValues":
7041 0 return ec.fieldContext___Type_enumValues(ctx, field)
7042 0 case "inputFields":
7043 0 return ec.fieldContext___Type_inputFields(ctx, field)
7044 0 case "ofType":
7045 0 return ec.fieldContext___Type_ofType(ctx, field)
7046 0 case "specifiedByURL":
7047 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
7048 }
7049 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
7050 },
7051 }
7052 0 return fc, nil
7053 }
7054
7055 0 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
7056 0 fc, err := ec.fieldContext___Schema_queryType(ctx, field)
7057 0 if err != nil {
7058 0 return graphql.Null
7059 0 }
7060 0 ctx = graphql.WithFieldContext(ctx, fc)
7061 0 defer func() {
7062 0 if r := recover(); r != nil {
7063 0 ec.Error(ctx, ec.Recover(ctx, r))
7064 0 ret = graphql.Null
7065 0 }
7066 }()
7067 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7068 0 ctx = rctx // use context from middleware stack in children
7069 0 return obj.QueryType(), nil
7070 0 })
7071 0 if err != nil {
7072 0 ec.Error(ctx, err)
7073 0 return graphql.Null
7074 0 }
7075 0 if resTmp == nil {
7076 0 if !graphql.HasFieldError(ctx, fc) {
7077 0 ec.Errorf(ctx, "must not be null")
7078 0 }
7079 0 return graphql.Null
7080 }
7081 0 res := resTmp.(*introspection.Type)
7082 0 fc.Result = res
7083 0 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
7084 }
7085
7086 0 func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7087 0 fc = &graphql.FieldContext{
7088 0 Object: "__Schema",
7089 0 Field: field,
7090 0 IsMethod: true,
7091 0 IsResolver: false,
7092 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7093 0 switch field.Name {
7094 0 case "kind":
7095 0 return ec.fieldContext___Type_kind(ctx, field)
7096 0 case "name":
7097 0 return ec.fieldContext___Type_name(ctx, field)
7098 0 case "description":
7099 0 return ec.fieldContext___Type_description(ctx, field)
7100 0 case "fields":
7101 0 return ec.fieldContext___Type_fields(ctx, field)
7102 0 case "interfaces":
7103 0 return ec.fieldContext___Type_interfaces(ctx, field)
7104 0 case "possibleTypes":
7105 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
7106 0 case "enumValues":
7107 0 return ec.fieldContext___Type_enumValues(ctx, field)
7108 0 case "inputFields":
7109 0 return ec.fieldContext___Type_inputFields(ctx, field)
7110 0 case "ofType":
7111 0 return ec.fieldContext___Type_ofType(ctx, field)
7112 0 case "specifiedByURL":
7113 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
7114 }
7115 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
7116 },
7117 }
7118 0 return fc, nil
7119 }
7120
7121 0 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
7122 0 fc, err := ec.fieldContext___Schema_mutationType(ctx, field)
7123 0 if err != nil {
7124 0 return graphql.Null
7125 0 }
7126 0 ctx = graphql.WithFieldContext(ctx, fc)
7127 0 defer func() {
7128 0 if r := recover(); r != nil {
7129 0 ec.Error(ctx, ec.Recover(ctx, r))
7130 0 ret = graphql.Null
7131 0 }
7132 }()
7133 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7134 0 ctx = rctx // use context from middleware stack in children
7135 0 return obj.MutationType(), nil
7136 0 })
7137 0 if err != nil {
7138 0 ec.Error(ctx, err)
7139 0 return graphql.Null
7140 0 }
7141 0 if resTmp == nil {
7142 0 return graphql.Null
7143 0 }
7144 0 res := resTmp.(*introspection.Type)
7145 0 fc.Result = res
7146 0 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
7147 }
7148
7149 0 func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7150 0 fc = &graphql.FieldContext{
7151 0 Object: "__Schema",
7152 0 Field: field,
7153 0 IsMethod: true,
7154 0 IsResolver: false,
7155 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7156 0 switch field.Name {
7157 0 case "kind":
7158 0 return ec.fieldContext___Type_kind(ctx, field)
7159 0 case "name":
7160 0 return ec.fieldContext___Type_name(ctx, field)
7161 0 case "description":
7162 0 return ec.fieldContext___Type_description(ctx, field)
7163 0 case "fields":
7164 0 return ec.fieldContext___Type_fields(ctx, field)
7165 0 case "interfaces":
7166 0 return ec.fieldContext___Type_interfaces(ctx, field)
7167 0 case "possibleTypes":
7168 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
7169 0 case "enumValues":
7170 0 return ec.fieldContext___Type_enumValues(ctx, field)
7171 0 case "inputFields":
7172 0 return ec.fieldContext___Type_inputFields(ctx, field)
7173 0 case "ofType":
7174 0 return ec.fieldContext___Type_ofType(ctx, field)
7175 0 case "specifiedByURL":
7176 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
7177 }
7178 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
7179 },
7180 }
7181 0 return fc, nil
7182 }
7183
7184 0 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
7185 0 fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field)
7186 0 if err != nil {
7187 0 return graphql.Null
7188 0 }
7189 0 ctx = graphql.WithFieldContext(ctx, fc)
7190 0 defer func() {
7191 0 if r := recover(); r != nil {
7192 0 ec.Error(ctx, ec.Recover(ctx, r))
7193 0 ret = graphql.Null
7194 0 }
7195 }()
7196 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7197 0 ctx = rctx // use context from middleware stack in children
7198 0 return obj.SubscriptionType(), nil
7199 0 })
7200 0 if err != nil {
7201 0 ec.Error(ctx, err)
7202 0 return graphql.Null
7203 0 }
7204 0 if resTmp == nil {
7205 0 return graphql.Null
7206 0 }
7207 0 res := resTmp.(*introspection.Type)
7208 0 fc.Result = res
7209 0 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
7210 }
7211
7212 0 func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7213 0 fc = &graphql.FieldContext{
7214 0 Object: "__Schema",
7215 0 Field: field,
7216 0 IsMethod: true,
7217 0 IsResolver: false,
7218 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7219 0 switch field.Name {
7220 0 case "kind":
7221 0 return ec.fieldContext___Type_kind(ctx, field)
7222 0 case "name":
7223 0 return ec.fieldContext___Type_name(ctx, field)
7224 0 case "description":
7225 0 return ec.fieldContext___Type_description(ctx, field)
7226 0 case "fields":
7227 0 return ec.fieldContext___Type_fields(ctx, field)
7228 0 case "interfaces":
7229 0 return ec.fieldContext___Type_interfaces(ctx, field)
7230 0 case "possibleTypes":
7231 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
7232 0 case "enumValues":
7233 0 return ec.fieldContext___Type_enumValues(ctx, field)
7234 0 case "inputFields":
7235 0 return ec.fieldContext___Type_inputFields(ctx, field)
7236 0 case "ofType":
7237 0 return ec.fieldContext___Type_ofType(ctx, field)
7238 0 case "specifiedByURL":
7239 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
7240 }
7241 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
7242 },
7243 }
7244 0 return fc, nil
7245 }
7246
7247 0 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
7248 0 fc, err := ec.fieldContext___Schema_directives(ctx, field)
7249 0 if err != nil {
7250 0 return graphql.Null
7251 0 }
7252 0 ctx = graphql.WithFieldContext(ctx, fc)
7253 0 defer func() {
7254 0 if r := recover(); r != nil {
7255 0 ec.Error(ctx, ec.Recover(ctx, r))
7256 0 ret = graphql.Null
7257 0 }
7258 }()
7259 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7260 0 ctx = rctx // use context from middleware stack in children
7261 0 return obj.Directives(), nil
7262 0 })
7263 0 if err != nil {
7264 0 ec.Error(ctx, err)
7265 0 return graphql.Null
7266 0 }
7267 0 if resTmp == nil {
7268 0 if !graphql.HasFieldError(ctx, fc) {
7269 0 ec.Errorf(ctx, "must not be null")
7270 0 }
7271 0 return graphql.Null
7272 }
7273 0 res := resTmp.([]introspection.Directive)
7274 0 fc.Result = res
7275 0 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
7276 }
7277
7278 0 func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7279 0 fc = &graphql.FieldContext{
7280 0 Object: "__Schema",
7281 0 Field: field,
7282 0 IsMethod: true,
7283 0 IsResolver: false,
7284 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7285 0 switch field.Name {
7286 0 case "name":
7287 0 return ec.fieldContext___Directive_name(ctx, field)
7288 0 case "description":
7289 0 return ec.fieldContext___Directive_description(ctx, field)
7290 0 case "locations":
7291 0 return ec.fieldContext___Directive_locations(ctx, field)
7292 0 case "args":
7293 0 return ec.fieldContext___Directive_args(ctx, field)
7294 0 case "isRepeatable":
7295 0 return ec.fieldContext___Directive_isRepeatable(ctx, field)
7296 }
7297 0 return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
7298 },
7299 }
7300 0 return fc, nil
7301 }
7302
7303 0 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7304 0 fc, err := ec.fieldContext___Type_kind(ctx, field)
7305 0 if err != nil {
7306 0 return graphql.Null
7307 0 }
7308 0 ctx = graphql.WithFieldContext(ctx, fc)
7309 0 defer func() {
7310 0 if r := recover(); r != nil {
7311 0 ec.Error(ctx, ec.Recover(ctx, r))
7312 0 ret = graphql.Null
7313 0 }
7314 }()
7315 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7316 0 ctx = rctx // use context from middleware stack in children
7317 0 return obj.Kind(), nil
7318 0 })
7319 0 if err != nil {
7320 0 ec.Error(ctx, err)
7321 0 return graphql.Null
7322 0 }
7323 0 if resTmp == nil {
7324 0 if !graphql.HasFieldError(ctx, fc) {
7325 0 ec.Errorf(ctx, "must not be null")
7326 0 }
7327 0 return graphql.Null
7328 }
7329 0 res := resTmp.(string)
7330 0 fc.Result = res
7331 0 return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
7332 }
7333
7334 0 func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7335 0 fc = &graphql.FieldContext{
7336 0 Object: "__Type",
7337 0 Field: field,
7338 0 IsMethod: true,
7339 0 IsResolver: false,
7340 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7341 0 return nil, errors.New("field of type __TypeKind does not have child fields")
7342 0 },
7343 }
7344 0 return fc, nil
7345 }
7346
7347 0 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7348 0 fc, err := ec.fieldContext___Type_name(ctx, field)
7349 0 if err != nil {
7350 0 return graphql.Null
7351 0 }
7352 0 ctx = graphql.WithFieldContext(ctx, fc)
7353 0 defer func() {
7354 0 if r := recover(); r != nil {
7355 0 ec.Error(ctx, ec.Recover(ctx, r))
7356 0 ret = graphql.Null
7357 0 }
7358 }()
7359 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7360 0 ctx = rctx // use context from middleware stack in children
7361 0 return obj.Name(), nil
7362 0 })
7363 0 if err != nil {
7364 0 ec.Error(ctx, err)
7365 0 return graphql.Null
7366 0 }
7367 0 if resTmp == nil {
7368 0 return graphql.Null
7369 0 }
7370 0 res := resTmp.(*string)
7371 0 fc.Result = res
7372 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
7373 }
7374
7375 0 func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7376 0 fc = &graphql.FieldContext{
7377 0 Object: "__Type",
7378 0 Field: field,
7379 0 IsMethod: true,
7380 0 IsResolver: false,
7381 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7382 0 return nil, errors.New("field of type String does not have child fields")
7383 0 },
7384 }
7385 0 return fc, nil
7386 }
7387
7388 0 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7389 0 fc, err := ec.fieldContext___Type_description(ctx, field)
7390 0 if err != nil {
7391 0 return graphql.Null
7392 0 }
7393 0 ctx = graphql.WithFieldContext(ctx, fc)
7394 0 defer func() {
7395 0 if r := recover(); r != nil {
7396 0 ec.Error(ctx, ec.Recover(ctx, r))
7397 0 ret = graphql.Null
7398 0 }
7399 }()
7400 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7401 0 ctx = rctx // use context from middleware stack in children
7402 0 return obj.Description(), nil
7403 0 })
7404 0 if err != nil {
7405 0 ec.Error(ctx, err)
7406 0 return graphql.Null
7407 0 }
7408 0 if resTmp == nil {
7409 0 return graphql.Null
7410 0 }
7411 0 res := resTmp.(*string)
7412 0 fc.Result = res
7413 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
7414 }
7415
7416 0 func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7417 0 fc = &graphql.FieldContext{
7418 0 Object: "__Type",
7419 0 Field: field,
7420 0 IsMethod: true,
7421 0 IsResolver: false,
7422 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7423 0 return nil, errors.New("field of type String does not have child fields")
7424 0 },
7425 }
7426 0 return fc, nil
7427 }
7428
7429 0 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7430 0 fc, err := ec.fieldContext___Type_fields(ctx, field)
7431 0 if err != nil {
7432 0 return graphql.Null
7433 0 }
7434 0 ctx = graphql.WithFieldContext(ctx, fc)
7435 0 defer func() {
7436 0 if r := recover(); r != nil {
7437 0 ec.Error(ctx, ec.Recover(ctx, r))
7438 0 ret = graphql.Null
7439 0 }
7440 }()
7441 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7442 0 ctx = rctx // use context from middleware stack in children
7443 0 return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
7444 0 })
7445 0 if err != nil {
7446 0 ec.Error(ctx, err)
7447 0 return graphql.Null
7448 0 }
7449 0 if resTmp == nil {
7450 0 return graphql.Null
7451 0 }
7452 0 res := resTmp.([]introspection.Field)
7453 0 fc.Result = res
7454 0 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
7455 }
7456
7457 0 func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7458 0 fc = &graphql.FieldContext{
7459 0 Object: "__Type",
7460 0 Field: field,
7461 0 IsMethod: true,
7462 0 IsResolver: false,
7463 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7464 0 switch field.Name {
7465 0 case "name":
7466 0 return ec.fieldContext___Field_name(ctx, field)
7467 0 case "description":
7468 0 return ec.fieldContext___Field_description(ctx, field)
7469 0 case "args":
7470 0 return ec.fieldContext___Field_args(ctx, field)
7471 0 case "type":
7472 0 return ec.fieldContext___Field_type(ctx, field)
7473 0 case "isDeprecated":
7474 0 return ec.fieldContext___Field_isDeprecated(ctx, field)
7475 0 case "deprecationReason":
7476 0 return ec.fieldContext___Field_deprecationReason(ctx, field)
7477 }
7478 0 return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
7479 },
7480 }
7481 0 defer func() {
7482 0 if r := recover(); r != nil {
7483 0 err = ec.Recover(ctx, r)
7484 0 ec.Error(ctx, err)
7485 0 }
7486 }()
7487 0 ctx = graphql.WithFieldContext(ctx, fc)
7488 0 if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
7489 0 ec.Error(ctx, err)
7490 0 return fc, err
7491 0 }
7492 0 return fc, nil
7493 }
7494
7495 0 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7496 0 fc, err := ec.fieldContext___Type_interfaces(ctx, field)
7497 0 if err != nil {
7498 0 return graphql.Null
7499 0 }
7500 0 ctx = graphql.WithFieldContext(ctx, fc)
7501 0 defer func() {
7502 0 if r := recover(); r != nil {
7503 0 ec.Error(ctx, ec.Recover(ctx, r))
7504 0 ret = graphql.Null
7505 0 }
7506 }()
7507 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7508 0 ctx = rctx // use context from middleware stack in children
7509 0 return obj.Interfaces(), nil
7510 0 })
7511 0 if err != nil {
7512 0 ec.Error(ctx, err)
7513 0 return graphql.Null
7514 0 }
7515 0 if resTmp == nil {
7516 0 return graphql.Null
7517 0 }
7518 0 res := resTmp.([]introspection.Type)
7519 0 fc.Result = res
7520 0 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
7521 }
7522
7523 0 func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7524 0 fc = &graphql.FieldContext{
7525 0 Object: "__Type",
7526 0 Field: field,
7527 0 IsMethod: true,
7528 0 IsResolver: false,
7529 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7530 0 switch field.Name {
7531 0 case "kind":
7532 0 return ec.fieldContext___Type_kind(ctx, field)
7533 0 case "name":
7534 0 return ec.fieldContext___Type_name(ctx, field)
7535 0 case "description":
7536 0 return ec.fieldContext___Type_description(ctx, field)
7537 0 case "fields":
7538 0 return ec.fieldContext___Type_fields(ctx, field)
7539 0 case "interfaces":
7540 0 return ec.fieldContext___Type_interfaces(ctx, field)
7541 0 case "possibleTypes":
7542 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
7543 0 case "enumValues":
7544 0 return ec.fieldContext___Type_enumValues(ctx, field)
7545 0 case "inputFields":
7546 0 return ec.fieldContext___Type_inputFields(ctx, field)
7547 0 case "ofType":
7548 0 return ec.fieldContext___Type_ofType(ctx, field)
7549 0 case "specifiedByURL":
7550 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
7551 }
7552 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
7553 },
7554 }
7555 0 return fc, nil
7556 }
7557
7558 0 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7559 0 fc, err := ec.fieldContext___Type_possibleTypes(ctx, field)
7560 0 if err != nil {
7561 0 return graphql.Null
7562 0 }
7563 0 ctx = graphql.WithFieldContext(ctx, fc)
7564 0 defer func() {
7565 0 if r := recover(); r != nil {
7566 0 ec.Error(ctx, ec.Recover(ctx, r))
7567 0 ret = graphql.Null
7568 0 }
7569 }()
7570 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7571 0 ctx = rctx // use context from middleware stack in children
7572 0 return obj.PossibleTypes(), nil
7573 0 })
7574 0 if err != nil {
7575 0 ec.Error(ctx, err)
7576 0 return graphql.Null
7577 0 }
7578 0 if resTmp == nil {
7579 0 return graphql.Null
7580 0 }
7581 0 res := resTmp.([]introspection.Type)
7582 0 fc.Result = res
7583 0 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
7584 }
7585
7586 0 func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7587 0 fc = &graphql.FieldContext{
7588 0 Object: "__Type",
7589 0 Field: field,
7590 0 IsMethod: true,
7591 0 IsResolver: false,
7592 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7593 0 switch field.Name {
7594 0 case "kind":
7595 0 return ec.fieldContext___Type_kind(ctx, field)
7596 0 case "name":
7597 0 return ec.fieldContext___Type_name(ctx, field)
7598 0 case "description":
7599 0 return ec.fieldContext___Type_description(ctx, field)
7600 0 case "fields":
7601 0 return ec.fieldContext___Type_fields(ctx, field)
7602 0 case "interfaces":
7603 0 return ec.fieldContext___Type_interfaces(ctx, field)
7604 0 case "possibleTypes":
7605 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
7606 0 case "enumValues":
7607 0 return ec.fieldContext___Type_enumValues(ctx, field)
7608 0 case "inputFields":
7609 0 return ec.fieldContext___Type_inputFields(ctx, field)
7610 0 case "ofType":
7611 0 return ec.fieldContext___Type_ofType(ctx, field)
7612 0 case "specifiedByURL":
7613 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
7614 }
7615 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
7616 },
7617 }
7618 0 return fc, nil
7619 }
7620
7621 0 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7622 0 fc, err := ec.fieldContext___Type_enumValues(ctx, field)
7623 0 if err != nil {
7624 0 return graphql.Null
7625 0 }
7626 0 ctx = graphql.WithFieldContext(ctx, fc)
7627 0 defer func() {
7628 0 if r := recover(); r != nil {
7629 0 ec.Error(ctx, ec.Recover(ctx, r))
7630 0 ret = graphql.Null
7631 0 }
7632 }()
7633 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7634 0 ctx = rctx // use context from middleware stack in children
7635 0 return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
7636 0 })
7637 0 if err != nil {
7638 0 ec.Error(ctx, err)
7639 0 return graphql.Null
7640 0 }
7641 0 if resTmp == nil {
7642 0 return graphql.Null
7643 0 }
7644 0 res := resTmp.([]introspection.EnumValue)
7645 0 fc.Result = res
7646 0 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
7647 }
7648
7649 0 func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7650 0 fc = &graphql.FieldContext{
7651 0 Object: "__Type",
7652 0 Field: field,
7653 0 IsMethod: true,
7654 0 IsResolver: false,
7655 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7656 0 switch field.Name {
7657 0 case "name":
7658 0 return ec.fieldContext___EnumValue_name(ctx, field)
7659 0 case "description":
7660 0 return ec.fieldContext___EnumValue_description(ctx, field)
7661 0 case "isDeprecated":
7662 0 return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
7663 0 case "deprecationReason":
7664 0 return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
7665 }
7666 0 return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
7667 },
7668 }
7669 0 defer func() {
7670 0 if r := recover(); r != nil {
7671 0 err = ec.Recover(ctx, r)
7672 0 ec.Error(ctx, err)
7673 0 }
7674 }()
7675 0 ctx = graphql.WithFieldContext(ctx, fc)
7676 0 if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
7677 0 ec.Error(ctx, err)
7678 0 return fc, err
7679 0 }
7680 0 return fc, nil
7681 }
7682
7683 0 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7684 0 fc, err := ec.fieldContext___Type_inputFields(ctx, field)
7685 0 if err != nil {
7686 0 return graphql.Null
7687 0 }
7688 0 ctx = graphql.WithFieldContext(ctx, fc)
7689 0 defer func() {
7690 0 if r := recover(); r != nil {
7691 0 ec.Error(ctx, ec.Recover(ctx, r))
7692 0 ret = graphql.Null
7693 0 }
7694 }()
7695 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7696 0 ctx = rctx // use context from middleware stack in children
7697 0 return obj.InputFields(), nil
7698 0 })
7699 0 if err != nil {
7700 0 ec.Error(ctx, err)
7701 0 return graphql.Null
7702 0 }
7703 0 if resTmp == nil {
7704 0 return graphql.Null
7705 0 }
7706 0 res := resTmp.([]introspection.InputValue)
7707 0 fc.Result = res
7708 0 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
7709 }
7710
7711 0 func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7712 0 fc = &graphql.FieldContext{
7713 0 Object: "__Type",
7714 0 Field: field,
7715 0 IsMethod: true,
7716 0 IsResolver: false,
7717 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7718 0 switch field.Name {
7719 0 case "name":
7720 0 return ec.fieldContext___InputValue_name(ctx, field)
7721 0 case "description":
7722 0 return ec.fieldContext___InputValue_description(ctx, field)
7723 0 case "type":
7724 0 return ec.fieldContext___InputValue_type(ctx, field)
7725 0 case "defaultValue":
7726 0 return ec.fieldContext___InputValue_defaultValue(ctx, field)
7727 }
7728 0 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
7729 },
7730 }
7731 0 return fc, nil
7732 }
7733
7734 0 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7735 0 fc, err := ec.fieldContext___Type_ofType(ctx, field)
7736 0 if err != nil {
7737 0 return graphql.Null
7738 0 }
7739 0 ctx = graphql.WithFieldContext(ctx, fc)
7740 0 defer func() {
7741 0 if r := recover(); r != nil {
7742 0 ec.Error(ctx, ec.Recover(ctx, r))
7743 0 ret = graphql.Null
7744 0 }
7745 }()
7746 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7747 0 ctx = rctx // use context from middleware stack in children
7748 0 return obj.OfType(), nil
7749 0 })
7750 0 if err != nil {
7751 0 ec.Error(ctx, err)
7752 0 return graphql.Null
7753 0 }
7754 0 if resTmp == nil {
7755 0 return graphql.Null
7756 0 }
7757 0 res := resTmp.(*introspection.Type)
7758 0 fc.Result = res
7759 0 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
7760 }
7761
7762 0 func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7763 0 fc = &graphql.FieldContext{
7764 0 Object: "__Type",
7765 0 Field: field,
7766 0 IsMethod: true,
7767 0 IsResolver: false,
7768 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7769 0 switch field.Name {
7770 0 case "kind":
7771 0 return ec.fieldContext___Type_kind(ctx, field)
7772 0 case "name":
7773 0 return ec.fieldContext___Type_name(ctx, field)
7774 0 case "description":
7775 0 return ec.fieldContext___Type_description(ctx, field)
7776 0 case "fields":
7777 0 return ec.fieldContext___Type_fields(ctx, field)
7778 0 case "interfaces":
7779 0 return ec.fieldContext___Type_interfaces(ctx, field)
7780 0 case "possibleTypes":
7781 0 return ec.fieldContext___Type_possibleTypes(ctx, field)
7782 0 case "enumValues":
7783 0 return ec.fieldContext___Type_enumValues(ctx, field)
7784 0 case "inputFields":
7785 0 return ec.fieldContext___Type_inputFields(ctx, field)
7786 0 case "ofType":
7787 0 return ec.fieldContext___Type_ofType(ctx, field)
7788 0 case "specifiedByURL":
7789 0 return ec.fieldContext___Type_specifiedByURL(ctx, field)
7790 }
7791 0 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
7792 },
7793 }
7794 0 return fc, nil
7795 }
7796
7797 0 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
7798 0 fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field)
7799 0 if err != nil {
7800 0 return graphql.Null
7801 0 }
7802 0 ctx = graphql.WithFieldContext(ctx, fc)
7803 0 defer func() {
7804 0 if r := recover(); r != nil {
7805 0 ec.Error(ctx, ec.Recover(ctx, r))
7806 0 ret = graphql.Null
7807 0 }
7808 }()
7809 0 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7810 0 ctx = rctx // use context from middleware stack in children
7811 0 return obj.SpecifiedByURL(), nil
7812 0 })
7813 0 if err != nil {
7814 0 ec.Error(ctx, err)
7815 0 return graphql.Null
7816 0 }
7817 0 if resTmp == nil {
7818 0 return graphql.Null
7819 0 }
7820 0 res := resTmp.(*string)
7821 0 fc.Result = res
7822 0 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
7823 }
7824
7825 0 func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
7826 0 fc = &graphql.FieldContext{
7827 0 Object: "__Type",
7828 0 Field: field,
7829 0 IsMethod: true,
7830 0 IsResolver: false,
7831 0 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
7832 0 return nil, errors.New("field of type String does not have child fields")
7833 0 },
7834 }
7835 0 return fc, nil
7836 }
7837
7838 // endregion **************************** field.gotpl *****************************
7839
7840 // region **************************** input.gotpl *****************************
7841
7842 0 func (ec *executionContext) unmarshalInputUserWebhookInput(ctx context.Context, obj interface{}) (model.UserWebhookInput, error) {
7843 0 var it model.UserWebhookInput
7844 0 asMap := map[string]interface{}{}
7845 0 for k, v := range obj.(map[string]interface{}) {
7846 0 asMap[k] = v
7847 0 }
7848
7849 0 fieldsInOrder := [...]string{"url", "events", "query"}
7850 0 for _, k := range fieldsInOrder {
7851 0 v, ok := asMap[k]
7852 0 if !ok {
7853 0 continue
7854 }
7855 0 switch k {
7856 0 case "url":
7857 0 var err error
7858 0
7859 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url"))
7860 0 data, err := ec.unmarshalNString2string(ctx, v)
7861 0 if err != nil {
7862 0 return it, err
7863 0 }
7864 0 it.URL = data
7865 0 case "events":
7866 0 var err error
7867 0
7868 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("events"))
7869 0 data, err := ec.unmarshalNWebhookEvent2ᚕsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEventᚄ(ctx, v)
7870 0 if err != nil {
7871 0 return it, err
7872 0 }
7873 0 it.Events = data
7874 0 case "query":
7875 0 var err error
7876 0
7877 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
7878 0 data, err := ec.unmarshalNString2string(ctx, v)
7879 0 if err != nil {
7880 0 return it, err
7881 0 }
7882 0 it.Query = data
7883 }
7884 }
7885
7886 0 return it, nil
7887 }
7888
7889 // endregion **************************** input.gotpl *****************************
7890
7891 // region ************************** interface.gotpl ***************************
7892
7893 0 func (ec *executionContext) _WebhookPayload(ctx context.Context, sel ast.SelectionSet, obj model.WebhookPayload) graphql.Marshaler {
7894 0 switch obj := (obj).(type) {
7895 0 case nil:
7896 0 return graphql.Null
7897 0 case model.ProposalEvent:
7898 0 return ec._ProposalEvent(ctx, sel, &obj)
7899 0 case *model.ProposalEvent:
7900 0 if obj == nil {
7901 0 return graphql.Null
7902 0 }
7903 0 return ec._ProposalEvent(ctx, sel, obj)
7904 0 default:
7905 0 panic(fmt.Errorf("unexpected type %T", obj))
7906 }
7907 }
7908
7909 0 func (ec *executionContext) _WebhookSubscription(ctx context.Context, sel ast.SelectionSet, obj model.WebhookSubscription) graphql.Marshaler {
7910 0 switch obj := (obj).(type) {
7911 0 case nil:
7912 0 return graphql.Null
7913 0 case model.UserWebhookSubscription:
7914 0 return ec._UserWebhookSubscription(ctx, sel, &obj)
7915 0 case *model.UserWebhookSubscription:
7916 0 if obj == nil {
7917 0 return graphql.Null
7918 0 }
7919 0 return ec._UserWebhookSubscription(ctx, sel, obj)
7920 0 default:
7921 0 panic(fmt.Errorf("unexpected type %T", obj))
7922 }
7923 }
7924
7925 // endregion ************************** interface.gotpl ***************************
7926
7927 // region **************************** object.gotpl ****************************
7928
7929 var documentImplementors = []string{"Document"}
7930
7931 0 func (ec *executionContext) _Document(ctx context.Context, sel ast.SelectionSet, obj *model.Document) graphql.Marshaler {
7932 0 fields := graphql.CollectFields(ec.OperationContext, sel, documentImplementors)
7933 0
7934 0 out := graphql.NewFieldSet(fields)
7935 0 deferred := make(map[string]*graphql.FieldSet)
7936 0 for i, field := range fields {
7937 0 switch field.Name {
7938 0 case "__typename":
7939 0 out.Values[i] = graphql.MarshalString("Document")
7940 0 case "space":
7941 0 out.Values[i] = ec._Document_space(ctx, field, obj)
7942 0 if out.Values[i] == graphql.Null {
7943 0 out.Invalids++
7944 0 }
7945 0 case "id":
7946 0 out.Values[i] = ec._Document_id(ctx, field, obj)
7947 0 if out.Values[i] == graphql.Null {
7948 0 out.Invalids++
7949 0 }
7950 0 case "docId":
7951 0 out.Values[i] = ec._Document_docId(ctx, field, obj)
7952 0 case "path":
7953 0 out.Values[i] = ec._Document_path(ctx, field, obj)
7954 0 if out.Values[i] == graphql.Null {
7955 0 out.Invalids++
7956 0 }
7957 0 case "rev":
7958 0 out.Values[i] = ec._Document_rev(ctx, field, obj)
7959 0 if out.Values[i] == graphql.Null {
7960 0 out.Invalids++
7961 0 }
7962 0 case "blob":
7963 0 out.Values[i] = ec._Document_blob(ctx, field, obj)
7964 0 if out.Values[i] == graphql.Null {
7965 0 out.Invalids++
7966 0 }
7967 0 case "pinned":
7968 0 out.Values[i] = ec._Document_pinned(ctx, field, obj)
7969 0 if out.Values[i] == graphql.Null {
7970 0 out.Invalids++
7971 0 }
7972 0 case "title":
7973 0 out.Values[i] = ec._Document_title(ctx, field, obj)
7974 0 if out.Values[i] == graphql.Null {
7975 0 out.Invalids++
7976 0 }
7977 0 case "status":
7978 0 out.Values[i] = ec._Document_status(ctx, field, obj)
7979 0 if out.Values[i] == graphql.Null {
7980 0 out.Invalids++
7981 0 }
7982 0 case "section":
7983 0 out.Values[i] = ec._Document_section(ctx, field, obj)
7984 0 if out.Values[i] == graphql.Null {
7985 0 out.Invalids++
7986 0 }
7987 0 case "summary":
7988 0 out.Values[i] = ec._Document_summary(ctx, field, obj)
7989 0 if out.Values[i] == graphql.Null {
7990 0 out.Invalids++
7991 0 }
7992 0 case "type":
7993 0 out.Values[i] = ec._Document_type(ctx, field, obj)
7994 0 if out.Values[i] == graphql.Null {
7995 0 out.Invalids++
7996 0 }
7997 0 case "supersedes":
7998 0 out.Values[i] = ec._Document_supersedes(ctx, field, obj)
7999 0 if out.Values[i] == graphql.Null {
8000 0 out.Invalids++
8001 0 }
8002 0 case "tags":
8003 0 out.Values[i] = ec._Document_tags(ctx, field, obj)
8004 0 if out.Values[i] == graphql.Null {
8005 0 out.Invalids++
8006 0 }
8007 0 case "owners":
8008 0 out.Values[i] = ec._Document_owners(ctx, field, obj)
8009 0 if out.Values[i] == graphql.Null {
8010 0 out.Invalids++
8011 0 }
8012 0 case "markdown":
8013 0 out.Values[i] = ec._Document_markdown(ctx, field, obj)
8014 0 if out.Values[i] == graphql.Null {
8015 0 out.Invalids++
8016 0 }
8017 0 default:
8018 0 panic("unknown field " + strconv.Quote(field.Name))
8019 }
8020 }
8021 0 out.Dispatch(ctx)
8022 0 if out.Invalids > 0 {
8023 0 return graphql.Null
8024 0 }
8025
8026 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8027 0
8028 0 for label, dfs := range deferred {
8029 0 ec.processDeferredGroup(graphql.DeferredGroup{
8030 0 Label: label,
8031 0 Path: graphql.GetPath(ctx),
8032 0 FieldSet: dfs,
8033 0 Context: ctx,
8034 0 })
8035 0 }
8036
8037 0 return out
8038 }
8039
8040 var mutationImplementors = []string{"Mutation"}
8041
8042 0 func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
8043 0 fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
8044 0 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
8045 0 Object: "Mutation",
8046 0 })
8047 0
8048 0 out := graphql.NewFieldSet(fields)
8049 0 deferred := make(map[string]*graphql.FieldSet)
8050 0 for i, field := range fields {
8051 0 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
8052 0 Object: field.Name,
8053 0 Field: field,
8054 0 })
8055 0
8056 0 switch field.Name {
8057 0 case "__typename":
8058 0 out.Values[i] = graphql.MarshalString("Mutation")
8059 0 case "createUserWebhook":
8060 0 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
8061 0 return ec._Mutation_createUserWebhook(ctx, field)
8062 0 })
8063 0 if out.Values[i] == graphql.Null {
8064 0 out.Invalids++
8065 0 }
8066 0 case "deleteUserWebhook":
8067 0 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
8068 0 return ec._Mutation_deleteUserWebhook(ctx, field)
8069 0 })
8070 0 if out.Values[i] == graphql.Null {
8071 0 out.Invalids++
8072 0 }
8073 0 default:
8074 0 panic("unknown field " + strconv.Quote(field.Name))
8075 }
8076 }
8077 0 out.Dispatch(ctx)
8078 0 if out.Invalids > 0 {
8079 0 return graphql.Null
8080 0 }
8081
8082 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8083 0
8084 0 for label, dfs := range deferred {
8085 0 ec.processDeferredGroup(graphql.DeferredGroup{
8086 0 Label: label,
8087 0 Path: graphql.GetPath(ctx),
8088 0 FieldSet: dfs,
8089 0 Context: ctx,
8090 0 })
8091 0 }
8092
8093 0 return out
8094 }
8095
8096 var projectImplementors = []string{"Project"}
8097
8098 0 func (ec *executionContext) _Project(ctx context.Context, sel ast.SelectionSet, obj *model.Project) graphql.Marshaler {
8099 0 fields := graphql.CollectFields(ec.OperationContext, sel, projectImplementors)
8100 0
8101 0 out := graphql.NewFieldSet(fields)
8102 0 deferred := make(map[string]*graphql.FieldSet)
8103 0 for i, field := range fields {
8104 0 switch field.Name {
8105 0 case "__typename":
8106 0 out.Values[i] = graphql.MarshalString("Project")
8107 0 case "owner":
8108 0 out.Values[i] = ec._Project_owner(ctx, field, obj)
8109 0 if out.Values[i] == graphql.Null {
8110 0 atomic.AddUint32(&out.Invalids, 1)
8111 0 }
8112 0 case "name":
8113 0 out.Values[i] = ec._Project_name(ctx, field, obj)
8114 0 if out.Values[i] == graphql.Null {
8115 0 atomic.AddUint32(&out.Invalids, 1)
8116 0 }
8117 0 case "ref":
8118 0 out.Values[i] = ec._Project_ref(ctx, field, obj)
8119 0 if out.Values[i] == graphql.Null {
8120 0 atomic.AddUint32(&out.Invalids, 1)
8121 0 }
8122 0 case "meta":
8123 0 out.Values[i] = ec._Project_meta(ctx, field, obj)
8124 0 if out.Values[i] == graphql.Null {
8125 0 atomic.AddUint32(&out.Invalids, 1)
8126 0 }
8127 0 case "spaces":
8128 0 field := field
8129 0
8130 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8131 0 defer func() {
8132 0 if r := recover(); r != nil {
8133 0 ec.Error(ctx, ec.Recover(ctx, r))
8134 0 }
8135 }()
8136 0 res = ec._Project_spaces(ctx, field, obj)
8137 0 if res == graphql.Null {
8138 0 atomic.AddUint32(&fs.Invalids, 1)
8139 0 }
8140 0 return res
8141 }
8142
8143 0 if field.Deferrable != nil {
8144 0 dfs, ok := deferred[field.Deferrable.Label]
8145 0 di := 0
8146 0 if ok {
8147 0 dfs.AddField(field)
8148 0 di = len(dfs.Values) - 1
8149 0 } else {
8150 0 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
8151 0 deferred[field.Deferrable.Label] = dfs
8152 0 }
8153 0 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
8154 0 return innerFunc(ctx, dfs)
8155 0 })
8156
8157 // don't run the out.Concurrently() call below
8158 0 out.Values[i] = graphql.Null
8159 0 continue
8160 }
8161
8162 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8163 0 default:
8164 0 panic("unknown field " + strconv.Quote(field.Name))
8165 }
8166 }
8167 0 out.Dispatch(ctx)
8168 0 if out.Invalids > 0 {
8169 0 return graphql.Null
8170 0 }
8171
8172 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8173 0
8174 0 for label, dfs := range deferred {
8175 0 ec.processDeferredGroup(graphql.DeferredGroup{
8176 0 Label: label,
8177 0 Path: graphql.GetPath(ctx),
8178 0 FieldSet: dfs,
8179 0 Context: ctx,
8180 0 })
8181 0 }
8182
8183 0 return out
8184 }
8185
8186 var proposalImplementors = []string{"Proposal"}
8187
8188 0 func (ec *executionContext) _Proposal(ctx context.Context, sel ast.SelectionSet, obj *model.Proposal) graphql.Marshaler {
8189 0 fields := graphql.CollectFields(ec.OperationContext, sel, proposalImplementors)
8190 0
8191 0 out := graphql.NewFieldSet(fields)
8192 0 deferred := make(map[string]*graphql.FieldSet)
8193 0 for i, field := range fields {
8194 0 switch field.Name {
8195 0 case "__typename":
8196 0 out.Values[i] = graphql.MarshalString("Proposal")
8197 0 case "id":
8198 0 out.Values[i] = ec._Proposal_id(ctx, field, obj)
8199 0 if out.Values[i] == graphql.Null {
8200 0 out.Invalids++
8201 0 }
8202 0 case "space":
8203 0 out.Values[i] = ec._Proposal_space(ctx, field, obj)
8204 0 if out.Values[i] == graphql.Null {
8205 0 out.Invalids++
8206 0 }
8207 0 case "title":
8208 0 out.Values[i] = ec._Proposal_title(ctx, field, obj)
8209 0 if out.Values[i] == graphql.Null {
8210 0 out.Invalids++
8211 0 }
8212 0 case "rationale":
8213 0 out.Values[i] = ec._Proposal_rationale(ctx, field, obj)
8214 0 if out.Values[i] == graphql.Null {
8215 0 out.Invalids++
8216 0 }
8217 0 case "baseRev":
8218 0 out.Values[i] = ec._Proposal_baseRev(ctx, field, obj)
8219 0 if out.Values[i] == graphql.Null {
8220 0 out.Invalids++
8221 0 }
8222 0 case "branch":
8223 0 out.Values[i] = ec._Proposal_branch(ctx, field, obj)
8224 0 if out.Values[i] == graphql.Null {
8225 0 out.Invalids++
8226 0 }
8227 0 case "state":
8228 0 out.Values[i] = ec._Proposal_state(ctx, field, obj)
8229 0 if out.Values[i] == graphql.Null {
8230 0 out.Invalids++
8231 0 }
8232 0 case "approval":
8233 0 out.Values[i] = ec._Proposal_approval(ctx, field, obj)
8234 0 case "mergedRev":
8235 0 out.Values[i] = ec._Proposal_mergedRev(ctx, field, obj)
8236 0 case "agent":
8237 0 out.Values[i] = ec._Proposal_agent(ctx, field, obj)
8238 0 if out.Values[i] == graphql.Null {
8239 0 out.Invalids++
8240 0 }
8241 0 case "agentSession":
8242 0 out.Values[i] = ec._Proposal_agentSession(ctx, field, obj)
8243 0 if out.Values[i] == graphql.Null {
8244 0 out.Invalids++
8245 0 }
8246 0 case "created":
8247 0 out.Values[i] = ec._Proposal_created(ctx, field, obj)
8248 0 if out.Values[i] == graphql.Null {
8249 0 out.Invalids++
8250 0 }
8251 0 case "resolved":
8252 0 out.Values[i] = ec._Proposal_resolved(ctx, field, obj)
8253 0 default:
8254 0 panic("unknown field " + strconv.Quote(field.Name))
8255 }
8256 }
8257 0 out.Dispatch(ctx)
8258 0 if out.Invalids > 0 {
8259 0 return graphql.Null
8260 0 }
8261
8262 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8263 0
8264 0 for label, dfs := range deferred {
8265 0 ec.processDeferredGroup(graphql.DeferredGroup{
8266 0 Label: label,
8267 0 Path: graphql.GetPath(ctx),
8268 0 FieldSet: dfs,
8269 0 Context: ctx,
8270 0 })
8271 0 }
8272
8273 0 return out
8274 }
8275
8276 var proposalEventImplementors = []string{"ProposalEvent", "WebhookPayload"}
8277
8278 0 func (ec *executionContext) _ProposalEvent(ctx context.Context, sel ast.SelectionSet, obj *model.ProposalEvent) graphql.Marshaler {
8279 0 fields := graphql.CollectFields(ec.OperationContext, sel, proposalEventImplementors)
8280 0
8281 0 out := graphql.NewFieldSet(fields)
8282 0 deferred := make(map[string]*graphql.FieldSet)
8283 0 for i, field := range fields {
8284 0 switch field.Name {
8285 0 case "__typename":
8286 0 out.Values[i] = graphql.MarshalString("ProposalEvent")
8287 0 case "uuid":
8288 0 out.Values[i] = ec._ProposalEvent_uuid(ctx, field, obj)
8289 0 if out.Values[i] == graphql.Null {
8290 0 out.Invalids++
8291 0 }
8292 0 case "event":
8293 0 out.Values[i] = ec._ProposalEvent_event(ctx, field, obj)
8294 0 if out.Values[i] == graphql.Null {
8295 0 out.Invalids++
8296 0 }
8297 0 case "date":
8298 0 out.Values[i] = ec._ProposalEvent_date(ctx, field, obj)
8299 0 if out.Values[i] == graphql.Null {
8300 0 out.Invalids++
8301 0 }
8302 0 case "proposal":
8303 0 out.Values[i] = ec._ProposalEvent_proposal(ctx, field, obj)
8304 0 if out.Values[i] == graphql.Null {
8305 0 out.Invalids++
8306 0 }
8307 0 default:
8308 0 panic("unknown field " + strconv.Quote(field.Name))
8309 }
8310 }
8311 0 out.Dispatch(ctx)
8312 0 if out.Invalids > 0 {
8313 0 return graphql.Null
8314 0 }
8315
8316 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8317 0
8318 0 for label, dfs := range deferred {
8319 0 ec.processDeferredGroup(graphql.DeferredGroup{
8320 0 Label: label,
8321 0 Path: graphql.GetPath(ctx),
8322 0 FieldSet: dfs,
8323 0 Context: ctx,
8324 0 })
8325 0 }
8326
8327 0 return out
8328 }
8329
8330 var queryImplementors = []string{"Query"}
8331
8332 0 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
8333 0 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
8334 0 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
8335 0 Object: "Query",
8336 0 })
8337 0
8338 0 out := graphql.NewFieldSet(fields)
8339 0 deferred := make(map[string]*graphql.FieldSet)
8340 0 for i, field := range fields {
8341 0 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
8342 0 Object: field.Name,
8343 0 Field: field,
8344 0 })
8345 0
8346 0 switch field.Name {
8347 0 case "__typename":
8348 0 out.Values[i] = graphql.MarshalString("Query")
8349 0 case "spaces":
8350 0 field := field
8351 0
8352 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8353 0 defer func() {
8354 0 if r := recover(); r != nil {
8355 0 ec.Error(ctx, ec.Recover(ctx, r))
8356 0 }
8357 }()
8358 0 res = ec._Query_spaces(ctx, field)
8359 0 if res == graphql.Null {
8360 0 atomic.AddUint32(&fs.Invalids, 1)
8361 0 }
8362 0 return res
8363 }
8364
8365 0 rrm := func(ctx context.Context) graphql.Marshaler {
8366 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8367 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8368 }
8369
8370 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8371 0 case "space":
8372 0 field := field
8373 0
8374 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8375 0 defer func() {
8376 0 if r := recover(); r != nil {
8377 0 ec.Error(ctx, ec.Recover(ctx, r))
8378 0 }
8379 }()
8380 0 res = ec._Query_space(ctx, field)
8381 0 return res
8382 }
8383
8384 0 rrm := func(ctx context.Context) graphql.Marshaler {
8385 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8386 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8387 }
8388
8389 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8390 0 case "document":
8391 0 field := field
8392 0
8393 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8394 0 defer func() {
8395 0 if r := recover(); r != nil {
8396 0 ec.Error(ctx, ec.Recover(ctx, r))
8397 0 }
8398 }()
8399 0 res = ec._Query_document(ctx, field)
8400 0 return res
8401 }
8402
8403 0 rrm := func(ctx context.Context) graphql.Marshaler {
8404 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8405 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8406 }
8407
8408 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8409 0 case "documents":
8410 0 field := field
8411 0
8412 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8413 0 defer func() {
8414 0 if r := recover(); r != nil {
8415 0 ec.Error(ctx, ec.Recover(ctx, r))
8416 0 }
8417 }()
8418 0 res = ec._Query_documents(ctx, field)
8419 0 if res == graphql.Null {
8420 0 atomic.AddUint32(&fs.Invalids, 1)
8421 0 }
8422 0 return res
8423 }
8424
8425 0 rrm := func(ctx context.Context) graphql.Marshaler {
8426 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8427 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8428 }
8429
8430 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8431 0 case "search":
8432 0 field := field
8433 0
8434 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8435 0 defer func() {
8436 0 if r := recover(); r != nil {
8437 0 ec.Error(ctx, ec.Recover(ctx, r))
8438 0 }
8439 }()
8440 0 res = ec._Query_search(ctx, field)
8441 0 if res == graphql.Null {
8442 0 atomic.AddUint32(&fs.Invalids, 1)
8443 0 }
8444 0 return res
8445 }
8446
8447 0 rrm := func(ctx context.Context) graphql.Marshaler {
8448 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8449 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8450 }
8451
8452 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8453 0 case "projects":
8454 0 field := field
8455 0
8456 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8457 0 defer func() {
8458 0 if r := recover(); r != nil {
8459 0 ec.Error(ctx, ec.Recover(ctx, r))
8460 0 }
8461 }()
8462 0 res = ec._Query_projects(ctx, field)
8463 0 if res == graphql.Null {
8464 0 atomic.AddUint32(&fs.Invalids, 1)
8465 0 }
8466 0 return res
8467 }
8468
8469 0 rrm := func(ctx context.Context) graphql.Marshaler {
8470 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8471 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8472 }
8473
8474 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8475 0 case "project":
8476 0 field := field
8477 0
8478 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8479 0 defer func() {
8480 0 if r := recover(); r != nil {
8481 0 ec.Error(ctx, ec.Recover(ctx, r))
8482 0 }
8483 }()
8484 0 res = ec._Query_project(ctx, field)
8485 0 return res
8486 }
8487
8488 0 rrm := func(ctx context.Context) graphql.Marshaler {
8489 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8490 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8491 }
8492
8493 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8494 0 case "proposals":
8495 0 field := field
8496 0
8497 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8498 0 defer func() {
8499 0 if r := recover(); r != nil {
8500 0 ec.Error(ctx, ec.Recover(ctx, r))
8501 0 }
8502 }()
8503 0 res = ec._Query_proposals(ctx, field)
8504 0 if res == graphql.Null {
8505 0 atomic.AddUint32(&fs.Invalids, 1)
8506 0 }
8507 0 return res
8508 }
8509
8510 0 rrm := func(ctx context.Context) graphql.Marshaler {
8511 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8512 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8513 }
8514
8515 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8516 0 case "userWebhooks":
8517 0 field := field
8518 0
8519 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8520 0 defer func() {
8521 0 if r := recover(); r != nil {
8522 0 ec.Error(ctx, ec.Recover(ctx, r))
8523 0 }
8524 }()
8525 0 res = ec._Query_userWebhooks(ctx, field)
8526 0 if res == graphql.Null {
8527 0 atomic.AddUint32(&fs.Invalids, 1)
8528 0 }
8529 0 return res
8530 }
8531
8532 0 rrm := func(ctx context.Context) graphql.Marshaler {
8533 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8534 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8535 }
8536
8537 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8538 0 case "userWebhook":
8539 0 field := field
8540 0
8541 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8542 0 defer func() {
8543 0 if r := recover(); r != nil {
8544 0 ec.Error(ctx, ec.Recover(ctx, r))
8545 0 }
8546 }()
8547 0 res = ec._Query_userWebhook(ctx, field)
8548 0 return res
8549 }
8550
8551 0 rrm := func(ctx context.Context) graphql.Marshaler {
8552 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8553 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8554 }
8555
8556 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8557 0 case "webhook":
8558 0 field := field
8559 0
8560 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8561 0 defer func() {
8562 0 if r := recover(); r != nil {
8563 0 ec.Error(ctx, ec.Recover(ctx, r))
8564 0 }
8565 }()
8566 0 res = ec._Query_webhook(ctx, field)
8567 0 if res == graphql.Null {
8568 0 atomic.AddUint32(&fs.Invalids, 1)
8569 0 }
8570 0 return res
8571 }
8572
8573 0 rrm := func(ctx context.Context) graphql.Marshaler {
8574 0 return ec.OperationContext.RootResolverMiddleware(ctx,
8575 0 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8576 }
8577
8578 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
8579 0 case "__type":
8580 0 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
8581 0 return ec._Query___type(ctx, field)
8582 0 })
8583 0 case "__schema":
8584 0 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
8585 0 return ec._Query___schema(ctx, field)
8586 0 })
8587 0 default:
8588 0 panic("unknown field " + strconv.Quote(field.Name))
8589 }
8590 }
8591 0 out.Dispatch(ctx)
8592 0 if out.Invalids > 0 {
8593 0 return graphql.Null
8594 0 }
8595
8596 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8597 0
8598 0 for label, dfs := range deferred {
8599 0 ec.processDeferredGroup(graphql.DeferredGroup{
8600 0 Label: label,
8601 0 Path: graphql.GetPath(ctx),
8602 0 FieldSet: dfs,
8603 0 Context: ctx,
8604 0 })
8605 0 }
8606
8607 0 return out
8608 }
8609
8610 var searchHitImplementors = []string{"SearchHit"}
8611
8612 0 func (ec *executionContext) _SearchHit(ctx context.Context, sel ast.SelectionSet, obj *model.SearchHit) graphql.Marshaler {
8613 0 fields := graphql.CollectFields(ec.OperationContext, sel, searchHitImplementors)
8614 0
8615 0 out := graphql.NewFieldSet(fields)
8616 0 deferred := make(map[string]*graphql.FieldSet)
8617 0 for i, field := range fields {
8618 0 switch field.Name {
8619 0 case "__typename":
8620 0 out.Values[i] = graphql.MarshalString("SearchHit")
8621 0 case "space":
8622 0 out.Values[i] = ec._SearchHit_space(ctx, field, obj)
8623 0 if out.Values[i] == graphql.Null {
8624 0 out.Invalids++
8625 0 }
8626 0 case "id":
8627 0 out.Values[i] = ec._SearchHit_id(ctx, field, obj)
8628 0 if out.Values[i] == graphql.Null {
8629 0 out.Invalids++
8630 0 }
8631 0 case "rev":
8632 0 out.Values[i] = ec._SearchHit_rev(ctx, field, obj)
8633 0 if out.Values[i] == graphql.Null {
8634 0 out.Invalids++
8635 0 }
8636 0 case "path":
8637 0 out.Values[i] = ec._SearchHit_path(ctx, field, obj)
8638 0 if out.Values[i] == graphql.Null {
8639 0 out.Invalids++
8640 0 }
8641 0 case "anchor":
8642 0 out.Values[i] = ec._SearchHit_anchor(ctx, field, obj)
8643 0 if out.Values[i] == graphql.Null {
8644 0 out.Invalids++
8645 0 }
8646 0 case "title":
8647 0 out.Values[i] = ec._SearchHit_title(ctx, field, obj)
8648 0 if out.Values[i] == graphql.Null {
8649 0 out.Invalids++
8650 0 }
8651 0 case "section":
8652 0 out.Values[i] = ec._SearchHit_section(ctx, field, obj)
8653 0 if out.Values[i] == graphql.Null {
8654 0 out.Invalids++
8655 0 }
8656 0 case "lang":
8657 0 out.Values[i] = ec._SearchHit_lang(ctx, field, obj)
8658 0 if out.Values[i] == graphql.Null {
8659 0 out.Invalids++
8660 0 }
8661 0 case "score":
8662 0 out.Values[i] = ec._SearchHit_score(ctx, field, obj)
8663 0 if out.Values[i] == graphql.Null {
8664 0 out.Invalids++
8665 0 }
8666 0 case "snippet":
8667 0 out.Values[i] = ec._SearchHit_snippet(ctx, field, obj)
8668 0 if out.Values[i] == graphql.Null {
8669 0 out.Invalids++
8670 0 }
8671 0 default:
8672 0 panic("unknown field " + strconv.Quote(field.Name))
8673 }
8674 }
8675 0 out.Dispatch(ctx)
8676 0 if out.Invalids > 0 {
8677 0 return graphql.Null
8678 0 }
8679
8680 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8681 0
8682 0 for label, dfs := range deferred {
8683 0 ec.processDeferredGroup(graphql.DeferredGroup{
8684 0 Label: label,
8685 0 Path: graphql.GetPath(ctx),
8686 0 FieldSet: dfs,
8687 0 Context: ctx,
8688 0 })
8689 0 }
8690
8691 0 return out
8692 }
8693
8694 var searchResultsImplementors = []string{"SearchResults"}
8695
8696 0 func (ec *executionContext) _SearchResults(ctx context.Context, sel ast.SelectionSet, obj *model.SearchResults) graphql.Marshaler {
8697 0 fields := graphql.CollectFields(ec.OperationContext, sel, searchResultsImplementors)
8698 0
8699 0 out := graphql.NewFieldSet(fields)
8700 0 deferred := make(map[string]*graphql.FieldSet)
8701 0 for i, field := range fields {
8702 0 switch field.Name {
8703 0 case "__typename":
8704 0 out.Values[i] = graphql.MarshalString("SearchResults")
8705 0 case "total":
8706 0 out.Values[i] = ec._SearchResults_total(ctx, field, obj)
8707 0 if out.Values[i] == graphql.Null {
8708 0 out.Invalids++
8709 0 }
8710 0 case "took":
8711 0 out.Values[i] = ec._SearchResults_took(ctx, field, obj)
8712 0 if out.Values[i] == graphql.Null {
8713 0 out.Invalids++
8714 0 }
8715 0 case "hits":
8716 0 out.Values[i] = ec._SearchResults_hits(ctx, field, obj)
8717 0 if out.Values[i] == graphql.Null {
8718 0 out.Invalids++
8719 0 }
8720 0 default:
8721 0 panic("unknown field " + strconv.Quote(field.Name))
8722 }
8723 }
8724 0 out.Dispatch(ctx)
8725 0 if out.Invalids > 0 {
8726 0 return graphql.Null
8727 0 }
8728
8729 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8730 0
8731 0 for label, dfs := range deferred {
8732 0 ec.processDeferredGroup(graphql.DeferredGroup{
8733 0 Label: label,
8734 0 Path: graphql.GetPath(ctx),
8735 0 FieldSet: dfs,
8736 0 Context: ctx,
8737 0 })
8738 0 }
8739
8740 0 return out
8741 }
8742
8743 var spaceImplementors = []string{"Space"}
8744
8745 0 func (ec *executionContext) _Space(ctx context.Context, sel ast.SelectionSet, obj *model.Space) graphql.Marshaler {
8746 0 fields := graphql.CollectFields(ec.OperationContext, sel, spaceImplementors)
8747 0
8748 0 out := graphql.NewFieldSet(fields)
8749 0 deferred := make(map[string]*graphql.FieldSet)
8750 0 for i, field := range fields {
8751 0 switch field.Name {
8752 0 case "__typename":
8753 0 out.Values[i] = graphql.MarshalString("Space")
8754 0 case "owner":
8755 0 out.Values[i] = ec._Space_owner(ctx, field, obj)
8756 0 if out.Values[i] == graphql.Null {
8757 0 atomic.AddUint32(&out.Invalids, 1)
8758 0 }
8759 0 case "name":
8760 0 out.Values[i] = ec._Space_name(ctx, field, obj)
8761 0 if out.Values[i] == graphql.Null {
8762 0 atomic.AddUint32(&out.Invalids, 1)
8763 0 }
8764 0 case "ref":
8765 0 out.Values[i] = ec._Space_ref(ctx, field, obj)
8766 0 if out.Values[i] == graphql.Null {
8767 0 atomic.AddUint32(&out.Invalids, 1)
8768 0 }
8769 0 case "created":
8770 0 out.Values[i] = ec._Space_created(ctx, field, obj)
8771 0 if out.Values[i] == graphql.Null {
8772 0 atomic.AddUint32(&out.Invalids, 1)
8773 0 }
8774 0 case "approvedRev":
8775 0 field := field
8776 0
8777 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8778 0 defer func() {
8779 0 if r := recover(); r != nil {
8780 0 ec.Error(ctx, ec.Recover(ctx, r))
8781 0 }
8782 }()
8783 0 res = ec._Space_approvedRev(ctx, field, obj)
8784 0 if res == graphql.Null {
8785 0 atomic.AddUint32(&fs.Invalids, 1)
8786 0 }
8787 0 return res
8788 }
8789
8790 0 if field.Deferrable != nil {
8791 0 dfs, ok := deferred[field.Deferrable.Label]
8792 0 di := 0
8793 0 if ok {
8794 0 dfs.AddField(field)
8795 0 di = len(dfs.Values) - 1
8796 0 } else {
8797 0 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
8798 0 deferred[field.Deferrable.Label] = dfs
8799 0 }
8800 0 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
8801 0 return innerFunc(ctx, dfs)
8802 0 })
8803
8804 // don't run the out.Concurrently() call below
8805 0 out.Values[i] = graphql.Null
8806 0 continue
8807 }
8808
8809 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8810 0 default:
8811 0 panic("unknown field " + strconv.Quote(field.Name))
8812 }
8813 }
8814 0 out.Dispatch(ctx)
8815 0 if out.Invalids > 0 {
8816 0 return graphql.Null
8817 0 }
8818
8819 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8820 0
8821 0 for label, dfs := range deferred {
8822 0 ec.processDeferredGroup(graphql.DeferredGroup{
8823 0 Label: label,
8824 0 Path: graphql.GetPath(ctx),
8825 0 FieldSet: dfs,
8826 0 Context: ctx,
8827 0 })
8828 0 }
8829
8830 0 return out
8831 }
8832
8833 var userWebhookSubscriptionImplementors = []string{"UserWebhookSubscription", "WebhookSubscription"}
8834
8835 0 func (ec *executionContext) _UserWebhookSubscription(ctx context.Context, sel ast.SelectionSet, obj *model.UserWebhookSubscription) graphql.Marshaler {
8836 0 fields := graphql.CollectFields(ec.OperationContext, sel, userWebhookSubscriptionImplementors)
8837 0
8838 0 out := graphql.NewFieldSet(fields)
8839 0 deferred := make(map[string]*graphql.FieldSet)
8840 0 for i, field := range fields {
8841 0 switch field.Name {
8842 0 case "__typename":
8843 0 out.Values[i] = graphql.MarshalString("UserWebhookSubscription")
8844 0 case "id":
8845 0 out.Values[i] = ec._UserWebhookSubscription_id(ctx, field, obj)
8846 0 if out.Values[i] == graphql.Null {
8847 0 atomic.AddUint32(&out.Invalids, 1)
8848 0 }
8849 0 case "events":
8850 0 out.Values[i] = ec._UserWebhookSubscription_events(ctx, field, obj)
8851 0 if out.Values[i] == graphql.Null {
8852 0 atomic.AddUint32(&out.Invalids, 1)
8853 0 }
8854 0 case "query":
8855 0 out.Values[i] = ec._UserWebhookSubscription_query(ctx, field, obj)
8856 0 if out.Values[i] == graphql.Null {
8857 0 atomic.AddUint32(&out.Invalids, 1)
8858 0 }
8859 0 case "url":
8860 0 out.Values[i] = ec._UserWebhookSubscription_url(ctx, field, obj)
8861 0 if out.Values[i] == graphql.Null {
8862 0 atomic.AddUint32(&out.Invalids, 1)
8863 0 }
8864 0 case "deliveries":
8865 0 field := field
8866 0
8867 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8868 0 defer func() {
8869 0 if r := recover(); r != nil {
8870 0 ec.Error(ctx, ec.Recover(ctx, r))
8871 0 }
8872 }()
8873 0 res = ec._UserWebhookSubscription_deliveries(ctx, field, obj)
8874 0 if res == graphql.Null {
8875 0 atomic.AddUint32(&fs.Invalids, 1)
8876 0 }
8877 0 return res
8878 }
8879
8880 0 if field.Deferrable != nil {
8881 0 dfs, ok := deferred[field.Deferrable.Label]
8882 0 di := 0
8883 0 if ok {
8884 0 dfs.AddField(field)
8885 0 di = len(dfs.Values) - 1
8886 0 } else {
8887 0 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
8888 0 deferred[field.Deferrable.Label] = dfs
8889 0 }
8890 0 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
8891 0 return innerFunc(ctx, dfs)
8892 0 })
8893
8894 // don't run the out.Concurrently() call below
8895 0 out.Values[i] = graphql.Null
8896 0 continue
8897 }
8898
8899 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8900 0 case "sample":
8901 0 field := field
8902 0
8903 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8904 0 defer func() {
8905 0 if r := recover(); r != nil {
8906 0 ec.Error(ctx, ec.Recover(ctx, r))
8907 0 }
8908 }()
8909 0 res = ec._UserWebhookSubscription_sample(ctx, field, obj)
8910 0 if res == graphql.Null {
8911 0 atomic.AddUint32(&fs.Invalids, 1)
8912 0 }
8913 0 return res
8914 }
8915
8916 0 if field.Deferrable != nil {
8917 0 dfs, ok := deferred[field.Deferrable.Label]
8918 0 di := 0
8919 0 if ok {
8920 0 dfs.AddField(field)
8921 0 di = len(dfs.Values) - 1
8922 0 } else {
8923 0 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
8924 0 deferred[field.Deferrable.Label] = dfs
8925 0 }
8926 0 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
8927 0 return innerFunc(ctx, dfs)
8928 0 })
8929
8930 // don't run the out.Concurrently() call below
8931 0 out.Values[i] = graphql.Null
8932 0 continue
8933 }
8934
8935 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
8936 0 default:
8937 0 panic("unknown field " + strconv.Quote(field.Name))
8938 }
8939 }
8940 0 out.Dispatch(ctx)
8941 0 if out.Invalids > 0 {
8942 0 return graphql.Null
8943 0 }
8944
8945 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
8946 0
8947 0 for label, dfs := range deferred {
8948 0 ec.processDeferredGroup(graphql.DeferredGroup{
8949 0 Label: label,
8950 0 Path: graphql.GetPath(ctx),
8951 0 FieldSet: dfs,
8952 0 Context: ctx,
8953 0 })
8954 0 }
8955
8956 0 return out
8957 }
8958
8959 var webhookDeliveryImplementors = []string{"WebhookDelivery"}
8960
8961 0 func (ec *executionContext) _WebhookDelivery(ctx context.Context, sel ast.SelectionSet, obj *model.WebhookDelivery) graphql.Marshaler {
8962 0 fields := graphql.CollectFields(ec.OperationContext, sel, webhookDeliveryImplementors)
8963 0
8964 0 out := graphql.NewFieldSet(fields)
8965 0 deferred := make(map[string]*graphql.FieldSet)
8966 0 for i, field := range fields {
8967 0 switch field.Name {
8968 0 case "__typename":
8969 0 out.Values[i] = graphql.MarshalString("WebhookDelivery")
8970 0 case "uuid":
8971 0 out.Values[i] = ec._WebhookDelivery_uuid(ctx, field, obj)
8972 0 if out.Values[i] == graphql.Null {
8973 0 atomic.AddUint32(&out.Invalids, 1)
8974 0 }
8975 0 case "date":
8976 0 out.Values[i] = ec._WebhookDelivery_date(ctx, field, obj)
8977 0 if out.Values[i] == graphql.Null {
8978 0 atomic.AddUint32(&out.Invalids, 1)
8979 0 }
8980 0 case "event":
8981 0 out.Values[i] = ec._WebhookDelivery_event(ctx, field, obj)
8982 0 if out.Values[i] == graphql.Null {
8983 0 atomic.AddUint32(&out.Invalids, 1)
8984 0 }
8985 0 case "subscription":
8986 0 field := field
8987 0
8988 0 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
8989 0 defer func() {
8990 0 if r := recover(); r != nil {
8991 0 ec.Error(ctx, ec.Recover(ctx, r))
8992 0 }
8993 }()
8994 0 res = ec._WebhookDelivery_subscription(ctx, field, obj)
8995 0 if res == graphql.Null {
8996 0 atomic.AddUint32(&fs.Invalids, 1)
8997 0 }
8998 0 return res
8999 }
9000
9001 0 if field.Deferrable != nil {
9002 0 dfs, ok := deferred[field.Deferrable.Label]
9003 0 di := 0
9004 0 if ok {
9005 0 dfs.AddField(field)
9006 0 di = len(dfs.Values) - 1
9007 0 } else {
9008 0 dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
9009 0 deferred[field.Deferrable.Label] = dfs
9010 0 }
9011 0 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
9012 0 return innerFunc(ctx, dfs)
9013 0 })
9014
9015 // don't run the out.Concurrently() call below
9016 0 out.Values[i] = graphql.Null
9017 0 continue
9018 }
9019
9020 0 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
9021 0 case "requestBody":
9022 0 out.Values[i] = ec._WebhookDelivery_requestBody(ctx, field, obj)
9023 0 if out.Values[i] == graphql.Null {
9024 0 atomic.AddUint32(&out.Invalids, 1)
9025 0 }
9026 0 case "responseBody":
9027 0 out.Values[i] = ec._WebhookDelivery_responseBody(ctx, field, obj)
9028 0 case "responseHeaders":
9029 0 out.Values[i] = ec._WebhookDelivery_responseHeaders(ctx, field, obj)
9030 0 case "responseStatus":
9031 0 out.Values[i] = ec._WebhookDelivery_responseStatus(ctx, field, obj)
9032 0 default:
9033 0 panic("unknown field " + strconv.Quote(field.Name))
9034 }
9035 }
9036 0 out.Dispatch(ctx)
9037 0 if out.Invalids > 0 {
9038 0 return graphql.Null
9039 0 }
9040
9041 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9042 0
9043 0 for label, dfs := range deferred {
9044 0 ec.processDeferredGroup(graphql.DeferredGroup{
9045 0 Label: label,
9046 0 Path: graphql.GetPath(ctx),
9047 0 FieldSet: dfs,
9048 0 Context: ctx,
9049 0 })
9050 0 }
9051
9052 0 return out
9053 }
9054
9055 var webhookDeliveryCursorImplementors = []string{"WebhookDeliveryCursor"}
9056
9057 0 func (ec *executionContext) _WebhookDeliveryCursor(ctx context.Context, sel ast.SelectionSet, obj *model.WebhookDeliveryCursor) graphql.Marshaler {
9058 0 fields := graphql.CollectFields(ec.OperationContext, sel, webhookDeliveryCursorImplementors)
9059 0
9060 0 out := graphql.NewFieldSet(fields)
9061 0 deferred := make(map[string]*graphql.FieldSet)
9062 0 for i, field := range fields {
9063 0 switch field.Name {
9064 0 case "__typename":
9065 0 out.Values[i] = graphql.MarshalString("WebhookDeliveryCursor")
9066 0 case "results":
9067 0 out.Values[i] = ec._WebhookDeliveryCursor_results(ctx, field, obj)
9068 0 if out.Values[i] == graphql.Null {
9069 0 out.Invalids++
9070 0 }
9071 0 case "cursor":
9072 0 out.Values[i] = ec._WebhookDeliveryCursor_cursor(ctx, field, obj)
9073 0 default:
9074 0 panic("unknown field " + strconv.Quote(field.Name))
9075 }
9076 }
9077 0 out.Dispatch(ctx)
9078 0 if out.Invalids > 0 {
9079 0 return graphql.Null
9080 0 }
9081
9082 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9083 0
9084 0 for label, dfs := range deferred {
9085 0 ec.processDeferredGroup(graphql.DeferredGroup{
9086 0 Label: label,
9087 0 Path: graphql.GetPath(ctx),
9088 0 FieldSet: dfs,
9089 0 Context: ctx,
9090 0 })
9091 0 }
9092
9093 0 return out
9094 }
9095
9096 var webhookSubscriptionCursorImplementors = []string{"WebhookSubscriptionCursor"}
9097
9098 0 func (ec *executionContext) _WebhookSubscriptionCursor(ctx context.Context, sel ast.SelectionSet, obj *model.WebhookSubscriptionCursor) graphql.Marshaler {
9099 0 fields := graphql.CollectFields(ec.OperationContext, sel, webhookSubscriptionCursorImplementors)
9100 0
9101 0 out := graphql.NewFieldSet(fields)
9102 0 deferred := make(map[string]*graphql.FieldSet)
9103 0 for i, field := range fields {
9104 0 switch field.Name {
9105 0 case "__typename":
9106 0 out.Values[i] = graphql.MarshalString("WebhookSubscriptionCursor")
9107 0 case "results":
9108 0 out.Values[i] = ec._WebhookSubscriptionCursor_results(ctx, field, obj)
9109 0 if out.Values[i] == graphql.Null {
9110 0 out.Invalids++
9111 0 }
9112 0 case "cursor":
9113 0 out.Values[i] = ec._WebhookSubscriptionCursor_cursor(ctx, field, obj)
9114 0 default:
9115 0 panic("unknown field " + strconv.Quote(field.Name))
9116 }
9117 }
9118 0 out.Dispatch(ctx)
9119 0 if out.Invalids > 0 {
9120 0 return graphql.Null
9121 0 }
9122
9123 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9124 0
9125 0 for label, dfs := range deferred {
9126 0 ec.processDeferredGroup(graphql.DeferredGroup{
9127 0 Label: label,
9128 0 Path: graphql.GetPath(ctx),
9129 0 FieldSet: dfs,
9130 0 Context: ctx,
9131 0 })
9132 0 }
9133
9134 0 return out
9135 }
9136
9137 var __DirectiveImplementors = []string{"__Directive"}
9138
9139 0 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
9140 0 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
9141 0
9142 0 out := graphql.NewFieldSet(fields)
9143 0 deferred := make(map[string]*graphql.FieldSet)
9144 0 for i, field := range fields {
9145 0 switch field.Name {
9146 0 case "__typename":
9147 0 out.Values[i] = graphql.MarshalString("__Directive")
9148 0 case "name":
9149 0 out.Values[i] = ec.___Directive_name(ctx, field, obj)
9150 0 if out.Values[i] == graphql.Null {
9151 0 out.Invalids++
9152 0 }
9153 0 case "description":
9154 0 out.Values[i] = ec.___Directive_description(ctx, field, obj)
9155 0 case "locations":
9156 0 out.Values[i] = ec.___Directive_locations(ctx, field, obj)
9157 0 if out.Values[i] == graphql.Null {
9158 0 out.Invalids++
9159 0 }
9160 0 case "args":
9161 0 out.Values[i] = ec.___Directive_args(ctx, field, obj)
9162 0 if out.Values[i] == graphql.Null {
9163 0 out.Invalids++
9164 0 }
9165 0 case "isRepeatable":
9166 0 out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
9167 0 if out.Values[i] == graphql.Null {
9168 0 out.Invalids++
9169 0 }
9170 0 default:
9171 0 panic("unknown field " + strconv.Quote(field.Name))
9172 }
9173 }
9174 0 out.Dispatch(ctx)
9175 0 if out.Invalids > 0 {
9176 0 return graphql.Null
9177 0 }
9178
9179 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9180 0
9181 0 for label, dfs := range deferred {
9182 0 ec.processDeferredGroup(graphql.DeferredGroup{
9183 0 Label: label,
9184 0 Path: graphql.GetPath(ctx),
9185 0 FieldSet: dfs,
9186 0 Context: ctx,
9187 0 })
9188 0 }
9189
9190 0 return out
9191 }
9192
9193 var __EnumValueImplementors = []string{"__EnumValue"}
9194
9195 0 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
9196 0 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
9197 0
9198 0 out := graphql.NewFieldSet(fields)
9199 0 deferred := make(map[string]*graphql.FieldSet)
9200 0 for i, field := range fields {
9201 0 switch field.Name {
9202 0 case "__typename":
9203 0 out.Values[i] = graphql.MarshalString("__EnumValue")
9204 0 case "name":
9205 0 out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
9206 0 if out.Values[i] == graphql.Null {
9207 0 out.Invalids++
9208 0 }
9209 0 case "description":
9210 0 out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
9211 0 case "isDeprecated":
9212 0 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
9213 0 if out.Values[i] == graphql.Null {
9214 0 out.Invalids++
9215 0 }
9216 0 case "deprecationReason":
9217 0 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
9218 0 default:
9219 0 panic("unknown field " + strconv.Quote(field.Name))
9220 }
9221 }
9222 0 out.Dispatch(ctx)
9223 0 if out.Invalids > 0 {
9224 0 return graphql.Null
9225 0 }
9226
9227 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9228 0
9229 0 for label, dfs := range deferred {
9230 0 ec.processDeferredGroup(graphql.DeferredGroup{
9231 0 Label: label,
9232 0 Path: graphql.GetPath(ctx),
9233 0 FieldSet: dfs,
9234 0 Context: ctx,
9235 0 })
9236 0 }
9237
9238 0 return out
9239 }
9240
9241 var __FieldImplementors = []string{"__Field"}
9242
9243 0 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
9244 0 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
9245 0
9246 0 out := graphql.NewFieldSet(fields)
9247 0 deferred := make(map[string]*graphql.FieldSet)
9248 0 for i, field := range fields {
9249 0 switch field.Name {
9250 0 case "__typename":
9251 0 out.Values[i] = graphql.MarshalString("__Field")
9252 0 case "name":
9253 0 out.Values[i] = ec.___Field_name(ctx, field, obj)
9254 0 if out.Values[i] == graphql.Null {
9255 0 out.Invalids++
9256 0 }
9257 0 case "description":
9258 0 out.Values[i] = ec.___Field_description(ctx, field, obj)
9259 0 case "args":
9260 0 out.Values[i] = ec.___Field_args(ctx, field, obj)
9261 0 if out.Values[i] == graphql.Null {
9262 0 out.Invalids++
9263 0 }
9264 0 case "type":
9265 0 out.Values[i] = ec.___Field_type(ctx, field, obj)
9266 0 if out.Values[i] == graphql.Null {
9267 0 out.Invalids++
9268 0 }
9269 0 case "isDeprecated":
9270 0 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
9271 0 if out.Values[i] == graphql.Null {
9272 0 out.Invalids++
9273 0 }
9274 0 case "deprecationReason":
9275 0 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
9276 0 default:
9277 0 panic("unknown field " + strconv.Quote(field.Name))
9278 }
9279 }
9280 0 out.Dispatch(ctx)
9281 0 if out.Invalids > 0 {
9282 0 return graphql.Null
9283 0 }
9284
9285 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9286 0
9287 0 for label, dfs := range deferred {
9288 0 ec.processDeferredGroup(graphql.DeferredGroup{
9289 0 Label: label,
9290 0 Path: graphql.GetPath(ctx),
9291 0 FieldSet: dfs,
9292 0 Context: ctx,
9293 0 })
9294 0 }
9295
9296 0 return out
9297 }
9298
9299 var __InputValueImplementors = []string{"__InputValue"}
9300
9301 0 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
9302 0 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
9303 0
9304 0 out := graphql.NewFieldSet(fields)
9305 0 deferred := make(map[string]*graphql.FieldSet)
9306 0 for i, field := range fields {
9307 0 switch field.Name {
9308 0 case "__typename":
9309 0 out.Values[i] = graphql.MarshalString("__InputValue")
9310 0 case "name":
9311 0 out.Values[i] = ec.___InputValue_name(ctx, field, obj)
9312 0 if out.Values[i] == graphql.Null {
9313 0 out.Invalids++
9314 0 }
9315 0 case "description":
9316 0 out.Values[i] = ec.___InputValue_description(ctx, field, obj)
9317 0 case "type":
9318 0 out.Values[i] = ec.___InputValue_type(ctx, field, obj)
9319 0 if out.Values[i] == graphql.Null {
9320 0 out.Invalids++
9321 0 }
9322 0 case "defaultValue":
9323 0 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
9324 0 default:
9325 0 panic("unknown field " + strconv.Quote(field.Name))
9326 }
9327 }
9328 0 out.Dispatch(ctx)
9329 0 if out.Invalids > 0 {
9330 0 return graphql.Null
9331 0 }
9332
9333 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9334 0
9335 0 for label, dfs := range deferred {
9336 0 ec.processDeferredGroup(graphql.DeferredGroup{
9337 0 Label: label,
9338 0 Path: graphql.GetPath(ctx),
9339 0 FieldSet: dfs,
9340 0 Context: ctx,
9341 0 })
9342 0 }
9343
9344 0 return out
9345 }
9346
9347 var __SchemaImplementors = []string{"__Schema"}
9348
9349 0 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
9350 0 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
9351 0
9352 0 out := graphql.NewFieldSet(fields)
9353 0 deferred := make(map[string]*graphql.FieldSet)
9354 0 for i, field := range fields {
9355 0 switch field.Name {
9356 0 case "__typename":
9357 0 out.Values[i] = graphql.MarshalString("__Schema")
9358 0 case "description":
9359 0 out.Values[i] = ec.___Schema_description(ctx, field, obj)
9360 0 case "types":
9361 0 out.Values[i] = ec.___Schema_types(ctx, field, obj)
9362 0 if out.Values[i] == graphql.Null {
9363 0 out.Invalids++
9364 0 }
9365 0 case "queryType":
9366 0 out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
9367 0 if out.Values[i] == graphql.Null {
9368 0 out.Invalids++
9369 0 }
9370 0 case "mutationType":
9371 0 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
9372 0 case "subscriptionType":
9373 0 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
9374 0 case "directives":
9375 0 out.Values[i] = ec.___Schema_directives(ctx, field, obj)
9376 0 if out.Values[i] == graphql.Null {
9377 0 out.Invalids++
9378 0 }
9379 0 default:
9380 0 panic("unknown field " + strconv.Quote(field.Name))
9381 }
9382 }
9383 0 out.Dispatch(ctx)
9384 0 if out.Invalids > 0 {
9385 0 return graphql.Null
9386 0 }
9387
9388 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9389 0
9390 0 for label, dfs := range deferred {
9391 0 ec.processDeferredGroup(graphql.DeferredGroup{
9392 0 Label: label,
9393 0 Path: graphql.GetPath(ctx),
9394 0 FieldSet: dfs,
9395 0 Context: ctx,
9396 0 })
9397 0 }
9398
9399 0 return out
9400 }
9401
9402 var __TypeImplementors = []string{"__Type"}
9403
9404 0 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
9405 0 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
9406 0
9407 0 out := graphql.NewFieldSet(fields)
9408 0 deferred := make(map[string]*graphql.FieldSet)
9409 0 for i, field := range fields {
9410 0 switch field.Name {
9411 0 case "__typename":
9412 0 out.Values[i] = graphql.MarshalString("__Type")
9413 0 case "kind":
9414 0 out.Values[i] = ec.___Type_kind(ctx, field, obj)
9415 0 if out.Values[i] == graphql.Null {
9416 0 out.Invalids++
9417 0 }
9418 0 case "name":
9419 0 out.Values[i] = ec.___Type_name(ctx, field, obj)
9420 0 case "description":
9421 0 out.Values[i] = ec.___Type_description(ctx, field, obj)
9422 0 case "fields":
9423 0 out.Values[i] = ec.___Type_fields(ctx, field, obj)
9424 0 case "interfaces":
9425 0 out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
9426 0 case "possibleTypes":
9427 0 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
9428 0 case "enumValues":
9429 0 out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
9430 0 case "inputFields":
9431 0 out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
9432 0 case "ofType":
9433 0 out.Values[i] = ec.___Type_ofType(ctx, field, obj)
9434 0 case "specifiedByURL":
9435 0 out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
9436 0 default:
9437 0 panic("unknown field " + strconv.Quote(field.Name))
9438 }
9439 }
9440 0 out.Dispatch(ctx)
9441 0 if out.Invalids > 0 {
9442 0 return graphql.Null
9443 0 }
9444
9445 0 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
9446 0
9447 0 for label, dfs := range deferred {
9448 0 ec.processDeferredGroup(graphql.DeferredGroup{
9449 0 Label: label,
9450 0 Path: graphql.GetPath(ctx),
9451 0 FieldSet: dfs,
9452 0 Context: ctx,
9453 0 })
9454 0 }
9455
9456 0 return out
9457 }
9458
9459 // endregion **************************** object.gotpl ****************************
9460
9461 // region ***************************** type.gotpl *****************************
9462
9463 0 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
9464 0 res, err := graphql.UnmarshalBoolean(v)
9465 0 return res, graphql.ErrorOnPath(ctx, err)
9466 0 }
9467
9468 0 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
9469 0 res := graphql.MarshalBoolean(v)
9470 0 if res == graphql.Null {
9471 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9472 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9473 0 }
9474 }
9475 0 return res
9476 }
9477
9478 0 func (ec *executionContext) marshalNDocument2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐDocumentᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Document) graphql.Marshaler {
9479 0 ret := make(graphql.Array, len(v))
9480 0 var wg sync.WaitGroup
9481 0 isLen1 := len(v) == 1
9482 0 if !isLen1 {
9483 0 wg.Add(len(v))
9484 0 }
9485 0 for i := range v {
9486 0 i := i
9487 0 fc := &graphql.FieldContext{
9488 0 Index: &i,
9489 0 Result: &v[i],
9490 0 }
9491 0 ctx := graphql.WithFieldContext(ctx, fc)
9492 0 f := func(i int) {
9493 0 defer func() {
9494 0 if r := recover(); r != nil {
9495 0 ec.Error(ctx, ec.Recover(ctx, r))
9496 0 ret = nil
9497 0 }
9498 }()
9499 0 if !isLen1 {
9500 0 defer wg.Done()
9501 0 }
9502 0 ret[i] = ec.marshalNDocument2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐDocument(ctx, sel, v[i])
9503 }
9504 0 if isLen1 {
9505 0 f(i)
9506 0 } else {
9507 0 go f(i)
9508 0 }
9509
9510 }
9511 0 wg.Wait()
9512 0
9513 0 for _, e := range ret {
9514 0 if e == graphql.Null {
9515 0 return graphql.Null
9516 0 }
9517 }
9518
9519 0 return ret
9520 }
9521
9522 0 func (ec *executionContext) marshalNDocument2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐDocument(ctx context.Context, sel ast.SelectionSet, v *model.Document) graphql.Marshaler {
9523 0 if v == nil {
9524 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9525 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9526 0 }
9527 0 return graphql.Null
9528 }
9529 0 return ec._Document(ctx, sel, v)
9530 }
9531
9532 0 func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) {
9533 0 res, err := graphql.UnmarshalFloatContext(ctx, v)
9534 0 return res, graphql.ErrorOnPath(ctx, err)
9535 0 }
9536
9537 0 func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler {
9538 0 res := graphql.MarshalFloatContext(v)
9539 0 if res == graphql.Null {
9540 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9541 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9542 0 }
9543 }
9544 0 return graphql.WrapContextMarshaler(ctx, res)
9545 }
9546
9547 0 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
9548 0 res, err := graphql.UnmarshalInt(v)
9549 0 return res, graphql.ErrorOnPath(ctx, err)
9550 0 }
9551
9552 0 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
9553 0 res := graphql.MarshalInt(v)
9554 0 if res == graphql.Null {
9555 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9556 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9557 0 }
9558 }
9559 0 return res
9560 }
9561
9562 0 func (ec *executionContext) marshalNProject2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProjectᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Project) graphql.Marshaler {
9563 0 ret := make(graphql.Array, len(v))
9564 0 var wg sync.WaitGroup
9565 0 isLen1 := len(v) == 1
9566 0 if !isLen1 {
9567 0 wg.Add(len(v))
9568 0 }
9569 0 for i := range v {
9570 0 i := i
9571 0 fc := &graphql.FieldContext{
9572 0 Index: &i,
9573 0 Result: &v[i],
9574 0 }
9575 0 ctx := graphql.WithFieldContext(ctx, fc)
9576 0 f := func(i int) {
9577 0 defer func() {
9578 0 if r := recover(); r != nil {
9579 0 ec.Error(ctx, ec.Recover(ctx, r))
9580 0 ret = nil
9581 0 }
9582 }()
9583 0 if !isLen1 {
9584 0 defer wg.Done()
9585 0 }
9586 0 ret[i] = ec.marshalNProject2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProject(ctx, sel, v[i])
9587 }
9588 0 if isLen1 {
9589 0 f(i)
9590 0 } else {
9591 0 go f(i)
9592 0 }
9593
9594 }
9595 0 wg.Wait()
9596 0
9597 0 for _, e := range ret {
9598 0 if e == graphql.Null {
9599 0 return graphql.Null
9600 0 }
9601 }
9602
9603 0 return ret
9604 }
9605
9606 0 func (ec *executionContext) marshalNProject2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProject(ctx context.Context, sel ast.SelectionSet, v *model.Project) graphql.Marshaler {
9607 0 if v == nil {
9608 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9609 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9610 0 }
9611 0 return graphql.Null
9612 }
9613 0 return ec._Project(ctx, sel, v)
9614 }
9615
9616 0 func (ec *executionContext) marshalNProposal2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProposalᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Proposal) graphql.Marshaler {
9617 0 ret := make(graphql.Array, len(v))
9618 0 var wg sync.WaitGroup
9619 0 isLen1 := len(v) == 1
9620 0 if !isLen1 {
9621 0 wg.Add(len(v))
9622 0 }
9623 0 for i := range v {
9624 0 i := i
9625 0 fc := &graphql.FieldContext{
9626 0 Index: &i,
9627 0 Result: &v[i],
9628 0 }
9629 0 ctx := graphql.WithFieldContext(ctx, fc)
9630 0 f := func(i int) {
9631 0 defer func() {
9632 0 if r := recover(); r != nil {
9633 0 ec.Error(ctx, ec.Recover(ctx, r))
9634 0 ret = nil
9635 0 }
9636 }()
9637 0 if !isLen1 {
9638 0 defer wg.Done()
9639 0 }
9640 0 ret[i] = ec.marshalNProposal2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProposal(ctx, sel, v[i])
9641 }
9642 0 if isLen1 {
9643 0 f(i)
9644 0 } else {
9645 0 go f(i)
9646 0 }
9647
9648 }
9649 0 wg.Wait()
9650 0
9651 0 for _, e := range ret {
9652 0 if e == graphql.Null {
9653 0 return graphql.Null
9654 0 }
9655 }
9656
9657 0 return ret
9658 }
9659
9660 0 func (ec *executionContext) marshalNProposal2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProposal(ctx context.Context, sel ast.SelectionSet, v *model.Proposal) graphql.Marshaler {
9661 0 if v == nil {
9662 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9663 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9664 0 }
9665 0 return graphql.Null
9666 }
9667 0 return ec._Proposal(ctx, sel, v)
9668 }
9669
9670 0 func (ec *executionContext) unmarshalNProposalState2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProposalState(ctx context.Context, v interface{}) (model.ProposalState, error) {
9671 0 var res model.ProposalState
9672 0 err := res.UnmarshalGQL(v)
9673 0 return res, graphql.ErrorOnPath(ctx, err)
9674 0 }
9675
9676 0 func (ec *executionContext) marshalNProposalState2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProposalState(ctx context.Context, sel ast.SelectionSet, v model.ProposalState) graphql.Marshaler {
9677 0 return v
9678 0 }
9679
9680 0 func (ec *executionContext) marshalNSearchHit2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSearchHitᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.SearchHit) graphql.Marshaler {
9681 0 ret := make(graphql.Array, len(v))
9682 0 var wg sync.WaitGroup
9683 0 isLen1 := len(v) == 1
9684 0 if !isLen1 {
9685 0 wg.Add(len(v))
9686 0 }
9687 0 for i := range v {
9688 0 i := i
9689 0 fc := &graphql.FieldContext{
9690 0 Index: &i,
9691 0 Result: &v[i],
9692 0 }
9693 0 ctx := graphql.WithFieldContext(ctx, fc)
9694 0 f := func(i int) {
9695 0 defer func() {
9696 0 if r := recover(); r != nil {
9697 0 ec.Error(ctx, ec.Recover(ctx, r))
9698 0 ret = nil
9699 0 }
9700 }()
9701 0 if !isLen1 {
9702 0 defer wg.Done()
9703 0 }
9704 0 ret[i] = ec.marshalNSearchHit2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSearchHit(ctx, sel, v[i])
9705 }
9706 0 if isLen1 {
9707 0 f(i)
9708 0 } else {
9709 0 go f(i)
9710 0 }
9711
9712 }
9713 0 wg.Wait()
9714 0
9715 0 for _, e := range ret {
9716 0 if e == graphql.Null {
9717 0 return graphql.Null
9718 0 }
9719 }
9720
9721 0 return ret
9722 }
9723
9724 0 func (ec *executionContext) marshalNSearchHit2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSearchHit(ctx context.Context, sel ast.SelectionSet, v *model.SearchHit) graphql.Marshaler {
9725 0 if v == nil {
9726 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9727 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9728 0 }
9729 0 return graphql.Null
9730 }
9731 0 return ec._SearchHit(ctx, sel, v)
9732 }
9733
9734 0 func (ec *executionContext) marshalNSearchResults2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSearchResults(ctx context.Context, sel ast.SelectionSet, v model.SearchResults) graphql.Marshaler {
9735 0 return ec._SearchResults(ctx, sel, &v)
9736 0 }
9737
9738 0 func (ec *executionContext) marshalNSearchResults2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSearchResults(ctx context.Context, sel ast.SelectionSet, v *model.SearchResults) graphql.Marshaler {
9739 0 if v == nil {
9740 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9741 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9742 0 }
9743 0 return graphql.Null
9744 }
9745 0 return ec._SearchResults(ctx, sel, v)
9746 }
9747
9748 0 func (ec *executionContext) marshalNSpace2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSpaceᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Space) graphql.Marshaler {
9749 0 ret := make(graphql.Array, len(v))
9750 0 var wg sync.WaitGroup
9751 0 isLen1 := len(v) == 1
9752 0 if !isLen1 {
9753 0 wg.Add(len(v))
9754 0 }
9755 0 for i := range v {
9756 0 i := i
9757 0 fc := &graphql.FieldContext{
9758 0 Index: &i,
9759 0 Result: &v[i],
9760 0 }
9761 0 ctx := graphql.WithFieldContext(ctx, fc)
9762 0 f := func(i int) {
9763 0 defer func() {
9764 0 if r := recover(); r != nil {
9765 0 ec.Error(ctx, ec.Recover(ctx, r))
9766 0 ret = nil
9767 0 }
9768 }()
9769 0 if !isLen1 {
9770 0 defer wg.Done()
9771 0 }
9772 0 ret[i] = ec.marshalNSpace2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSpace(ctx, sel, v[i])
9773 }
9774 0 if isLen1 {
9775 0 f(i)
9776 0 } else {
9777 0 go f(i)
9778 0 }
9779
9780 }
9781 0 wg.Wait()
9782 0
9783 0 for _, e := range ret {
9784 0 if e == graphql.Null {
9785 0 return graphql.Null
9786 0 }
9787 }
9788
9789 0 return ret
9790 }
9791
9792 0 func (ec *executionContext) marshalNSpace2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSpace(ctx context.Context, sel ast.SelectionSet, v *model.Space) graphql.Marshaler {
9793 0 if v == nil {
9794 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9795 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9796 0 }
9797 0 return graphql.Null
9798 }
9799 0 return ec._Space(ctx, sel, v)
9800 }
9801
9802 0 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
9803 0 res, err := graphql.UnmarshalString(v)
9804 0 return res, graphql.ErrorOnPath(ctx, err)
9805 0 }
9806
9807 0 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
9808 0 res := graphql.MarshalString(v)
9809 0 if res == graphql.Null {
9810 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9811 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9812 0 }
9813 }
9814 0 return res
9815 }
9816
9817 0 func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
9818 0 var vSlice []interface{}
9819 0 if v != nil {
9820 0 vSlice = graphql.CoerceList(v)
9821 0 }
9822 0 var err error
9823 0 res := make([]string, len(vSlice))
9824 0 for i := range vSlice {
9825 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
9826 0 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
9827 0 if err != nil {
9828 0 return nil, err
9829 0 }
9830 }
9831 0 return res, nil
9832 }
9833
9834 0 func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
9835 0 ret := make(graphql.Array, len(v))
9836 0 for i := range v {
9837 0 ret[i] = ec.marshalNString2string(ctx, sel, v[i])
9838 0 }
9839
9840 0 for _, e := range ret {
9841 0 if e == graphql.Null {
9842 0 return graphql.Null
9843 0 }
9844 }
9845
9846 0 return ret
9847 }
9848
9849 0 func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) {
9850 0 res, err := graphql.UnmarshalTime(v)
9851 0 return res, graphql.ErrorOnPath(ctx, err)
9852 0 }
9853
9854 0 func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
9855 0 res := graphql.MarshalTime(v)
9856 0 if res == graphql.Null {
9857 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9858 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9859 0 }
9860 }
9861 0 return res
9862 }
9863
9864 0 func (ec *executionContext) unmarshalNUserWebhookInput2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐUserWebhookInput(ctx context.Context, v interface{}) (model.UserWebhookInput, error) {
9865 0 res, err := ec.unmarshalInputUserWebhookInput(ctx, v)
9866 0 return res, graphql.ErrorOnPath(ctx, err)
9867 0 }
9868
9869 0 func (ec *executionContext) marshalNWebhookDelivery2ᚕᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookDeliveryᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.WebhookDelivery) graphql.Marshaler {
9870 0 ret := make(graphql.Array, len(v))
9871 0 var wg sync.WaitGroup
9872 0 isLen1 := len(v) == 1
9873 0 if !isLen1 {
9874 0 wg.Add(len(v))
9875 0 }
9876 0 for i := range v {
9877 0 i := i
9878 0 fc := &graphql.FieldContext{
9879 0 Index: &i,
9880 0 Result: &v[i],
9881 0 }
9882 0 ctx := graphql.WithFieldContext(ctx, fc)
9883 0 f := func(i int) {
9884 0 defer func() {
9885 0 if r := recover(); r != nil {
9886 0 ec.Error(ctx, ec.Recover(ctx, r))
9887 0 ret = nil
9888 0 }
9889 }()
9890 0 if !isLen1 {
9891 0 defer wg.Done()
9892 0 }
9893 0 ret[i] = ec.marshalNWebhookDelivery2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookDelivery(ctx, sel, v[i])
9894 }
9895 0 if isLen1 {
9896 0 f(i)
9897 0 } else {
9898 0 go f(i)
9899 0 }
9900
9901 }
9902 0 wg.Wait()
9903 0
9904 0 for _, e := range ret {
9905 0 if e == graphql.Null {
9906 0 return graphql.Null
9907 0 }
9908 }
9909
9910 0 return ret
9911 }
9912
9913 0 func (ec *executionContext) marshalNWebhookDelivery2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookDelivery(ctx context.Context, sel ast.SelectionSet, v *model.WebhookDelivery) graphql.Marshaler {
9914 0 if v == nil {
9915 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9916 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9917 0 }
9918 0 return graphql.Null
9919 }
9920 0 return ec._WebhookDelivery(ctx, sel, v)
9921 }
9922
9923 0 func (ec *executionContext) marshalNWebhookDeliveryCursor2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookDeliveryCursor(ctx context.Context, sel ast.SelectionSet, v model.WebhookDeliveryCursor) graphql.Marshaler {
9924 0 return ec._WebhookDeliveryCursor(ctx, sel, &v)
9925 0 }
9926
9927 0 func (ec *executionContext) marshalNWebhookDeliveryCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookDeliveryCursor(ctx context.Context, sel ast.SelectionSet, v *model.WebhookDeliveryCursor) graphql.Marshaler {
9928 0 if v == nil {
9929 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9930 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9931 0 }
9932 0 return graphql.Null
9933 }
9934 0 return ec._WebhookDeliveryCursor(ctx, sel, v)
9935 }
9936
9937 0 func (ec *executionContext) unmarshalNWebhookEvent2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEvent(ctx context.Context, v interface{}) (model.WebhookEvent, error) {
9938 0 var res model.WebhookEvent
9939 0 err := res.UnmarshalGQL(v)
9940 0 return res, graphql.ErrorOnPath(ctx, err)
9941 0 }
9942
9943 0 func (ec *executionContext) marshalNWebhookEvent2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEvent(ctx context.Context, sel ast.SelectionSet, v model.WebhookEvent) graphql.Marshaler {
9944 0 return v
9945 0 }
9946
9947 0 func (ec *executionContext) unmarshalNWebhookEvent2ᚕsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEventᚄ(ctx context.Context, v interface{}) ([]model.WebhookEvent, error) {
9948 0 var vSlice []interface{}
9949 0 if v != nil {
9950 0 vSlice = graphql.CoerceList(v)
9951 0 }
9952 0 var err error
9953 0 res := make([]model.WebhookEvent, len(vSlice))
9954 0 for i := range vSlice {
9955 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
9956 0 res[i], err = ec.unmarshalNWebhookEvent2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEvent(ctx, vSlice[i])
9957 0 if err != nil {
9958 0 return nil, err
9959 0 }
9960 }
9961 0 return res, nil
9962 }
9963
9964 0 func (ec *executionContext) marshalNWebhookEvent2ᚕsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEventᚄ(ctx context.Context, sel ast.SelectionSet, v []model.WebhookEvent) graphql.Marshaler {
9965 0 ret := make(graphql.Array, len(v))
9966 0 var wg sync.WaitGroup
9967 0 isLen1 := len(v) == 1
9968 0 if !isLen1 {
9969 0 wg.Add(len(v))
9970 0 }
9971 0 for i := range v {
9972 0 i := i
9973 0 fc := &graphql.FieldContext{
9974 0 Index: &i,
9975 0 Result: &v[i],
9976 0 }
9977 0 ctx := graphql.WithFieldContext(ctx, fc)
9978 0 f := func(i int) {
9979 0 defer func() {
9980 0 if r := recover(); r != nil {
9981 0 ec.Error(ctx, ec.Recover(ctx, r))
9982 0 ret = nil
9983 0 }
9984 }()
9985 0 if !isLen1 {
9986 0 defer wg.Done()
9987 0 }
9988 0 ret[i] = ec.marshalNWebhookEvent2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookEvent(ctx, sel, v[i])
9989 }
9990 0 if isLen1 {
9991 0 f(i)
9992 0 } else {
9993 0 go f(i)
9994 0 }
9995
9996 }
9997 0 wg.Wait()
9998 0
9999 0 for _, e := range ret {
10000 0 if e == graphql.Null {
10001 0 return graphql.Null
10002 0 }
10003 }
10004
10005 0 return ret
10006 }
10007
10008 0 func (ec *executionContext) marshalNWebhookPayload2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookPayload(ctx context.Context, sel ast.SelectionSet, v model.WebhookPayload) graphql.Marshaler {
10009 0 if v == nil {
10010 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
10011 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
10012 0 }
10013 0 return graphql.Null
10014 }
10015 0 return ec._WebhookPayload(ctx, sel, v)
10016 }
10017
10018 0 func (ec *executionContext) marshalNWebhookSubscription2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscription(ctx context.Context, sel ast.SelectionSet, v model.WebhookSubscription) graphql.Marshaler {
10019 0 if v == nil {
10020 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
10021 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
10022 0 }
10023 0 return graphql.Null
10024 }
10025 0 return ec._WebhookSubscription(ctx, sel, v)
10026 }
10027
10028 0 func (ec *executionContext) marshalNWebhookSubscription2ᚕsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscriptionᚄ(ctx context.Context, sel ast.SelectionSet, v []model.WebhookSubscription) graphql.Marshaler {
10029 0 ret := make(graphql.Array, len(v))
10030 0 var wg sync.WaitGroup
10031 0 isLen1 := len(v) == 1
10032 0 if !isLen1 {
10033 0 wg.Add(len(v))
10034 0 }
10035 0 for i := range v {
10036 0 i := i
10037 0 fc := &graphql.FieldContext{
10038 0 Index: &i,
10039 0 Result: &v[i],
10040 0 }
10041 0 ctx := graphql.WithFieldContext(ctx, fc)
10042 0 f := func(i int) {
10043 0 defer func() {
10044 0 if r := recover(); r != nil {
10045 0 ec.Error(ctx, ec.Recover(ctx, r))
10046 0 ret = nil
10047 0 }
10048 }()
10049 0 if !isLen1 {
10050 0 defer wg.Done()
10051 0 }
10052 0 ret[i] = ec.marshalNWebhookSubscription2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscription(ctx, sel, v[i])
10053 }
10054 0 if isLen1 {
10055 0 f(i)
10056 0 } else {
10057 0 go f(i)
10058 0 }
10059
10060 }
10061 0 wg.Wait()
10062 0
10063 0 for _, e := range ret {
10064 0 if e == graphql.Null {
10065 0 return graphql.Null
10066 0 }
10067 }
10068
10069 0 return ret
10070 }
10071
10072 0 func (ec *executionContext) marshalNWebhookSubscriptionCursor2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscriptionCursor(ctx context.Context, sel ast.SelectionSet, v model.WebhookSubscriptionCursor) graphql.Marshaler {
10073 0 return ec._WebhookSubscriptionCursor(ctx, sel, &v)
10074 0 }
10075
10076 0 func (ec *executionContext) marshalNWebhookSubscriptionCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscriptionCursor(ctx context.Context, sel ast.SelectionSet, v *model.WebhookSubscriptionCursor) graphql.Marshaler {
10077 0 if v == nil {
10078 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
10079 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
10080 0 }
10081 0 return graphql.Null
10082 }
10083 0 return ec._WebhookSubscriptionCursor(ctx, sel, v)
10084 }
10085
10086 0 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
10087 0 return ec.___Directive(ctx, sel, &v)
10088 0 }
10089
10090 0 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
10091 0 ret := make(graphql.Array, len(v))
10092 0 var wg sync.WaitGroup
10093 0 isLen1 := len(v) == 1
10094 0 if !isLen1 {
10095 0 wg.Add(len(v))
10096 0 }
10097 0 for i := range v {
10098 0 i := i
10099 0 fc := &graphql.FieldContext{
10100 0 Index: &i,
10101 0 Result: &v[i],
10102 0 }
10103 0 ctx := graphql.WithFieldContext(ctx, fc)
10104 0 f := func(i int) {
10105 0 defer func() {
10106 0 if r := recover(); r != nil {
10107 0 ec.Error(ctx, ec.Recover(ctx, r))
10108 0 ret = nil
10109 0 }
10110 }()
10111 0 if !isLen1 {
10112 0 defer wg.Done()
10113 0 }
10114 0 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
10115 }
10116 0 if isLen1 {
10117 0 f(i)
10118 0 } else {
10119 0 go f(i)
10120 0 }
10121
10122 }
10123 0 wg.Wait()
10124 0
10125 0 for _, e := range ret {
10126 0 if e == graphql.Null {
10127 0 return graphql.Null
10128 0 }
10129 }
10130
10131 0 return ret
10132 }
10133
10134 0 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
10135 0 res, err := graphql.UnmarshalString(v)
10136 0 return res, graphql.ErrorOnPath(ctx, err)
10137 0 }
10138
10139 0 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
10140 0 res := graphql.MarshalString(v)
10141 0 if res == graphql.Null {
10142 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
10143 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
10144 0 }
10145 }
10146 0 return res
10147 }
10148
10149 0 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
10150 0 var vSlice []interface{}
10151 0 if v != nil {
10152 0 vSlice = graphql.CoerceList(v)
10153 0 }
10154 0 var err error
10155 0 res := make([]string, len(vSlice))
10156 0 for i := range vSlice {
10157 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
10158 0 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
10159 0 if err != nil {
10160 0 return nil, err
10161 0 }
10162 }
10163 0 return res, nil
10164 }
10165
10166 0 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
10167 0 ret := make(graphql.Array, len(v))
10168 0 var wg sync.WaitGroup
10169 0 isLen1 := len(v) == 1
10170 0 if !isLen1 {
10171 0 wg.Add(len(v))
10172 0 }
10173 0 for i := range v {
10174 0 i := i
10175 0 fc := &graphql.FieldContext{
10176 0 Index: &i,
10177 0 Result: &v[i],
10178 0 }
10179 0 ctx := graphql.WithFieldContext(ctx, fc)
10180 0 f := func(i int) {
10181 0 defer func() {
10182 0 if r := recover(); r != nil {
10183 0 ec.Error(ctx, ec.Recover(ctx, r))
10184 0 ret = nil
10185 0 }
10186 }()
10187 0 if !isLen1 {
10188 0 defer wg.Done()
10189 0 }
10190 0 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
10191 }
10192 0 if isLen1 {
10193 0 f(i)
10194 0 } else {
10195 0 go f(i)
10196 0 }
10197
10198 }
10199 0 wg.Wait()
10200 0
10201 0 for _, e := range ret {
10202 0 if e == graphql.Null {
10203 0 return graphql.Null
10204 0 }
10205 }
10206
10207 0 return ret
10208 }
10209
10210 0 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
10211 0 return ec.___EnumValue(ctx, sel, &v)
10212 0 }
10213
10214 0 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
10215 0 return ec.___Field(ctx, sel, &v)
10216 0 }
10217
10218 0 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
10219 0 return ec.___InputValue(ctx, sel, &v)
10220 0 }
10221
10222 0 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
10223 0 ret := make(graphql.Array, len(v))
10224 0 var wg sync.WaitGroup
10225 0 isLen1 := len(v) == 1
10226 0 if !isLen1 {
10227 0 wg.Add(len(v))
10228 0 }
10229 0 for i := range v {
10230 0 i := i
10231 0 fc := &graphql.FieldContext{
10232 0 Index: &i,
10233 0 Result: &v[i],
10234 0 }
10235 0 ctx := graphql.WithFieldContext(ctx, fc)
10236 0 f := func(i int) {
10237 0 defer func() {
10238 0 if r := recover(); r != nil {
10239 0 ec.Error(ctx, ec.Recover(ctx, r))
10240 0 ret = nil
10241 0 }
10242 }()
10243 0 if !isLen1 {
10244 0 defer wg.Done()
10245 0 }
10246 0 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
10247 }
10248 0 if isLen1 {
10249 0 f(i)
10250 0 } else {
10251 0 go f(i)
10252 0 }
10253
10254 }
10255 0 wg.Wait()
10256 0
10257 0 for _, e := range ret {
10258 0 if e == graphql.Null {
10259 0 return graphql.Null
10260 0 }
10261 }
10262
10263 0 return ret
10264 }
10265
10266 0 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
10267 0 return ec.___Type(ctx, sel, &v)
10268 0 }
10269
10270 0 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
10271 0 ret := make(graphql.Array, len(v))
10272 0 var wg sync.WaitGroup
10273 0 isLen1 := len(v) == 1
10274 0 if !isLen1 {
10275 0 wg.Add(len(v))
10276 0 }
10277 0 for i := range v {
10278 0 i := i
10279 0 fc := &graphql.FieldContext{
10280 0 Index: &i,
10281 0 Result: &v[i],
10282 0 }
10283 0 ctx := graphql.WithFieldContext(ctx, fc)
10284 0 f := func(i int) {
10285 0 defer func() {
10286 0 if r := recover(); r != nil {
10287 0 ec.Error(ctx, ec.Recover(ctx, r))
10288 0 ret = nil
10289 0 }
10290 }()
10291 0 if !isLen1 {
10292 0 defer wg.Done()
10293 0 }
10294 0 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
10295 }
10296 0 if isLen1 {
10297 0 f(i)
10298 0 } else {
10299 0 go f(i)
10300 0 }
10301
10302 }
10303 0 wg.Wait()
10304 0
10305 0 for _, e := range ret {
10306 0 if e == graphql.Null {
10307 0 return graphql.Null
10308 0 }
10309 }
10310
10311 0 return ret
10312 }
10313
10314 0 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
10315 0 if v == nil {
10316 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
10317 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
10318 0 }
10319 0 return graphql.Null
10320 }
10321 0 return ec.___Type(ctx, sel, v)
10322 }
10323
10324 0 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
10325 0 res, err := graphql.UnmarshalString(v)
10326 0 return res, graphql.ErrorOnPath(ctx, err)
10327 0 }
10328
10329 0 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
10330 0 res := graphql.MarshalString(v)
10331 0 if res == graphql.Null {
10332 0 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
10333 0 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
10334 0 }
10335 }
10336 0 return res
10337 }
10338
10339 0 func (ec *executionContext) unmarshalOApproval2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐApproval(ctx context.Context, v interface{}) (*model.Approval, error) {
10340 0 if v == nil {
10341 0 return nil, nil
10342 0 }
10343 0 var res = new(model.Approval)
10344 0 err := res.UnmarshalGQL(v)
10345 0 return res, graphql.ErrorOnPath(ctx, err)
10346 }
10347
10348 0 func (ec *executionContext) marshalOApproval2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐApproval(ctx context.Context, sel ast.SelectionSet, v *model.Approval) graphql.Marshaler {
10349 0 if v == nil {
10350 0 return graphql.Null
10351 0 }
10352 0 return v
10353 }
10354
10355 0 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
10356 0 res, err := graphql.UnmarshalBoolean(v)
10357 0 return res, graphql.ErrorOnPath(ctx, err)
10358 0 }
10359
10360 0 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
10361 0 res := graphql.MarshalBoolean(v)
10362 0 return res
10363 0 }
10364
10365 0 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
10366 0 if v == nil {
10367 0 return nil, nil
10368 0 }
10369 0 res, err := graphql.UnmarshalBoolean(v)
10370 0 return &res, graphql.ErrorOnPath(ctx, err)
10371 }
10372
10373 0 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
10374 0 if v == nil {
10375 0 return graphql.Null
10376 0 }
10377 0 res := graphql.MarshalBoolean(*v)
10378 0 return res
10379 }
10380
10381 0 func (ec *executionContext) unmarshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx context.Context, v interface{}) (*model1.Cursor, error) {
10382 0 if v == nil {
10383 0 return nil, nil
10384 0 }
10385 0 var res = new(model1.Cursor)
10386 0 err := res.UnmarshalGQL(v)
10387 0 return res, graphql.ErrorOnPath(ctx, err)
10388 }
10389
10390 0 func (ec *executionContext) marshalOCursor2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑcoreᚋmodelᚐCursor(ctx context.Context, sel ast.SelectionSet, v *model1.Cursor) graphql.Marshaler {
10391 0 if v == nil {
10392 0 return graphql.Null
10393 0 }
10394 0 return v
10395 }
10396
10397 0 func (ec *executionContext) marshalODocument2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐDocument(ctx context.Context, sel ast.SelectionSet, v *model.Document) graphql.Marshaler {
10398 0 if v == nil {
10399 0 return graphql.Null
10400 0 }
10401 0 return ec._Document(ctx, sel, v)
10402 }
10403
10404 0 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) {
10405 0 if v == nil {
10406 0 return nil, nil
10407 0 }
10408 0 res, err := graphql.UnmarshalInt(v)
10409 0 return &res, graphql.ErrorOnPath(ctx, err)
10410 }
10411
10412 0 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
10413 0 if v == nil {
10414 0 return graphql.Null
10415 0 }
10416 0 res := graphql.MarshalInt(*v)
10417 0 return res
10418 }
10419
10420 0 func (ec *executionContext) marshalOProject2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐProject(ctx context.Context, sel ast.SelectionSet, v *model.Project) graphql.Marshaler {
10421 0 if v == nil {
10422 0 return graphql.Null
10423 0 }
10424 0 return ec._Project(ctx, sel, v)
10425 }
10426
10427 0 func (ec *executionContext) marshalOSpace2ᚖsourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐSpace(ctx context.Context, sel ast.SelectionSet, v *model.Space) graphql.Marshaler {
10428 0 if v == nil {
10429 0 return graphql.Null
10430 0 }
10431 0 return ec._Space(ctx, sel, v)
10432 }
10433
10434 0 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
10435 0 if v == nil {
10436 0 return nil, nil
10437 0 }
10438 0 var vSlice []interface{}
10439 0 if v != nil {
10440 0 vSlice = graphql.CoerceList(v)
10441 0 }
10442 0 var err error
10443 0 res := make([]string, len(vSlice))
10444 0 for i := range vSlice {
10445 0 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
10446 0 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
10447 0 if err != nil {
10448 0 return nil, err
10449 0 }
10450 }
10451 0 return res, nil
10452 }
10453
10454 0 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
10455 0 if v == nil {
10456 0 return graphql.Null
10457 0 }
10458 0 ret := make(graphql.Array, len(v))
10459 0 for i := range v {
10460 0 ret[i] = ec.marshalNString2string(ctx, sel, v[i])
10461 0 }
10462
10463 0 for _, e := range ret {
10464 0 if e == graphql.Null {
10465 0 return graphql.Null
10466 0 }
10467 }
10468
10469 0 return ret
10470 }
10471
10472 0 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
10473 0 if v == nil {
10474 0 return nil, nil
10475 0 }
10476 0 res, err := graphql.UnmarshalString(v)
10477 0 return &res, graphql.ErrorOnPath(ctx, err)
10478 }
10479
10480 0 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
10481 0 if v == nil {
10482 0 return graphql.Null
10483 0 }
10484 0 res := graphql.MarshalString(*v)
10485 0 return res
10486 }
10487
10488 0 func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) {
10489 0 if v == nil {
10490 0 return nil, nil
10491 0 }
10492 0 res, err := graphql.UnmarshalTime(v)
10493 0 return &res, graphql.ErrorOnPath(ctx, err)
10494 }
10495
10496 0 func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
10497 0 if v == nil {
10498 0 return graphql.Null
10499 0 }
10500 0 res := graphql.MarshalTime(*v)
10501 0 return res
10502 }
10503
10504 0 func (ec *executionContext) marshalOWebhookSubscription2sourcecraftᚗdevᚋbigbesᚋsrᚑhtᚑspecᚋgraphᚋmodelᚐWebhookSubscription(ctx context.Context, sel ast.SelectionSet, v model.WebhookSubscription) graphql.Marshaler {
10505 0 if v == nil {
10506 0 return graphql.Null
10507 0 }
10508 0 return ec._WebhookSubscription(ctx, sel, v)
10509 }
10510
10511 0 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
10512 0 if v == nil {
10513 0 return graphql.Null
10514 0 }
10515 0 ret := make(graphql.Array, len(v))
10516 0 var wg sync.WaitGroup
10517 0 isLen1 := len(v) == 1
10518 0 if !isLen1 {
10519 0 wg.Add(len(v))
10520 0 }
10521 0 for i := range v {
10522 0 i := i
10523 0 fc := &graphql.FieldContext{
10524 0 Index: &i,
10525 0 Result: &v[i],
10526 0 }
10527 0 ctx := graphql.WithFieldContext(ctx, fc)
10528 0 f := func(i int) {
10529 0 defer func() {
10530 0 if r := recover(); r != nil {
10531 0 ec.Error(ctx, ec.Recover(ctx, r))
10532 0 ret = nil
10533 0 }
10534 }()
10535 0 if !isLen1 {
10536 0 defer wg.Done()
10537 0 }
10538 0 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
10539 }
10540 0 if isLen1 {
10541 0 f(i)
10542 0 } else {
10543 0 go f(i)
10544 0 }
10545
10546 }
10547 0 wg.Wait()
10548 0
10549 0 for _, e := range ret {
10550 0 if e == graphql.Null {
10551 0 return graphql.Null
10552 0 }
10553 }
10554
10555 0 return ret
10556 }
10557
10558 0 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
10559 0 if v == nil {
10560 0 return graphql.Null
10561 0 }
10562 0 ret := make(graphql.Array, len(v))
10563 0 var wg sync.WaitGroup
10564 0 isLen1 := len(v) == 1
10565 0 if !isLen1 {
10566 0 wg.Add(len(v))
10567 0 }
10568 0 for i := range v {
10569 0 i := i
10570 0 fc := &graphql.FieldContext{
10571 0 Index: &i,
10572 0 Result: &v[i],
10573 0 }
10574 0 ctx := graphql.WithFieldContext(ctx, fc)
10575 0 f := func(i int) {
10576 0 defer func() {
10577 0 if r := recover(); r != nil {
10578 0 ec.Error(ctx, ec.Recover(ctx, r))
10579 0 ret = nil
10580 0 }
10581 }()
10582 0 if !isLen1 {
10583 0 defer wg.Done()
10584 0 }
10585 0 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
10586 }
10587 0 if isLen1 {
10588 0 f(i)
10589 0 } else {
10590 0 go f(i)
10591 0 }
10592
10593 }
10594 0 wg.Wait()
10595 0
10596 0 for _, e := range ret {
10597 0 if e == graphql.Null {
10598 0 return graphql.Null
10599 0 }
10600 }
10601
10602 0 return ret
10603 }
10604
10605 0 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
10606 0 if v == nil {
10607 0 return graphql.Null
10608 0 }
10609 0 ret := make(graphql.Array, len(v))
10610 0 var wg sync.WaitGroup
10611 0 isLen1 := len(v) == 1
10612 0 if !isLen1 {
10613 0 wg.Add(len(v))
10614 0 }
10615 0 for i := range v {
10616 0 i := i
10617 0 fc := &graphql.FieldContext{
10618 0 Index: &i,
10619 0 Result: &v[i],
10620 0 }
10621 0 ctx := graphql.WithFieldContext(ctx, fc)
10622 0 f := func(i int) {
10623 0 defer func() {
10624 0 if r := recover(); r != nil {
10625 0 ec.Error(ctx, ec.Recover(ctx, r))
10626 0 ret = nil
10627 0 }
10628 }()
10629 0 if !isLen1 {
10630 0 defer wg.Done()
10631 0 }
10632 0 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
10633 }
10634 0 if isLen1 {
10635 0 f(i)
10636 0 } else {
10637 0 go f(i)
10638 0 }
10639
10640 }
10641 0 wg.Wait()
10642 0
10643 0 for _, e := range ret {
10644 0 if e == graphql.Null {
10645 0 return graphql.Null
10646 0 }
10647 }
10648
10649 0 return ret
10650 }
10651
10652 0 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
10653 0 if v == nil {
10654 0 return graphql.Null
10655 0 }
10656 0 return ec.___Schema(ctx, sel, v)
10657 }
10658
10659 0 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
10660 0 if v == nil {
10661 0 return graphql.Null
10662 0 }
10663 0 ret := make(graphql.Array, len(v))
10664 0 var wg sync.WaitGroup
10665 0 isLen1 := len(v) == 1
10666 0 if !isLen1 {
10667 0 wg.Add(len(v))
10668 0 }
10669 0 for i := range v {
10670 0 i := i
10671 0 fc := &graphql.FieldContext{
10672 0 Index: &i,
10673 0 Result: &v[i],
10674 0 }
10675 0 ctx := graphql.WithFieldContext(ctx, fc)
10676 0 f := func(i int) {
10677 0 defer func() {
10678 0 if r := recover(); r != nil {
10679 0 ec.Error(ctx, ec.Recover(ctx, r))
10680 0 ret = nil
10681 0 }
10682 }()
10683 0 if !isLen1 {
10684 0 defer wg.Done()
10685 0 }
10686 0 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
10687 }
10688 0 if isLen1 {
10689 0 f(i)
10690 0 } else {
10691 0 go f(i)
10692 0 }
10693
10694 }
10695 0 wg.Wait()
10696 0
10697 0 for _, e := range ret {
10698 0 if e == graphql.Null {
10699 0 return graphql.Null
10700 0 }
10701 }
10702
10703 0 return ret
10704 }
10705
10706 0 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
10707 0 if v == nil {
10708 0 return graphql.Null
10709 0 }
10710 0 return ec.___Type(ctx, sel, v)
10711 }
10712
10713 // endregion ***************************** type.gotpl *****************************