From 18c8f0f1ed838fd5c0ad6eb4594f90656accad5a Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Tue, 17 Oct 2023 15:08:54 -0400 Subject: [PATCH 1/6] Feed version value counts --- go.mod | 25 +- go.sum | 69 +- gqlgen.yml | 2 + internal/generated/gqlout/generated.go | 6709 +++++++++++++++--------- model/models_gen.go | 388 +- schema/schema.graphqls | 3 + 6 files changed, 4547 insertions(+), 2649 deletions(-) diff --git a/go.mod b/go.mod index 43c39ca1..58894471 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/interline-io/transitland-server go 1.18 require ( - github.com/99designs/gqlgen v0.17.26 + github.com/99designs/gqlgen v0.17.39 github.com/Masterminds/squirrel v1.5.3 github.com/amberflo/metering-go/v2 v2.0.1 github.com/auth0/go-auth0 v0.17.2 @@ -22,7 +22,7 @@ require ( github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 github.com/graph-gophers/dataloader/v7 v7.1.0 github.com/hypirion/go-filecache v0.0.0-20160810125507-e3e6ef6981f0 - github.com/interline-io/transitland-lib v0.13.1-0.20231009233939-3f7b51b007d9 + github.com/interline-io/transitland-lib v0.13.1-0.20231017190530-476a215be8bc github.com/jellydator/ttlcache/v2 v2.11.1 github.com/jmoiron/sqlx v1.3.5 github.com/lib/pq v1.10.7 @@ -34,7 +34,7 @@ require ( github.com/tidwall/rtree v1.10.0 github.com/tidwall/tinylru v1.1.0 github.com/twpayne/go-geom v1.5.1 - github.com/vektah/gqlparser/v2 v2.5.1 + github.com/vektah/gqlparser/v2 v2.5.10 github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c google.golang.org/grpc v1.56.0 google.golang.org/protobuf v1.30.0 @@ -76,11 +76,11 @@ require ( github.com/golang-jwt/jwt/v4 v4.5.0 // indirect github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect github.com/golang/protobuf v1.5.3 // indirect - github.com/google/uuid v1.3.0 // indirect + github.com/google/uuid v1.3.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/golang-lru/v2 v2.0.1 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.3 // indirect github.com/iancoleman/orderedmap v0.2.0 // indirect github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 // indirect github.com/jlaffaye/ftp v0.1.0 // indirect @@ -88,7 +88,7 @@ require ( github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.17 // indirect + github.com/mattn/go-isatty v0.0.19 // indirect github.com/mattn/go-sqlite3 v1.14.16 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect @@ -100,18 +100,19 @@ require ( github.com/prometheus/procfs v0.9.0 // indirect github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3 // indirect github.com/snabb/isoweek v1.0.3 // indirect + github.com/sosodev/duration v1.2.0 // indirect github.com/tidwall/geoindex v1.7.0 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.1 // indirect github.com/tkrajina/gpxgo v1.2.1 // indirect - golang.org/x/crypto v0.7.0 // indirect + golang.org/x/crypto v0.14.0 // indirect golang.org/x/image v0.6.0 // indirect - golang.org/x/net v0.10.0 // indirect + golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sync v0.1.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect - golang.org/x/tools v0.7.0 // indirect + golang.org/x/sync v0.4.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect + golang.org/x/tools v0.14.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 0383df01..4ec709bd 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,8 @@ cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqCl cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/99designs/gqlgen v0.17.26 h1:fxgSTbPf1G30uWAWSoHd+9gSNMagmP04k58ThJ1/ikQ= -github.com/99designs/gqlgen v0.17.26/go.mod h1:i4rEatMrzzu6RXaHydq1nmEPZkb3bKQsnxNRHS4DQB4= +github.com/99designs/gqlgen v0.17.39 h1:wPTAyc2fqVjAWT5DsJ21k/lLudgnXzURwbsjVNegFpU= +github.com/99designs/gqlgen v0.17.39/go.mod h1:b62q1USk82GYIVjC60h02YguAZLqYZtvWml8KkhJps4= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 h1:rTnT/Jrcm+figWlYz4Ixzt0SJVR2cMC8lvZcimipiEY= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0/go.mod h1:ON4tFdPTwRcgWEaVDrN3584Ef+b7GgSJaXxe5fW9t4M= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O0ZANcHoj3rO0PoQ3jglUJA= @@ -28,10 +28,10 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= github.com/Masterminds/squirrel v1.5.3 h1:YPpoceAcxuzIljlr5iWpNKaql7hLeG1KLSrhvdHpkZc= github.com/Masterminds/squirrel v1.5.3/go.mod h1:NNaOrjSoIDfDA40n7sr2tPNZRfjzjA400rg+riTZj10= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/PuerkitoBio/rehttp v1.1.0 h1:JFZ7OeK+hbJpTxhNB0NDZT47AuXqCU0Smxfjtph7/Rs= github.com/PuerkitoBio/rehttp v1.1.0/go.mod h1:LUwKPoDbDIA2RL5wYZCNsQ90cx4OJ4AWBmq6KzWZL1s= -github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= @@ -39,7 +39,6 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF github.com/amberflo/metering-go/v2 v2.0.1 h1:4FXP837vZVOj1zHJIqmPC6rPAHKY8D6D7X/cia92VhI= github.com/amberflo/metering-go/v2 v2.0.1/go.mod h1:6IGhO3TgPMXhg5h/u0SC1NuQEhX7mU3MfEPBAfq1aXI= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= -github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= @@ -133,6 +132,8 @@ github.com/digitalocean/go-workers2 v0.10.3/go.mod h1:4F0tUdjgqV9ZOGCTmn5Cr58CVs github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U= github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= @@ -159,6 +160,7 @@ github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-redis/redis/v8 v8.4.4/go.mod h1:nA0bQuF0i5JFx4Ta9RZxGKXFrQ8cRWntra97f0196iY= github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= @@ -171,6 +173,7 @@ github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg78 github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= @@ -215,8 +218,8 @@ github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OI github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.4/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= @@ -247,8 +250,8 @@ github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru/v2 v2.0.1 h1:5pv5N1lT1fjLg2VQ5KWc7kmucp2x/kvFOnxuVTqZ6x4= -github.com/hashicorp/golang-lru/v2 v2.0.1/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/hashicorp/golang-lru/v2 v2.0.3 h1:kmRrRLlInXvng0SmLxmQpQkpbYAvcXm7NPDrgxJa9mE= +github.com/hashicorp/golang-lru/v2 v2.0.3/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= @@ -261,10 +264,8 @@ github.com/iancoleman/orderedmap v0.2.0 h1:sq1N/TFpYH++aViPcaKjys3bDClUEU7s5B+z6 github.com/iancoleman/orderedmap v0.2.0/go.mod h1:N0Wam8K1arqPXNWjMo21EXnBPOPp36vB07FNRdD2geA= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/interline-io/transitland-lib v0.13.1-0.20231007011544-9b1f7cba6634 h1:ICaVmw8XTl9Idpzabg3HtwHASkGlhRdDlqDQHmKk4gU= -github.com/interline-io/transitland-lib v0.13.1-0.20231007011544-9b1f7cba6634/go.mod h1:EnN1BuWqBAQzyIBOH+Ait7S8i4uC5fLqGzmX8FmQ2a8= -github.com/interline-io/transitland-lib v0.13.1-0.20231009233939-3f7b51b007d9 h1:gRAYhdeSN7GsDLSZvKRMNzpmAdulMKMQz8T4LxbFFps= -github.com/interline-io/transitland-lib v0.13.1-0.20231009233939-3f7b51b007d9/go.mod h1:EnN1BuWqBAQzyIBOH+Ait7S8i4uC5fLqGzmX8FmQ2a8= +github.com/interline-io/transitland-lib v0.13.1-0.20231017190530-476a215be8bc h1:GFzYjMovsDjXvCq5YNTNHN2w1dJ41rXpo70pNw2bpLI= +github.com/interline-io/transitland-lib v0.13.1-0.20231017190530-476a215be8bc/go.mod h1:FgShFbyforb3tBSApO6wBlOedaGT6cXyWQlhOYClEyM= github.com/jarcoal/httpmock v1.3.0 h1:2RJ8GP0IIaWwcC9Fp2BmVi8Kog3v2Hn7VXM3fTd+nuc= github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 h1:IPJ3dvxmJ4uczJe5YQdrYB16oTJlGSC/OyZDqUk9xX4= github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869/go.mod h1:cJ6Cj7dQo+O6GJNiMx+Pa94qKj+TG8ONdKHgMNIyyag= @@ -281,10 +282,13 @@ github.com/jmoiron/sqlx v1.3.5/go.mod h1:nRVWtLre0KfCLJvgxzCsLVMogSvQ1zNJtpYr2Cc github.com/joeshaw/gengen v0.0.0-20190604015154-c77d87825f5a/go.mod h1:v2qvRL8Xwk4OlARK6gPlf2JreZXzv0dYp/8+kUJ0y7Q= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -313,8 +317,8 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= -github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= @@ -336,7 +340,9 @@ github.com/mmcloughlin/geohash v0.10.0 h1:9w1HchfDfdeLc+jFEf/04D27KP7E2QmpDu52wP github.com/mmcloughlin/geohash v0.10.0/go.mod h1:oNZxQo5yWJh0eMQEP/8hwQuVx9Z9tjwFUqcTB1SmG0c= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.6/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= @@ -395,8 +401,7 @@ github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3 h1:ZuhckGJ10ulaKkdvJtiAqsLTiPrLaXSdnVgXJKJkTxE= github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3/go.mod h1:9/Rh6yILuLysoQnZ2oNooD2g7aBnvM7r/fNVxRNWfBc= -github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= +github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= @@ -404,6 +409,8 @@ github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9 github.com/snabb/isoweek v1.0.3 h1:BwEULUhj7UToLLa7FivDTLzA4y1epTYkLhnn31huBRs= github.com/snabb/isoweek v1.0.3/go.mod h1:J5hJfY1CG56xmKCC/4XfoaWZcOiB+qntmyKEDATSnlw= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/sosodev/duration v1.2.0 h1:pqK/FLSjsAADWY74SyWDCjOcd5l7H8GSnnOGEB9A1Us= +github.com/sosodev/duration v1.2.0/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= @@ -414,6 +421,7 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -446,8 +454,8 @@ github.com/tkrajina/gpxgo v1.2.1/go.mod h1:795sjVRFo5wWyN6oOZp0RYienGGBJjpAlgOz2 github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/twpayne/go-geom v1.5.1 h1:8MmGNqjDaepxHqA2/J2AftwxKzzCXmQx1gX+syYctyA= github.com/twpayne/go-geom v1.5.1/go.mod h1:Ixuwq8wG6UqI/udYOkKFHJIktCHN0yCozVDng4rYQUQ= -github.com/vektah/gqlparser/v2 v2.5.1 h1:ZGu+bquAY23jsxDRcYpWjttRZrUz07LbiY77gUOHcr4= -github.com/vektah/gqlparser/v2 v2.5.1/go.mod h1:mPgqFBu/woKTVYWyNk8cO3kh4S/f4aRFZrvOnp3hmCs= +github.com/vektah/gqlparser/v2 v2.5.10 h1:6zSM4azXC9u4Nxy5YmdmGu4uKamfwsdKTwp5zsEealU= +github.com/vektah/gqlparser/v2 v2.5.10/go.mod h1:1rCcfwB2ekJofmluGWXMSEnPMZgbxzwj6FaZ/4OT8Cc= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c h1:3lbZUMbMiGUW/LMkfsEABsc5zNT9+b1CvsJx47JzJ8g= github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c/go.mod h1:UrdRz5enIKZ63MEE3IF9l2/ebyx59GyGgPi+tICQdmM= @@ -470,8 +478,8 @@ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -525,8 +533,8 @@ golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -540,8 +548,9 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -578,8 +587,9 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -594,8 +604,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -624,8 +634,8 @@ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210112230658-8b4aab62c064/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= -golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -676,7 +686,6 @@ google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/dnaeon/go-vcr.v2 v2.3.0 h1:nwyjLPYlDmZkurnsEr5iWdjqy8kM+xV80E3TbvTA4Ow= diff --git a/gqlgen.yml b/gqlgen.yml index 21f00984..29af1a21 100644 --- a/gqlgen.yml +++ b/gqlgen.yml @@ -36,6 +36,8 @@ models: model: - "github.com/99designs/gqlgen/graphql.String" - "github.com/interline-io/transitland-lib/tl/tt.String" + Counts: + model: "github.com/interline-io/transitland-lib/tl/tt.Counts" Tags: model: "github.com/interline-io/transitland-lib/tl/tt.Tags" Polygon: diff --git a/internal/generated/gqlout/generated.go b/internal/generated/gqlout/generated.go index a76b0165..c7c03e0e 100644 --- a/internal/generated/gqlout/generated.go +++ b/internal/generated/gqlout/generated.go @@ -25,6 +25,7 @@ import ( // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { return &executableSchema{ + schema: cfg.Schema, resolvers: cfg.Resolvers, directives: cfg.Directives, complexity: cfg.Complexity, @@ -32,6 +33,7 @@ func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { } type Config struct { + Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot @@ -286,13 +288,15 @@ type ComplexityRoot struct { } FeedVersionFileInfo struct { - CSVLike func(childComplexity int) int - Header func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Rows func(childComplexity int) int - SHA1 func(childComplexity int) int - Size func(childComplexity int) int + CSVLike func(childComplexity int) int + Header func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Rows func(childComplexity int) int + SHA1 func(childComplexity int) int + Size func(childComplexity int) int + ValuesCount func(childComplexity int) int + ValuesUnique func(childComplexity int) int } FeedVersionGtfsImport struct { @@ -1148,17 +1152,21 @@ type TripResolver interface { } type executableSchema struct { + schema *ast.Schema resolvers ResolverRoot directives DirectiveRoot complexity ComplexityRoot } func (e *executableSchema) Schema() *ast.Schema { + if e.schema != nil { + return e.schema + } return parsedSchema } func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { - ec := executionContext{nil, e} + ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -2397,6 +2405,20 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.FeedVersionFileInfo.Size(childComplexity), true + case "FeedVersionFileInfo.values_count": + if e.complexity.FeedVersionFileInfo.ValuesCount == nil { + break + } + + return e.complexity.FeedVersionFileInfo.ValuesCount(childComplexity), true + + case "FeedVersionFileInfo.values_unique": + if e.complexity.FeedVersionFileInfo.ValuesUnique == nil { + break + } + + return e.complexity.FeedVersionFileInfo.ValuesUnique(childComplexity), true + case "FeedVersionGtfsImport.created_at": if e.complexity.FeedVersionGtfsImport.CreatedAt == nil { break @@ -6061,7 +6083,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e} + ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} inputUnmarshalMap := graphql.BuildUnmarshalerMap( ec.unmarshalInputAgencyFilter, ec.unmarshalInputAgencyPlaceFilter, @@ -6095,18 +6117,33 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { switch rc.Operation.Operation { case ast.Query: return func(ctx context.Context) *graphql.Response { - if !first { - return nil + var response graphql.Response + var data graphql.Marshaler + if first { + first = false + ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) + data = ec._Query(ctx, rc.Operation.SelectionSet) + } else { + if atomic.LoadInt32(&ec.pendingDeferred) > 0 { + result := <-ec.deferredResults + atomic.AddInt32(&ec.pendingDeferred, -1) + data = result.Result + response.Path = result.Path + response.Label = result.Label + response.Errors = result.Errors + } else { + return nil + } } - first = false - ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data := ec._Query(ctx, rc.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) - - return &graphql.Response{ - Data: buf.Bytes(), + response.Data = buf.Bytes() + if atomic.LoadInt32(&ec.deferred) > 0 { + hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 + response.HasNext = &hasNext } + + return &response } case ast.Mutation: return func(ctx context.Context) *graphql.Response { @@ -6132,20 +6169,42 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { type executionContext struct { *graphql.OperationContext *executableSchema + deferred int32 + pendingDeferred int32 + deferredResults chan graphql.DeferredResult +} + +func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { + atomic.AddInt32(&ec.pendingDeferred, 1) + go func() { + ctx := graphql.WithFreshResponseContext(dg.Context) + dg.FieldSet.Dispatch(ctx) + ds := graphql.DeferredResult{ + Path: dg.Path, + Label: dg.Label, + Result: dg.FieldSet, + Errors: graphql.GetErrors(ctx), + } + // null fields should bubble up + if dg.FieldSet.Invalids > 0 { + ds.Result = graphql.Null + } + ec.deferredResults <- ds + }() } func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { if ec.DisableIntrospection { return nil, errors.New("introspection disabled") } - return introspection.WrapSchema(parsedSchema), nil + return introspection.WrapSchema(ec.Schema()), nil } func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { if ec.DisableIntrospection { return nil, errors.New("introspection disabled") } - return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil + return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil } var sources = []*ast.Source{ @@ -6765,6 +6824,7 @@ input BoundingBox { max_lat: Float! }`, BuiltIn: false}, {Name: "../../../schema/schema.graphqls", Input: `# Scalar types +scalar Counts scalar Tags scalar Geometry scalar Time @@ -6966,6 +7026,8 @@ type FeedVersionFileInfo { header: String! csv_like: Boolean! size: Int! + values_count: Counts! + values_unique: Counts! } type FeedVersionGtfsImport { @@ -9956,7 +10018,7 @@ func (ec *executionContext) fieldContext_Agency_places(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Agency_places_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -10071,7 +10133,7 @@ func (ec *executionContext) fieldContext_Agency_routes(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Agency_routes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -10141,7 +10203,7 @@ func (ec *executionContext) fieldContext_Agency_census_geographies(ctx context.C ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Agency_census_geographies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -10213,7 +10275,7 @@ func (ec *executionContext) fieldContext_Agency_alerts(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Agency_alerts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -11409,7 +11471,7 @@ func (ec *executionContext) fieldContext_Calendar_added_dates(ctx context.Contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Calendar_added_dates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -11464,7 +11526,7 @@ func (ec *executionContext) fieldContext_Calendar_removed_dates(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Calendar_removed_dates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -11818,7 +11880,7 @@ func (ec *executionContext) fieldContext_CensusGeography_values(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_CensusGeography_values_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -13415,7 +13477,7 @@ func (ec *executionContext) fieldContext_Feed_feed_fetches(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Feed_feed_fetches_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -13514,7 +13576,7 @@ func (ec *executionContext) fieldContext_Feed_feed_versions(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Feed_feed_versions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -16035,6 +16097,10 @@ func (ec *executionContext) fieldContext_FeedVersion_files(ctx context.Context, return ec.fieldContext_FeedVersionFileInfo_csv_like(ctx, field) case "size": return ec.fieldContext_FeedVersionFileInfo_size(ctx, field) + case "values_count": + return ec.fieldContext_FeedVersionFileInfo_values_count(ctx, field) + case "values_unique": + return ec.fieldContext_FeedVersionFileInfo_values_unique(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type FeedVersionFileInfo", field.Name) }, @@ -16048,7 +16114,7 @@ func (ec *executionContext) fieldContext_FeedVersion_files(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -16125,7 +16191,7 @@ func (ec *executionContext) fieldContext_FeedVersion_service_levels(ctx context. ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_service_levels_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -16222,7 +16288,7 @@ func (ec *executionContext) fieldContext_FeedVersion_agencies(ctx context.Contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_agencies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -16337,7 +16403,7 @@ func (ec *executionContext) fieldContext_FeedVersion_routes(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_routes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -16462,7 +16528,7 @@ func (ec *executionContext) fieldContext_FeedVersion_stops(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -16555,7 +16621,7 @@ func (ec *executionContext) fieldContext_FeedVersion_trips(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_trips_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -16632,7 +16698,7 @@ func (ec *executionContext) fieldContext_FeedVersion_feed_infos(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_feed_infos_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -17203,6 +17269,94 @@ func (ec *executionContext) fieldContext_FeedVersionFileInfo_size(ctx context.Co return fc, nil } +func (ec *executionContext) _FeedVersionFileInfo_values_count(ctx context.Context, field graphql.CollectedField, obj *model.FeedVersionFileInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeedVersionFileInfo_values_count(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ValuesCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(tt.Counts) + fc.Result = res + return ec.marshalNCounts2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐCounts(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeedVersionFileInfo_values_count(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeedVersionFileInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Counts does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeedVersionFileInfo_values_unique(ctx context.Context, field graphql.CollectedField, obj *model.FeedVersionFileInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeedVersionFileInfo_values_unique(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ValuesUnique, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(tt.Counts) + fc.Result = res + return ec.marshalNCounts2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐCounts(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeedVersionFileInfo_values_unique(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeedVersionFileInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Counts does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _FeedVersionGtfsImport_id(ctx context.Context, field graphql.CollectedField, obj *model.FeedVersionGtfsImport) (ret graphql.Marshaler) { fc, err := ec.fieldContext_FeedVersionGtfsImport_id(ctx, field) if err != nil { @@ -27423,7 +27577,7 @@ func (ec *executionContext) fieldContext_Mutation_validate_gtfs(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_validate_gtfs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -27543,7 +27697,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_update(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_update_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -27629,7 +27783,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_fetch(ctx context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_fetch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -27712,7 +27866,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_import(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_import_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -27795,7 +27949,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_unimport(ctx cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_unimport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -27878,7 +28032,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_delete(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_delete_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -28420,7 +28574,7 @@ func (ec *executionContext) fieldContext_Operator_feeds(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Operator_feeds_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -29463,7 +29617,7 @@ func (ec *executionContext) fieldContext_Query_feed_versions(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_feed_versions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -29550,7 +29704,7 @@ func (ec *executionContext) fieldContext_Query_feeds(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_feeds_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -29647,7 +29801,7 @@ func (ec *executionContext) fieldContext_Query_agencies(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_agencies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -29762,7 +29916,7 @@ func (ec *executionContext) fieldContext_Query_routes(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_routes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -29887,7 +30041,7 @@ func (ec *executionContext) fieldContext_Query_stops(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -29980,7 +30134,7 @@ func (ec *executionContext) fieldContext_Query_trips(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_trips_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -30059,7 +30213,7 @@ func (ec *executionContext) fieldContext_Query_operators(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_operators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -30136,7 +30290,7 @@ func (ec *executionContext) fieldContext_Query_directions(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -30222,7 +30376,7 @@ func (ec *executionContext) fieldContext_Query_bikes(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_bikes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -30316,7 +30470,7 @@ func (ec *executionContext) fieldContext_Query_docks(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_docks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -30380,7 +30534,7 @@ func (ec *executionContext) fieldContext_Query_places(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_places_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -30508,7 +30662,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -32148,7 +32302,7 @@ func (ec *executionContext) fieldContext_Route_trips(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_trips_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -32273,7 +32427,7 @@ func (ec *executionContext) fieldContext_Route_stops(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -32344,7 +32498,7 @@ func (ec *executionContext) fieldContext_Route_route_stops(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_route_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -32415,7 +32569,7 @@ func (ec *executionContext) fieldContext_Route_headways(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_headways_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -32484,7 +32638,7 @@ func (ec *executionContext) fieldContext_Route_geometries(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_geometries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -32554,7 +32708,7 @@ func (ec *executionContext) fieldContext_Route_census_geographies(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_census_geographies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -32617,7 +32771,7 @@ func (ec *executionContext) fieldContext_Route_route_stop_buffer(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_route_stop_buffer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -32740,7 +32894,7 @@ func (ec *executionContext) fieldContext_Route_alerts(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_alerts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -34297,7 +34451,7 @@ func (ec *executionContext) fieldContext_RouteStopPattern_trips(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_RouteStopPattern_trips_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -35929,7 +36083,7 @@ func (ec *executionContext) fieldContext_Stop_observations(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_observations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36051,7 +36205,7 @@ func (ec *executionContext) fieldContext_Stop_children(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_children_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36122,7 +36276,7 @@ func (ec *executionContext) fieldContext_Stop_route_stops(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_route_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36205,7 +36359,7 @@ func (ec *executionContext) fieldContext_Stop_pathways_from_stop(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_pathways_from_stop_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36288,7 +36442,7 @@ func (ec *executionContext) fieldContext_Stop_pathways_to_stop(ctx context.Conte ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_pathways_to_stop_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36377,7 +36531,7 @@ func (ec *executionContext) fieldContext_Stop_stop_times(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_stop_times_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36466,7 +36620,7 @@ func (ec *executionContext) fieldContext_Stop_departures(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_departures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36555,7 +36709,7 @@ func (ec *executionContext) fieldContext_Stop_arrivals(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_arrivals_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36717,7 +36871,7 @@ func (ec *executionContext) fieldContext_Stop_census_geographies(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_census_geographies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36794,7 +36948,7 @@ func (ec *executionContext) fieldContext_Stop_directions(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_directions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36916,7 +37070,7 @@ func (ec *executionContext) fieldContext_Stop_nearby_stops(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_nearby_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -36988,7 +37142,7 @@ func (ec *executionContext) fieldContext_Stop_alerts(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_alerts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -39866,7 +40020,7 @@ func (ec *executionContext) fieldContext_Trip_stop_times(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Trip_stop_times_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -39933,7 +40087,7 @@ func (ec *executionContext) fieldContext_Trip_frequencies(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Trip_frequencies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -40087,7 +40241,7 @@ func (ec *executionContext) fieldContext_Trip_alerts(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Trip_alerts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -40556,6 +40710,10 @@ func (ec *executionContext) fieldContext_ValidationResult_files(ctx context.Cont return ec.fieldContext_FeedVersionFileInfo_csv_like(ctx, field) case "size": return ec.fieldContext_FeedVersionFileInfo_size(ctx, field) + case "values_count": + return ec.fieldContext_FeedVersionFileInfo_values_count(ctx, field) + case "values_unique": + return ec.fieldContext_FeedVersionFileInfo_values_unique(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type FeedVersionFileInfo", field.Name) }, @@ -40635,7 +40793,7 @@ func (ec *executionContext) fieldContext_ValidationResult_service_levels(ctx con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_service_levels_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -40732,7 +40890,7 @@ func (ec *executionContext) fieldContext_ValidationResult_agencies(ctx context.C ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_agencies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -40847,7 +41005,7 @@ func (ec *executionContext) fieldContext_ValidationResult_routes(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_routes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -40972,7 +41130,7 @@ func (ec *executionContext) fieldContext_ValidationResult_stops(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -41049,7 +41207,7 @@ func (ec *executionContext) fieldContext_ValidationResult_feed_infos(ctx context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_feed_infos_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -43514,7 +43672,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -43702,7 +43860,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -43884,122 +44042,137 @@ func (ec *executionContext) unmarshalInputAgencyFilter(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.OnestopID = data case "feed_version_sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_sha1")) - it.FeedVersionSha1, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedVersionSha1 = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedOnestopID = data case "agency_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_id")) - it.AgencyID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.AgencyID = data case "agency_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_name")) - it.AgencyName, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.AgencyName = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } + it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } + it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } + it.Near = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Search = data case "city_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("city_name")) - it.CityName, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.CityName = data case "adm0_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_name")) - it.Adm0Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm0Name = data case "adm1_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_name")) - it.Adm1Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm1Name = data case "adm0_iso": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_iso")) - it.Adm0Iso, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm0Iso = data case "adm1_iso": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_iso")) - it.Adm1Iso, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm1Iso = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } + it.License = data } } @@ -44024,10 +44197,11 @@ func (ec *executionContext) unmarshalInputAgencyPlaceFilter(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min_rank")) - it.MinRank, err = ec.unmarshalOFloat2ᚖfloat64(ctx, v) + data, err := ec.unmarshalOFloat2ᚖfloat64(ctx, v) if err != nil { return it, err } + it.MinRank = data } } @@ -44052,34 +44226,38 @@ func (ec *executionContext) unmarshalInputBoundingBox(ctx context.Context, obj i var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min_lon")) - it.MinLon, err = ec.unmarshalNFloat2float64(ctx, v) + data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } + it.MinLon = data case "min_lat": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min_lat")) - it.MinLat, err = ec.unmarshalNFloat2float64(ctx, v) + data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } + it.MinLat = data case "max_lon": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max_lon")) - it.MaxLon, err = ec.unmarshalNFloat2float64(ctx, v) + data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } + it.MaxLon = data case "max_lat": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max_lat")) - it.MaxLat, err = ec.unmarshalNFloat2float64(ctx, v) + data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } + it.MaxLat = data } } @@ -44104,18 +44282,20 @@ func (ec *executionContext) unmarshalInputCalendarDateFilter(ctx context.Context var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("date")) - it.Date, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } + it.Date = data case "exception_type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exception_type")) - it.ExceptionType, err = ec.unmarshalOInt2ᚖint(ctx, v) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } + it.ExceptionType = data } } @@ -44140,34 +44320,38 @@ func (ec *executionContext) unmarshalInputDirectionRequest(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("to")) - it.To, err = ec.unmarshalNWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, v) + data, err := ec.unmarshalNWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, v) if err != nil { return it, err } + it.To = data case "from": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("from")) - it.From, err = ec.unmarshalNWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, v) + data, err := ec.unmarshalNWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, v) if err != nil { return it, err } + it.From = data case "mode": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mode")) - it.Mode, err = ec.unmarshalNStepMode2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStepMode(ctx, v) + data, err := ec.unmarshalNStepMode2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStepMode(ctx, v) if err != nil { return it, err } + it.Mode = data case "depart_at": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("depart_at")) - it.DepartAt, err = ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } + it.DepartAt = data } } @@ -44192,10 +44376,11 @@ func (ec *executionContext) unmarshalInputFeedFetchFilter(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("success")) - it.Success, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.Success = data } } @@ -44220,90 +44405,101 @@ func (ec *executionContext) unmarshalInputFeedFilter(ctx context.Context, obj in var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.OnestopID = data case "spec": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) - it.Spec, err = ec.unmarshalOFeedSpecTypes2ᚕgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSpecTypesᚄ(ctx, v) + data, err := ec.unmarshalOFeedSpecTypes2ᚕgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSpecTypesᚄ(ctx, v) if err != nil { return it, err } + it.Spec = data case "fetch_error": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fetch_error")) - it.FetchError, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.FetchError = data case "import_status": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import_status")) - it.ImportStatus, err = ec.unmarshalOImportStatus2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐImportStatus(ctx, v) + data, err := ec.unmarshalOImportStatus2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐImportStatus(ctx, v) if err != nil { return it, err } + it.ImportStatus = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Search = data case "tags": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) - it.Tags, err = ec.unmarshalOTags2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐTags(ctx, v) + data, err := ec.unmarshalOTags2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐTags(ctx, v) if err != nil { return it, err } + it.Tags = data case "source_url": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source_url")) - it.SourceURL, err = ec.unmarshalOFeedSourceUrl2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSourceURL(ctx, v) + data, err := ec.unmarshalOFeedSourceUrl2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSourceURL(ctx, v) if err != nil { return it, err } + it.SourceURL = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } + it.License = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } + it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } + it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } + it.Near = data } } @@ -44328,26 +44524,29 @@ func (ec *executionContext) unmarshalInputFeedSourceUrl(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - it.URL, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.URL = data case "type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - it.Type, err = ec.unmarshalOFeedSourceUrlTypes2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSourceURLTypes(ctx, v) + data, err := ec.unmarshalOFeedSourceUrlTypes2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSourceURLTypes(ctx, v) if err != nil { return it, err } + it.Type = data case "case_sensitive": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("case_sensitive")) - it.CaseSensitive, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.CaseSensitive = data } } @@ -44372,74 +44571,83 @@ func (ec *executionContext) unmarshalInputFeedVersionFilter(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import_status")) - it.ImportStatus, err = ec.unmarshalOImportStatus2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐImportStatus(ctx, v) + data, err := ec.unmarshalOImportStatus2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐImportStatus(ctx, v) if err != nil { return it, err } + it.ImportStatus = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedOnestopID = data case "sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sha1")) - it.Sha1, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Sha1 = data case "file": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - it.File, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.File = data case "feed_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_ids")) - it.FeedIds, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } + it.FeedIds = data case "covers": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("covers")) - it.Covers, err = ec.unmarshalOServiceCoversFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐServiceCoversFilter(ctx, v) + data, err := ec.unmarshalOServiceCoversFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐServiceCoversFilter(ctx, v) if err != nil { return it, err } + it.Covers = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } + it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } + it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } + it.Near = data } } @@ -44464,18 +44672,20 @@ func (ec *executionContext) unmarshalInputFeedVersionServiceLevelFilter(ctx cont var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_date")) - it.StartDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } + it.StartDate = data case "end_date": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_date")) - it.EndDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } + it.EndDate = data } } @@ -44500,18 +44710,20 @@ func (ec *executionContext) unmarshalInputFeedVersionSetInput(ctx context.Contex var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Name = data case "description": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Description = data } } @@ -44536,10 +44748,11 @@ func (ec *executionContext) unmarshalInputGbfsBikeRequest(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } + it.Near = data } } @@ -44564,10 +44777,11 @@ func (ec *executionContext) unmarshalInputGbfsDockRequest(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } + it.Near = data } } @@ -44592,42 +44806,47 @@ func (ec *executionContext) unmarshalInputLicenseFilter(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("share_alike_optional")) - it.ShareAlikeOptional, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } + it.ShareAlikeOptional = data case "create_derived_product": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("create_derived_product")) - it.CreateDerivedProduct, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } + it.CreateDerivedProduct = data case "commercial_use_allowed": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("commercial_use_allowed")) - it.CommercialUseAllowed, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } + it.CommercialUseAllowed = data case "use_without_attribution": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("use_without_attribution")) - it.UseWithoutAttribution, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } + it.UseWithoutAttribution = data case "redistribution_allowed": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redistribution_allowed")) - it.RedistributionAllowed, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } + it.RedistributionAllowed = data } } @@ -44652,122 +44871,137 @@ func (ec *executionContext) unmarshalInputOperatorFilter(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("merged")) - it.Merged, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.Merged = data case "onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.OnestopID = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedOnestopID = data case "agency_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_id")) - it.AgencyID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.AgencyID = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Search = data case "tags": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) - it.Tags, err = ec.unmarshalOTags2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐTags(ctx, v) + data, err := ec.unmarshalOTags2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐTags(ctx, v) if err != nil { return it, err } + it.Tags = data case "city_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("city_name")) - it.CityName, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.CityName = data case "adm0_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_name")) - it.Adm0Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm0Name = data case "adm1_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_name")) - it.Adm1Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm1Name = data case "adm0_iso": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_iso")) - it.Adm0Iso, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm0Iso = data case "adm1_iso": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_iso")) - it.Adm1Iso, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm1Iso = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } + it.License = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } + it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } + it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } + it.Near = data } } @@ -44792,10 +45026,11 @@ func (ec *executionContext) unmarshalInputPathwayFilter(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pathway_mode")) - it.PathwayMode, err = ec.unmarshalOInt2ᚖint(ctx, v) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } + it.PathwayMode = data } } @@ -44820,34 +45055,38 @@ func (ec *executionContext) unmarshalInputPlaceFilter(ctx context.Context, obj i var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min_rank")) - it.MinRank, err = ec.unmarshalOFloat2ᚖfloat64(ctx, v) + data, err := ec.unmarshalOFloat2ᚖfloat64(ctx, v) if err != nil { return it, err } + it.MinRank = data case "adm0_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_name")) - it.Adm0Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm0Name = data case "adm1_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_name")) - it.Adm1Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Adm1Name = data case "city_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("city_name")) - it.CityName, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.CityName = data } } @@ -44872,26 +45111,29 @@ func (ec *executionContext) unmarshalInputPointRadius(ctx context.Context, obj i var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lat")) - it.Lat, err = ec.unmarshalNFloat2float64(ctx, v) + data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } + it.Lat = data case "lon": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lon")) - it.Lon, err = ec.unmarshalNFloat2float64(ctx, v) + data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } + it.Lon = data case "radius": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) - it.Radius, err = ec.unmarshalNFloat2float64(ctx, v) + data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } + it.Radius = data } } @@ -44916,122 +45158,137 @@ func (ec *executionContext) unmarshalInputRouteFilter(ctx context.Context, obj i var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.OnestopID = data case "onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_ids")) - it.OnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.OnestopIds = data case "allow_previous_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allow_previous_onestop_ids")) - it.AllowPreviousOnestopIds, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.AllowPreviousOnestopIds = data case "feed_version_sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_sha1")) - it.FeedVersionSha1, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedVersionSha1 = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedOnestopID = data case "route_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_id")) - it.RouteID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.RouteID = data case "route_type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_type")) - it.RouteType, err = ec.unmarshalOInt2ᚖint(ctx, v) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } + it.RouteType = data case "serviced": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviced")) - it.Serviced, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.Serviced = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } + it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } + it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } + it.Near = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Search = data case "operator_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator_onestop_id")) - it.OperatorOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.OperatorOnestopID = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } + it.License = data case "agency_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_ids")) - it.AgencyIds, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } + it.AgencyIds = data } } @@ -45056,34 +45313,38 @@ func (ec *executionContext) unmarshalInputServiceCoversFilter(ctx context.Contex var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_date")) - it.StartDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } + it.StartDate = data case "end_date": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_date")) - it.EndDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } + it.EndDate = data case "fetched_after": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fetched_after")) - it.FetchedAfter, err = ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } + it.FetchedAfter = data case "fetched_before": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fetched_before")) - it.FetchedBefore, err = ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } + it.FetchedBefore = data } } @@ -45108,138 +45369,155 @@ func (ec *executionContext) unmarshalInputStopFilter(ctx context.Context, obj in var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.OnestopID = data case "onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_ids")) - it.OnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.OnestopIds = data case "allow_previous_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allow_previous_onestop_ids")) - it.AllowPreviousOnestopIds, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.AllowPreviousOnestopIds = data case "feed_version_sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_sha1")) - it.FeedVersionSha1, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedVersionSha1 = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedOnestopID = data case "stop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stop_id")) - it.StopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.StopID = data case "stop_code": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stop_code")) - it.StopCode, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.StopCode = data case "location_type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location_type")) - it.LocationType, err = ec.unmarshalOInt2ᚖint(ctx, v) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } + it.LocationType = data case "serviced": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviced")) - it.Serviced, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.Serviced = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } + it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } + it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } + it.Near = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Search = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } + it.License = data case "served_by_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("served_by_onestop_ids")) - it.ServedByOnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.ServedByOnestopIds = data case "served_by_route_type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("served_by_route_type")) - it.ServedByRouteType, err = ec.unmarshalOInt2ᚖint(ctx, v) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } + it.ServedByRouteType = data case "agency_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_ids")) - it.AgencyIds, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } + it.AgencyIds = data } } @@ -45264,26 +45542,29 @@ func (ec *executionContext) unmarshalInputStopObservationFilter(ctx context.Cont var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) - it.Source, err = ec.unmarshalNString2string(ctx, v) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } + it.Source = data case "feed_version_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_id")) - it.FeedVersionID, err = ec.unmarshalNInt2int(ctx, v) + data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { return it, err } + it.FeedVersionID = data case "trip_start_date": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trip_start_date")) - it.TripStartDate, err = ec.unmarshalNDate2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + data, err := ec.unmarshalNDate2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } + it.TripStartDate = data } } @@ -45308,90 +45589,101 @@ func (ec *executionContext) unmarshalInputStopTimeFilter(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("service_date")) - it.ServiceDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } + it.ServiceDate = data case "use_service_window": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("use_service_window")) - it.UseServiceWindow, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.UseServiceWindow = data case "start_time": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_time")) - it.StartTime, err = ec.unmarshalOInt2ᚖint(ctx, v) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } + it.StartTime = data case "end_time": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_time")) - it.EndTime, err = ec.unmarshalOInt2ᚖint(ctx, v) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } + it.EndTime = data case "start": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start")) - it.Start, err = ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) + data, err := ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) if err != nil { return it, err } + it.Start = data case "end": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end")) - it.End, err = ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) + data, err := ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) if err != nil { return it, err } + it.End = data case "next": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("next")) - it.Next, err = ec.unmarshalOInt2ᚖint(ctx, v) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } + it.Next = data case "route_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_onestop_ids")) - it.RouteOnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.RouteOnestopIds = data case "allow_previous_route_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allow_previous_route_onestop_ids")) - it.AllowPreviousRouteOnestopIds, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.AllowPreviousRouteOnestopIds = data case "exclude_first": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exclude_first")) - it.ExcludeFirst, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.ExcludeFirst = data case "exclude_last": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exclude_last")) - it.ExcludeLast, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } + it.ExcludeLast = data } } @@ -45416,66 +45708,74 @@ func (ec *executionContext) unmarshalInputTripFilter(ctx context.Context, obj in var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("service_date")) - it.ServiceDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } + it.ServiceDate = data case "trip_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trip_id")) - it.TripID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.TripID = data case "stop_pattern_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stop_pattern_id")) - it.StopPatternID, err = ec.unmarshalOInt2ᚖint(ctx, v) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } + it.StopPatternID = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } + it.License = data case "route_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_ids")) - it.RouteIds, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } + it.RouteIds = data case "route_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_onestop_ids")) - it.RouteOnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } + it.RouteOnestopIds = data case "feed_version_sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_sha1")) - it.FeedVersionSha1, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedVersionSha1 = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.FeedOnestopID = data } } @@ -45500,18 +45800,20 @@ func (ec *executionContext) unmarshalInputTripStopTimeFilter(ctx context.Context var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start")) - it.Start, err = ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) + data, err := ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) if err != nil { return it, err } + it.Start = data case "end": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end")) - it.End, err = ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) + data, err := ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) if err != nil { return it, err } + it.End = data } } @@ -45536,26 +45838,29 @@ func (ec *executionContext) unmarshalInputWaypointInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lon")) - it.Lon, err = ec.unmarshalNFloat2float64(ctx, v) + data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } + it.Lon = data case "lat": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lat")) - it.Lat, err = ec.unmarshalNFloat2float64(ctx, v) + data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } + it.Lat = data case "name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } + it.Name = data } } @@ -45574,94 +45879,71 @@ var agencyImplementors = []string{"Agency"} func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, obj *model.Agency) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, agencyImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Agency") case "id": - out.Values[i] = ec._Agency_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "onestop_id": - out.Values[i] = ec._Agency_onestop_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "agency_email": - out.Values[i] = ec._Agency_agency_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "agency_fare_url": - out.Values[i] = ec._Agency_agency_fare_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "agency_id": - out.Values[i] = ec._Agency_agency_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "agency_lang": - out.Values[i] = ec._Agency_agency_lang(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "agency_name": - out.Values[i] = ec._Agency_agency_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "agency_phone": - out.Values[i] = ec._Agency_agency_phone(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "agency_timezone": - out.Values[i] = ec._Agency_agency_timezone(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "agency_url": - out.Values[i] = ec._Agency_agency_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "feed_version_sha1": - out.Values[i] = ec._Agency_feed_version_sha1(ctx, field, obj) - case "feed_onestop_id": - out.Values[i] = ec._Agency_feed_onestop_id(ctx, field, obj) - case "feed_version": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45669,27 +45951,39 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o }() res = ec._Agency_feed_version(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "geometry": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "geometry": out.Values[i] = ec._Agency_geometry(ctx, field, obj) - case "search_rank": - out.Values[i] = ec._Agency_search_rank(ctx, field, obj) - case "operator": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45699,14 +45993,30 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "places": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45716,14 +46026,30 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "routes": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45731,19 +46057,35 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o }() res = ec._Agency_routes(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "census_geographies": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45753,14 +46095,30 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "alerts": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45770,18 +46128,46 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -45789,44 +46175,45 @@ var agencyPlaceImplementors = []string{"AgencyPlace"} func (ec *executionContext) _AgencyPlace(ctx context.Context, sel ast.SelectionSet, obj *model.AgencyPlace) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, agencyPlaceImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("AgencyPlace") case "city_name": - out.Values[i] = ec._AgencyPlace_city_name(ctx, field, obj) - case "adm0_name": - out.Values[i] = ec._AgencyPlace_adm0_name(ctx, field, obj) - case "adm1_name": - out.Values[i] = ec._AgencyPlace_adm1_name(ctx, field, obj) - case "adm0_iso": - out.Values[i] = ec._AgencyPlace_adm0_iso(ctx, field, obj) - case "adm1_iso": - out.Values[i] = ec._AgencyPlace_adm1_iso(ctx, field, obj) - case "rank": - out.Values[i] = ec._AgencyPlace_rank(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -45834,62 +46221,57 @@ var alertImplementors = []string{"Alert"} func (ec *executionContext) _Alert(ctx context.Context, sel ast.SelectionSet, obj *model.Alert) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, alertImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Alert") case "active_period": - out.Values[i] = ec._Alert_active_period(ctx, field, obj) - case "cause": - out.Values[i] = ec._Alert_cause(ctx, field, obj) - case "effect": - out.Values[i] = ec._Alert_effect(ctx, field, obj) - case "header_text": - out.Values[i] = ec._Alert_header_text(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description_text": - out.Values[i] = ec._Alert_description_text(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "tts_header_text": - out.Values[i] = ec._Alert_tts_header_text(ctx, field, obj) - case "tts_description_text": - out.Values[i] = ec._Alert_tts_description_text(ctx, field, obj) - case "url": - out.Values[i] = ec._Alert_url(ctx, field, obj) - case "severity_level": - out.Values[i] = ec._Alert_severity_level(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -45897,30 +46279,27 @@ var calendarImplementors = []string{"Calendar"} func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, obj *model.Calendar) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, calendarImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Calendar") case "id": - out.Values[i] = ec._Calendar_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "service_id": - out.Values[i] = ec._Calendar_service_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "start_date": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45928,19 +46307,35 @@ func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, }() res = ec._Calendar_start_date(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "end_date": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45948,68 +46343,70 @@ func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, }() res = ec._Calendar_end_date(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "monday": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "monday": out.Values[i] = ec._Calendar_monday(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "tuesday": - out.Values[i] = ec._Calendar_tuesday(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "wednesday": - out.Values[i] = ec._Calendar_wednesday(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "thursday": - out.Values[i] = ec._Calendar_thursday(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "friday": - out.Values[i] = ec._Calendar_friday(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "saturday": - out.Values[i] = ec._Calendar_saturday(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "sunday": - out.Values[i] = ec._Calendar_sunday(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "added_dates": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46017,19 +46414,35 @@ func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, }() res = ec._Calendar_added_dates(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "removed_dates": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46037,23 +46450,51 @@ func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, }() res = ec._Calendar_removed_dates(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46061,50 +46502,37 @@ var censusGeographyImplementors = []string{"CensusGeography"} func (ec *executionContext) _CensusGeography(ctx context.Context, sel ast.SelectionSet, obj *model.CensusGeography) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, censusGeographyImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("CensusGeography") case "id": - out.Values[i] = ec._CensusGeography_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "layer_name": - out.Values[i] = ec._CensusGeography_layer_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "geoid": - out.Values[i] = ec._CensusGeography_geoid(ctx, field, obj) - case "name": - out.Values[i] = ec._CensusGeography_name(ctx, field, obj) - case "aland": - out.Values[i] = ec._CensusGeography_aland(ctx, field, obj) - case "awater": - out.Values[i] = ec._CensusGeography_awater(ctx, field, obj) - case "geometry": - out.Values[i] = ec._CensusGeography_geometry(ctx, field, obj) - case "values": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46112,23 +46540,51 @@ func (ec *executionContext) _CensusGeography(ctx context.Context, sel ast.Select }() res = ec._CensusGeography_values(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46136,48 +46592,53 @@ var censusTableImplementors = []string{"CensusTable"} func (ec *executionContext) _CensusTable(ctx context.Context, sel ast.SelectionSet, obj *model.CensusTable) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, censusTableImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("CensusTable") case "id": - out.Values[i] = ec._CensusTable_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "table_name": - out.Values[i] = ec._CensusTable_table_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "table_title": - out.Values[i] = ec._CensusTable_table_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "table_group": - out.Values[i] = ec._CensusTable_table_group(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46185,8 +46646,9 @@ var censusValueImplementors = []string{"CensusValue"} func (ec *executionContext) _CensusValue(ctx context.Context, sel ast.SelectionSet, obj *model.CensusValue) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, censusValueImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -46194,7 +46656,7 @@ func (ec *executionContext) _CensusValue(ctx context.Context, sel ast.SelectionS case "table": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46202,19 +46664,35 @@ func (ec *executionContext) _CensusValue(ctx context.Context, sel ast.SelectionS }() res = ec._CensusValue_table(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "values": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46222,23 +46700,51 @@ func (ec *executionContext) _CensusValue(ctx context.Context, sel ast.SelectionS }() res = ec._CensusValue_values(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46246,63 +46752,56 @@ var directionsImplementors = []string{"Directions"} func (ec *executionContext) _Directions(ctx context.Context, sel ast.SelectionSet, obj *model.Directions) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, directionsImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Directions") case "success": - out.Values[i] = ec._Directions_success(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "exception": - out.Values[i] = ec._Directions_exception(ctx, field, obj) - case "data_source": - out.Values[i] = ec._Directions_data_source(ctx, field, obj) - case "origin": - out.Values[i] = ec._Directions_origin(ctx, field, obj) - case "destination": - out.Values[i] = ec._Directions_destination(ctx, field, obj) - case "duration": - out.Values[i] = ec._Directions_duration(ctx, field, obj) - case "distance": - out.Values[i] = ec._Directions_distance(ctx, field, obj) - case "start_time": - out.Values[i] = ec._Directions_start_time(ctx, field, obj) - case "end_time": - out.Values[i] = ec._Directions_end_time(ctx, field, obj) - case "itineraries": - out.Values[i] = ec._Directions_itineraries(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46310,34 +46809,43 @@ var distanceImplementors = []string{"Distance"} func (ec *executionContext) _Distance(ctx context.Context, sel ast.SelectionSet, obj *model.Distance) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, distanceImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Distance") case "distance": - out.Values[i] = ec._Distance_distance(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "units": - out.Values[i] = ec._Distance_units(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46345,34 +46853,43 @@ var durationImplementors = []string{"Duration"} func (ec *executionContext) _Duration(ctx context.Context, sel ast.SelectionSet, obj *model.Duration) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, durationImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Duration") case "duration": - out.Values[i] = ec._Duration_duration(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "units": - out.Values[i] = ec._Duration_units(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46380,41 +46897,34 @@ var feedImplementors = []string{"Feed"} func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj *model.Feed) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Feed") case "id": - out.Values[i] = ec._Feed_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "onestop_id": - out.Values[i] = ec._Feed_onestop_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "name": - out.Values[i] = ec._Feed_name(ctx, field, obj) - case "file": - out.Values[i] = ec._Feed_file(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "spec": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46424,14 +46934,30 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "languages": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46441,18 +46967,32 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "tags": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "tags": out.Values[i] = ec._Feed_tags(ctx, field, obj) - case "authorization": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46462,14 +47002,30 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "urls": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46479,14 +47035,30 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "license": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46496,18 +47068,32 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "search_rank": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "search_rank": out.Values[i] = ec._Feed_search_rank(ctx, field, obj) - case "associated_operators": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46517,14 +47103,30 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "feed_state": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46534,14 +47136,30 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "feed_fetches": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46551,14 +47169,30 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "feed_versions": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46566,23 +47200,51 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Feed_feed_versions(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46590,41 +47252,48 @@ var feedAuthorizationImplementors = []string{"FeedAuthorization"} func (ec *executionContext) _FeedAuthorization(ctx context.Context, sel ast.SelectionSet, obj *model.FeedAuthorization) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedAuthorizationImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedAuthorization") case "type": - out.Values[i] = ec._FeedAuthorization_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "param_name": - out.Values[i] = ec._FeedAuthorization_param_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "info_url": - out.Values[i] = ec._FeedAuthorization_info_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46632,59 +47301,54 @@ var feedFetchImplementors = []string{"FeedFetch"} func (ec *executionContext) _FeedFetch(ctx context.Context, sel ast.SelectionSet, obj *model.FeedFetch) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedFetchImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedFetch") case "id": - out.Values[i] = ec._FeedFetch_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "url_type": - out.Values[i] = ec._FeedFetch_url_type(ctx, field, obj) - case "url": - out.Values[i] = ec._FeedFetch_url(ctx, field, obj) - case "success": - out.Values[i] = ec._FeedFetch_success(ctx, field, obj) - case "fetched_at": - out.Values[i] = ec._FeedFetch_fetched_at(ctx, field, obj) - case "fetch_error": - out.Values[i] = ec._FeedFetch_fetch_error(ctx, field, obj) - case "response_size": - out.Values[i] = ec._FeedFetch_response_size(ctx, field, obj) - case "response_code": - out.Values[i] = ec._FeedFetch_response_code(ctx, field, obj) - case "response_sha1": - out.Values[i] = ec._FeedFetch_response_sha1(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46692,75 +47356,68 @@ var feedInfoImplementors = []string{"FeedInfo"} func (ec *executionContext) _FeedInfo(ctx context.Context, sel ast.SelectionSet, obj *model.FeedInfo) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedInfoImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedInfo") case "id": - out.Values[i] = ec._FeedInfo_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "feed_publisher_name": - out.Values[i] = ec._FeedInfo_feed_publisher_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "feed_publisher_url": - out.Values[i] = ec._FeedInfo_feed_publisher_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "feed_lang": - out.Values[i] = ec._FeedInfo_feed_lang(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "default_lang": - out.Values[i] = ec._FeedInfo_default_lang(ctx, field, obj) - case "feed_version": - out.Values[i] = ec._FeedInfo_feed_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "feed_start_date": - out.Values[i] = ec._FeedInfo_feed_start_date(ctx, field, obj) - case "feed_end_date": - out.Values[i] = ec._FeedInfo_feed_end_date(ctx, field, obj) - case "feed_contact_email": - out.Values[i] = ec._FeedInfo_feed_contact_email(ctx, field, obj) - case "feed_contact_url": - out.Values[i] = ec._FeedInfo_feed_contact_url(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46768,83 +47425,78 @@ var feedLicenseImplementors = []string{"FeedLicense"} func (ec *executionContext) _FeedLicense(ctx context.Context, sel ast.SelectionSet, obj *model.FeedLicense) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedLicenseImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedLicense") case "spdx_identifier": - out.Values[i] = ec._FeedLicense_spdx_identifier(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "url": - out.Values[i] = ec._FeedLicense_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "use_without_attribution": - out.Values[i] = ec._FeedLicense_use_without_attribution(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "create_derived_product": - out.Values[i] = ec._FeedLicense_create_derived_product(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "redistribution_allowed": - out.Values[i] = ec._FeedLicense_redistribution_allowed(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "commercial_use_allowed": - out.Values[i] = ec._FeedLicense_commercial_use_allowed(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "share_alike_optional": - out.Values[i] = ec._FeedLicense_share_alike_optional(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "attribution_text": - out.Values[i] = ec._FeedLicense_attribution_text(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "attribution_instructions": - out.Values[i] = ec._FeedLicense_attribution_instructions(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46852,23 +47504,22 @@ var feedStateImplementors = []string{"FeedState"} func (ec *executionContext) _FeedState(ctx context.Context, sel ast.SelectionSet, obj *model.FeedState) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedStateImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedState") case "id": - out.Values[i] = ec._FeedState_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "feed_version": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46878,18 +47529,46 @@ func (ec *executionContext) _FeedState(ctx context.Context, sel ast.SelectionSet return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46897,76 +47576,73 @@ var feedUrlsImplementors = []string{"FeedUrls"} func (ec *executionContext) _FeedUrls(ctx context.Context, sel ast.SelectionSet, obj *model.FeedUrls) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedUrlsImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedUrls") case "static_current": - out.Values[i] = ec._FeedUrls_static_current(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "static_historic": - out.Values[i] = ec._FeedUrls_static_historic(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "static_planned": - out.Values[i] = ec._FeedUrls_static_planned(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "realtime_vehicle_positions": - out.Values[i] = ec._FeedUrls_realtime_vehicle_positions(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "realtime_trip_updates": - out.Values[i] = ec._FeedUrls_realtime_trip_updates(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "realtime_alerts": - out.Values[i] = ec._FeedUrls_realtime_alerts(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "gbfs_auto_discovery": - out.Values[i] = ec._FeedUrls_gbfs_auto_discovery(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "mds_provider": - out.Values[i] = ec._FeedUrls_mds_provider(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -46974,78 +47650,57 @@ var feedVersionImplementors = []string{"FeedVersion"} func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersion) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersion") case "id": - out.Values[i] = ec._FeedVersion_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "sha1": - out.Values[i] = ec._FeedVersion_sha1(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "fetched_at": - out.Values[i] = ec._FeedVersion_fetched_at(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "url": - out.Values[i] = ec._FeedVersion_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "earliest_calendar_date": - out.Values[i] = ec._FeedVersion_earliest_calendar_date(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "latest_calendar_date": - out.Values[i] = ec._FeedVersion_latest_calendar_date(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "created_by": - out.Values[i] = ec._FeedVersion_created_by(ctx, field, obj) - case "updated_by": - out.Values[i] = ec._FeedVersion_updated_by(ctx, field, obj) - case "name": - out.Values[i] = ec._FeedVersion_name(ctx, field, obj) - case "description": - out.Values[i] = ec._FeedVersion_description(ctx, field, obj) - case "file": - out.Values[i] = ec._FeedVersion_file(ctx, field, obj) - case "geometry": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47055,14 +47710,30 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "feed": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47070,19 +47741,35 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_feed(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "feed_version_gtfs_import": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47092,14 +47779,30 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "files": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47107,19 +47810,35 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_files(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "service_levels": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47127,19 +47846,35 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_service_levels(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "agencies": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47147,19 +47882,35 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_agencies(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "routes": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47167,19 +47918,35 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_routes(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "stops": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47187,19 +47954,35 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_stops(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "trips": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47207,19 +47990,35 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_trips(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "feed_infos": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47227,23 +48026,51 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_feed_infos(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47251,27 +48078,38 @@ var feedVersionDeleteResultImplementors = []string{"FeedVersionDeleteResult"} func (ec *executionContext) _FeedVersionDeleteResult(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionDeleteResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionDeleteResultImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionDeleteResult") case "success": - out.Values[i] = ec._FeedVersionDeleteResult_success(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47279,42 +48117,47 @@ var feedVersionFetchResultImplementors = []string{"FeedVersionFetchResult"} func (ec *executionContext) _FeedVersionFetchResult(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionFetchResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionFetchResultImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionFetchResult") case "feed_version": - out.Values[i] = ec._FeedVersionFetchResult_feed_version(ctx, field, obj) - case "fetch_error": - out.Values[i] = ec._FeedVersionFetchResult_fetch_error(ctx, field, obj) - case "found_sha1": - out.Values[i] = ec._FeedVersionFetchResult_found_sha1(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "found_dir_sha1": - out.Values[i] = ec._FeedVersionFetchResult_found_dir_sha1(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47322,69 +48165,78 @@ var feedVersionFileInfoImplementors = []string{"FeedVersionFileInfo"} func (ec *executionContext) _FeedVersionFileInfo(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionFileInfo) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionFileInfoImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionFileInfo") case "id": - out.Values[i] = ec._FeedVersionFileInfo_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": - out.Values[i] = ec._FeedVersionFileInfo_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "rows": - out.Values[i] = ec._FeedVersionFileInfo_rows(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "sha1": - out.Values[i] = ec._FeedVersionFileInfo_sha1(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "header": - out.Values[i] = ec._FeedVersionFileInfo_header(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "csv_like": - out.Values[i] = ec._FeedVersionFileInfo_csv_like(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "size": - out.Values[i] = ec._FeedVersionFileInfo_size(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ + } + case "values_count": + out.Values[i] = ec._FeedVersionFileInfo_values_count(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "values_unique": + out.Values[i] = ec._FeedVersionFileInfo_values_unique(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47392,51 +48244,42 @@ var feedVersionGtfsImportImplementors = []string{"FeedVersionGtfsImport"} func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionGtfsImport) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionGtfsImportImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionGtfsImport") case "id": - out.Values[i] = ec._FeedVersionGtfsImport_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "in_progress": - out.Values[i] = ec._FeedVersionGtfsImport_in_progress(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "success": - out.Values[i] = ec._FeedVersionGtfsImport_success(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "schedule_removed": - out.Values[i] = ec._FeedVersionGtfsImport_schedule_removed(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "exception_log": - out.Values[i] = ec._FeedVersionGtfsImport_exception_log(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "skip_entity_error_count": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47446,14 +48289,30 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "entity_count": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47463,14 +48322,30 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "warning_count": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47480,22 +48355,34 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "created_at": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "created_at": out.Values[i] = ec._FeedVersionGtfsImport_created_at(ctx, field, obj) - case "updated_at": - out.Values[i] = ec._FeedVersionGtfsImport_updated_at(ctx, field, obj) - case "skip_entity_reference_count": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47505,14 +48392,30 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "skip_entity_filter_count": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47522,14 +48425,30 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "skip_entity_marked_count": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47539,22 +48458,48 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "interpolated_stop_time_count": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "interpolated_stop_time_count": out.Values[i] = ec._FeedVersionGtfsImport_interpolated_stop_time_count(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47562,27 +48507,38 @@ var feedVersionImportResultImplementors = []string{"FeedVersionImportResult"} func (ec *executionContext) _FeedVersionImportResult(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionImportResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionImportResultImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionImportResult") case "success": - out.Values[i] = ec._FeedVersionImportResult_success(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47590,90 +48546,83 @@ var feedVersionServiceLevelImplementors = []string{"FeedVersionServiceLevel"} func (ec *executionContext) _FeedVersionServiceLevel(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionServiceLevel) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionServiceLevelImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionServiceLevel") case "id": - out.Values[i] = ec._FeedVersionServiceLevel_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "start_date": - out.Values[i] = ec._FeedVersionServiceLevel_start_date(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "end_date": - out.Values[i] = ec._FeedVersionServiceLevel_end_date(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "monday": - out.Values[i] = ec._FeedVersionServiceLevel_monday(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "tuesday": - out.Values[i] = ec._FeedVersionServiceLevel_tuesday(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "wednesday": - out.Values[i] = ec._FeedVersionServiceLevel_wednesday(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "thursday": - out.Values[i] = ec._FeedVersionServiceLevel_thursday(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "friday": - out.Values[i] = ec._FeedVersionServiceLevel_friday(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "saturday": - out.Values[i] = ec._FeedVersionServiceLevel_saturday(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "sunday": - out.Values[i] = ec._FeedVersionServiceLevel_sunday(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47681,27 +48630,38 @@ var feedVersionUnimportResultImplementors = []string{"FeedVersionUnimportResult" func (ec *executionContext) _FeedVersionUnimportResult(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionUnimportResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionUnimportResultImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionUnimportResult") case "success": - out.Values[i] = ec._FeedVersionUnimportResult_success(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47709,55 +48669,58 @@ var frequencyImplementors = []string{"Frequency"} func (ec *executionContext) _Frequency(ctx context.Context, sel ast.SelectionSet, obj *model.Frequency) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, frequencyImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Frequency") case "id": - out.Values[i] = ec._Frequency_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "start_time": - out.Values[i] = ec._Frequency_start_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "end_time": - out.Values[i] = ec._Frequency_end_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "headway_secs": - out.Values[i] = ec._Frequency_headway_secs(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "exact_times": - out.Values[i] = ec._Frequency_exact_times(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47765,28 +48728,37 @@ var gbfsAlertTimeImplementors = []string{"GbfsAlertTime"} func (ec *executionContext) _GbfsAlertTime(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsAlertTime) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsAlertTimeImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsAlertTime") case "start": - out.Values[i] = ec._GbfsAlertTime_start(ctx, field, obj) - case "end": - out.Values[i] = ec._GbfsAlertTime_end(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47794,40 +48766,43 @@ var gbfsBrandAssetImplementors = []string{"GbfsBrandAsset"} func (ec *executionContext) _GbfsBrandAsset(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsBrandAsset) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsBrandAssetImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsBrandAsset") case "brand_last_modified": - out.Values[i] = ec._GbfsBrandAsset_brand_last_modified(ctx, field, obj) - case "brand_terms_url": - out.Values[i] = ec._GbfsBrandAsset_brand_terms_url(ctx, field, obj) - case "brand_image_url": - out.Values[i] = ec._GbfsBrandAsset_brand_image_url(ctx, field, obj) - case "brand_image_url_dark": - out.Values[i] = ec._GbfsBrandAsset_brand_image_url_dark(ctx, field, obj) - case "color": - out.Values[i] = ec._GbfsBrandAsset_color(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47835,40 +48810,43 @@ var gbfsFeedImplementors = []string{"GbfsFeed"} func (ec *executionContext) _GbfsFeed(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsFeed) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsFeedImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsFeed") case "system_information": - out.Values[i] = ec._GbfsFeed_system_information(ctx, field, obj) - case "station_information": - out.Values[i] = ec._GbfsFeed_station_information(ctx, field, obj) - case "rental_hours": - out.Values[i] = ec._GbfsFeed_rental_hours(ctx, field, obj) - case "calendars": - out.Values[i] = ec._GbfsFeed_calendars(ctx, field, obj) - case "alerts": - out.Values[i] = ec._GbfsFeed_alerts(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47876,84 +48854,65 @@ var gbfsFreeBikeStatusImplementors = []string{"GbfsFreeBikeStatus"} func (ec *executionContext) _GbfsFreeBikeStatus(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsFreeBikeStatus) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsFreeBikeStatusImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsFreeBikeStatus") case "bike_id": - out.Values[i] = ec._GbfsFreeBikeStatus_bike_id(ctx, field, obj) - case "lat": - out.Values[i] = ec._GbfsFreeBikeStatus_lat(ctx, field, obj) - case "lon": - out.Values[i] = ec._GbfsFreeBikeStatus_lon(ctx, field, obj) - case "is_reserved": - out.Values[i] = ec._GbfsFreeBikeStatus_is_reserved(ctx, field, obj) - case "is_disabled": - out.Values[i] = ec._GbfsFreeBikeStatus_is_disabled(ctx, field, obj) - case "last_reported": - out.Values[i] = ec._GbfsFreeBikeStatus_last_reported(ctx, field, obj) - case "current_range_meters": - out.Values[i] = ec._GbfsFreeBikeStatus_current_range_meters(ctx, field, obj) - case "current_fuel_percent": - out.Values[i] = ec._GbfsFreeBikeStatus_current_fuel_percent(ctx, field, obj) - case "vehicle_equipment": - out.Values[i] = ec._GbfsFreeBikeStatus_vehicle_equipment(ctx, field, obj) - case "available_until": - out.Values[i] = ec._GbfsFreeBikeStatus_available_until(ctx, field, obj) - case "station": - out.Values[i] = ec._GbfsFreeBikeStatus_station(ctx, field, obj) - case "home_station": - out.Values[i] = ec._GbfsFreeBikeStatus_home_station(ctx, field, obj) - case "pricing_plan": - out.Values[i] = ec._GbfsFreeBikeStatus_pricing_plan(ctx, field, obj) - case "vehicle_type": - out.Values[i] = ec._GbfsFreeBikeStatus_vehicle_type(ctx, field, obj) - case "rental_uris": - out.Values[i] = ec._GbfsFreeBikeStatus_rental_uris(ctx, field, obj) - case "feed": - out.Values[i] = ec._GbfsFreeBikeStatus_feed(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47961,28 +48920,37 @@ var gbfsGeofenceFeatureImplementors = []string{"GbfsGeofenceFeature"} func (ec *executionContext) _GbfsGeofenceFeature(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsGeofenceFeature) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsGeofenceFeatureImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsGeofenceFeature") case "type": - out.Values[i] = ec._GbfsGeofenceFeature_type(ctx, field, obj) - case "geometry": - out.Values[i] = ec._GbfsGeofenceFeature_geometry(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -47990,36 +48958,41 @@ var gbfsGeofencePropertyImplementors = []string{"GbfsGeofenceProperty"} func (ec *executionContext) _GbfsGeofenceProperty(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsGeofenceProperty) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsGeofencePropertyImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsGeofenceProperty") case "name": - out.Values[i] = ec._GbfsGeofenceProperty_name(ctx, field, obj) - case "start": - out.Values[i] = ec._GbfsGeofenceProperty_start(ctx, field, obj) - case "end": - out.Values[i] = ec._GbfsGeofenceProperty_end(ctx, field, obj) - case "rules": - out.Values[i] = ec._GbfsGeofenceProperty_rules(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48027,40 +49000,43 @@ var gbfsGeofenceRuleImplementors = []string{"GbfsGeofenceRule"} func (ec *executionContext) _GbfsGeofenceRule(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsGeofenceRule) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsGeofenceRuleImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsGeofenceRule") case "ride_allowed": - out.Values[i] = ec._GbfsGeofenceRule_ride_allowed(ctx, field, obj) - case "ride_through_allowed": - out.Values[i] = ec._GbfsGeofenceRule_ride_through_allowed(ctx, field, obj) - case "maximum_speed_kph": - out.Values[i] = ec._GbfsGeofenceRule_maximum_speed_kph(ctx, field, obj) - case "station_parking": - out.Values[i] = ec._GbfsGeofenceRule_station_parking(ctx, field, obj) - case "vehicle_type": - out.Values[i] = ec._GbfsGeofenceRule_vehicle_type(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48068,28 +49044,37 @@ var gbfsGeofenceZoneImplementors = []string{"GbfsGeofenceZone"} func (ec *executionContext) _GbfsGeofenceZone(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsGeofenceZone) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsGeofenceZoneImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsGeofenceZone") case "type": - out.Values[i] = ec._GbfsGeofenceZone_type(ctx, field, obj) - case "features": - out.Values[i] = ec._GbfsGeofenceZone_features(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48097,36 +49082,41 @@ var gbfsPlanPriceImplementors = []string{"GbfsPlanPrice"} func (ec *executionContext) _GbfsPlanPrice(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsPlanPrice) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsPlanPriceImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsPlanPrice") case "start": - out.Values[i] = ec._GbfsPlanPrice_start(ctx, field, obj) - case "rate": - out.Values[i] = ec._GbfsPlanPrice_rate(ctx, field, obj) - case "interval": - out.Values[i] = ec._GbfsPlanPrice_interval(ctx, field, obj) - case "end": - out.Values[i] = ec._GbfsPlanPrice_end(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48134,28 +49124,37 @@ var gbfsRentalAppImplementors = []string{"GbfsRentalApp"} func (ec *executionContext) _GbfsRentalApp(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsRentalApp) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsRentalAppImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsRentalApp") case "store_uri": - out.Values[i] = ec._GbfsRentalApp_store_uri(ctx, field, obj) - case "discovery_uri": - out.Values[i] = ec._GbfsRentalApp_discovery_uri(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48163,28 +49162,37 @@ var gbfsRentalAppsImplementors = []string{"GbfsRentalApps"} func (ec *executionContext) _GbfsRentalApps(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsRentalApps) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsRentalAppsImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsRentalApps") case "ios": - out.Values[i] = ec._GbfsRentalApps_ios(ctx, field, obj) - case "android": - out.Values[i] = ec._GbfsRentalApps_android(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48192,32 +49200,39 @@ var gbfsRentalUrisImplementors = []string{"GbfsRentalUris"} func (ec *executionContext) _GbfsRentalUris(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsRentalUris) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsRentalUrisImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsRentalUris") case "android": - out.Values[i] = ec._GbfsRentalUris_android(ctx, field, obj) - case "ios": - out.Values[i] = ec._GbfsRentalUris_ios(ctx, field, obj) - case "web": - out.Values[i] = ec._GbfsRentalUris_web(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48225,100 +49240,73 @@ var gbfsStationInformationImplementors = []string{"GbfsStationInformation"} func (ec *executionContext) _GbfsStationInformation(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsStationInformation) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsStationInformationImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsStationInformation") case "station_id": - out.Values[i] = ec._GbfsStationInformation_station_id(ctx, field, obj) - case "name": - out.Values[i] = ec._GbfsStationInformation_name(ctx, field, obj) - case "short_name": - out.Values[i] = ec._GbfsStationInformation_short_name(ctx, field, obj) - case "lat": - out.Values[i] = ec._GbfsStationInformation_lat(ctx, field, obj) - case "lon": - out.Values[i] = ec._GbfsStationInformation_lon(ctx, field, obj) - case "address": - out.Values[i] = ec._GbfsStationInformation_address(ctx, field, obj) - case "cross_street": - out.Values[i] = ec._GbfsStationInformation_cross_street(ctx, field, obj) - case "post_code": - out.Values[i] = ec._GbfsStationInformation_post_code(ctx, field, obj) - case "rental_methods": - out.Values[i] = ec._GbfsStationInformation_rental_methods(ctx, field, obj) - case "is_virtual_station": - out.Values[i] = ec._GbfsStationInformation_is_virtual_station(ctx, field, obj) - case "station_area": - out.Values[i] = ec._GbfsStationInformation_station_area(ctx, field, obj) - case "parking_type": - out.Values[i] = ec._GbfsStationInformation_parking_type(ctx, field, obj) - case "parking_hoop": - out.Values[i] = ec._GbfsStationInformation_parking_hoop(ctx, field, obj) - case "contact_phone": - out.Values[i] = ec._GbfsStationInformation_contact_phone(ctx, field, obj) - case "capacity": - out.Values[i] = ec._GbfsStationInformation_capacity(ctx, field, obj) - case "is_valet_station": - out.Values[i] = ec._GbfsStationInformation_is_valet_station(ctx, field, obj) - case "is_charging_station": - out.Values[i] = ec._GbfsStationInformation_is_charging_station(ctx, field, obj) - case "feed": - out.Values[i] = ec._GbfsStationInformation_feed(ctx, field, obj) - case "region": - out.Values[i] = ec._GbfsStationInformation_region(ctx, field, obj) - case "status": - out.Values[i] = ec._GbfsStationInformation_status(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48326,64 +49314,55 @@ var gbfsStationStatusImplementors = []string{"GbfsStationStatus"} func (ec *executionContext) _GbfsStationStatus(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsStationStatus) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsStationStatusImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsStationStatus") case "station_id": - out.Values[i] = ec._GbfsStationStatus_station_id(ctx, field, obj) - case "num_bikes_available": - out.Values[i] = ec._GbfsStationStatus_num_bikes_available(ctx, field, obj) - case "num_bikes_disabled": - out.Values[i] = ec._GbfsStationStatus_num_bikes_disabled(ctx, field, obj) - case "num_docks_available": - out.Values[i] = ec._GbfsStationStatus_num_docks_available(ctx, field, obj) - case "num_docks_disabled": - out.Values[i] = ec._GbfsStationStatus_num_docks_disabled(ctx, field, obj) - case "is_returning": - out.Values[i] = ec._GbfsStationStatus_is_returning(ctx, field, obj) - case "is_renting": - out.Values[i] = ec._GbfsStationStatus_is_renting(ctx, field, obj) - case "is_installed": - out.Values[i] = ec._GbfsStationStatus_is_installed(ctx, field, obj) - case "last_reported": - out.Values[i] = ec._GbfsStationStatus_last_reported(ctx, field, obj) - case "vehicle_types_available": - out.Values[i] = ec._GbfsStationStatus_vehicle_types_available(ctx, field, obj) - case "vehicle_docks_available": - out.Values[i] = ec._GbfsStationStatus_vehicle_docks_available(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48391,48 +49370,47 @@ var gbfsSystemAlertImplementors = []string{"GbfsSystemAlert"} func (ec *executionContext) _GbfsSystemAlert(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemAlert) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemAlertImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemAlert") case "alert_id": - out.Values[i] = ec._GbfsSystemAlert_alert_id(ctx, field, obj) - case "type": - out.Values[i] = ec._GbfsSystemAlert_type(ctx, field, obj) - case "url": - out.Values[i] = ec._GbfsSystemAlert_url(ctx, field, obj) - case "summary": - out.Values[i] = ec._GbfsSystemAlert_summary(ctx, field, obj) - case "description": - out.Values[i] = ec._GbfsSystemAlert_description(ctx, field, obj) - case "last_updated": - out.Values[i] = ec._GbfsSystemAlert_last_updated(ctx, field, obj) - case "times": - out.Values[i] = ec._GbfsSystemAlert_times(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48440,44 +49418,45 @@ var gbfsSystemCalendarImplementors = []string{"GbfsSystemCalendar"} func (ec *executionContext) _GbfsSystemCalendar(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemCalendar) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemCalendarImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemCalendar") case "start_month": - out.Values[i] = ec._GbfsSystemCalendar_start_month(ctx, field, obj) - case "start_day": - out.Values[i] = ec._GbfsSystemCalendar_start_day(ctx, field, obj) - case "start_year": - out.Values[i] = ec._GbfsSystemCalendar_start_year(ctx, field, obj) - case "end_month": - out.Values[i] = ec._GbfsSystemCalendar_end_month(ctx, field, obj) - case "end_day": - out.Values[i] = ec._GbfsSystemCalendar_end_day(ctx, field, obj) - case "end_year": - out.Values[i] = ec._GbfsSystemCalendar_end_year(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48485,36 +49464,41 @@ var gbfsSystemHourImplementors = []string{"GbfsSystemHour"} func (ec *executionContext) _GbfsSystemHour(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemHour) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemHourImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemHour") case "user_types": - out.Values[i] = ec._GbfsSystemHour_user_types(ctx, field, obj) - case "days": - out.Values[i] = ec._GbfsSystemHour_days(ctx, field, obj) - case "start_time": - out.Values[i] = ec._GbfsSystemHour_start_time(ctx, field, obj) - case "end_time": - out.Values[i] = ec._GbfsSystemHour_end_time(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48522,96 +49506,71 @@ var gbfsSystemInformationImplementors = []string{"GbfsSystemInformation"} func (ec *executionContext) _GbfsSystemInformation(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemInformation) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemInformationImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemInformation") case "system_id": - out.Values[i] = ec._GbfsSystemInformation_system_id(ctx, field, obj) - case "language": - out.Values[i] = ec._GbfsSystemInformation_language(ctx, field, obj) - case "name": - out.Values[i] = ec._GbfsSystemInformation_name(ctx, field, obj) - case "short_name": - out.Values[i] = ec._GbfsSystemInformation_short_name(ctx, field, obj) - case "operator": - out.Values[i] = ec._GbfsSystemInformation_operator(ctx, field, obj) - case "url": - out.Values[i] = ec._GbfsSystemInformation_url(ctx, field, obj) - case "purchase_url": - out.Values[i] = ec._GbfsSystemInformation_purchase_url(ctx, field, obj) - case "start_date": - out.Values[i] = ec._GbfsSystemInformation_start_date(ctx, field, obj) - case "phone_number": - out.Values[i] = ec._GbfsSystemInformation_phone_number(ctx, field, obj) - case "email": - out.Values[i] = ec._GbfsSystemInformation_email(ctx, field, obj) - case "feed_contact_email": - out.Values[i] = ec._GbfsSystemInformation_feed_contact_email(ctx, field, obj) - case "timezone": - out.Values[i] = ec._GbfsSystemInformation_timezone(ctx, field, obj) - case "license_url": - out.Values[i] = ec._GbfsSystemInformation_license_url(ctx, field, obj) - case "terms_url": - out.Values[i] = ec._GbfsSystemInformation_terms_url(ctx, field, obj) - case "terms_last_updated": - out.Values[i] = ec._GbfsSystemInformation_terms_last_updated(ctx, field, obj) - case "privacy_url": - out.Values[i] = ec._GbfsSystemInformation_privacy_url(ctx, field, obj) - case "privacy_last_updated": - out.Values[i] = ec._GbfsSystemInformation_privacy_last_updated(ctx, field, obj) - case "brand_assets": - out.Values[i] = ec._GbfsSystemInformation_brand_assets(ctx, field, obj) - case "rental_apps": - out.Values[i] = ec._GbfsSystemInformation_rental_apps(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48619,60 +49578,53 @@ var gbfsSystemPricingPlanImplementors = []string{"GbfsSystemPricingPlan"} func (ec *executionContext) _GbfsSystemPricingPlan(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemPricingPlan) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemPricingPlanImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemPricingPlan") case "plan_id": - out.Values[i] = ec._GbfsSystemPricingPlan_plan_id(ctx, field, obj) - case "url": - out.Values[i] = ec._GbfsSystemPricingPlan_url(ctx, field, obj) - case "name": - out.Values[i] = ec._GbfsSystemPricingPlan_name(ctx, field, obj) - case "currency": - out.Values[i] = ec._GbfsSystemPricingPlan_currency(ctx, field, obj) - case "price": - out.Values[i] = ec._GbfsSystemPricingPlan_price(ctx, field, obj) - case "is_taxable": - out.Values[i] = ec._GbfsSystemPricingPlan_is_taxable(ctx, field, obj) - case "description": - out.Values[i] = ec._GbfsSystemPricingPlan_description(ctx, field, obj) - case "surge_pricing": - out.Values[i] = ec._GbfsSystemPricingPlan_surge_pricing(ctx, field, obj) - case "per_km_pricing": - out.Values[i] = ec._GbfsSystemPricingPlan_per_km_pricing(ctx, field, obj) - case "per_min_pricing": - out.Values[i] = ec._GbfsSystemPricingPlan_per_min_pricing(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48680,28 +49632,37 @@ var gbfsSystemRegionImplementors = []string{"GbfsSystemRegion"} func (ec *executionContext) _GbfsSystemRegion(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemRegion) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemRegionImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemRegion") case "region_id": - out.Values[i] = ec._GbfsSystemRegion_region_id(ctx, field, obj) - case "name": - out.Values[i] = ec._GbfsSystemRegion_name(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48709,28 +49670,37 @@ var gbfsSystemVersionImplementors = []string{"GbfsSystemVersion"} func (ec *executionContext) _GbfsSystemVersion(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemVersion) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemVersionImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemVersion") case "version": - out.Values[i] = ec._GbfsSystemVersion_version(ctx, field, obj) - case "url": - out.Values[i] = ec._GbfsSystemVersion_url(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48738,32 +49708,39 @@ var gbfsVehicleAssetsImplementors = []string{"GbfsVehicleAssets"} func (ec *executionContext) _GbfsVehicleAssets(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsVehicleAssets) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsVehicleAssetsImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsVehicleAssets") case "icon_url": - out.Values[i] = ec._GbfsVehicleAssets_icon_url(ctx, field, obj) - case "icon_url_dark": - out.Values[i] = ec._GbfsVehicleAssets_icon_url_dark(ctx, field, obj) - case "icon_last_modified": - out.Values[i] = ec._GbfsVehicleAssets_icon_last_modified(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48771,28 +49748,37 @@ var gbfsVehicleDockAvailableImplementors = []string{"GbfsVehicleDockAvailable"} func (ec *executionContext) _GbfsVehicleDockAvailable(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsVehicleDockAvailable) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsVehicleDockAvailableImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsVehicleDockAvailable") case "count": - out.Values[i] = ec._GbfsVehicleDockAvailable_count(ctx, field, obj) - case "vehicle_types": - out.Values[i] = ec._GbfsVehicleDockAvailable_vehicle_types(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48800,124 +49786,85 @@ var gbfsVehicleTypeImplementors = []string{"GbfsVehicleType"} func (ec *executionContext) _GbfsVehicleType(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsVehicleType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsVehicleTypeImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsVehicleType") case "vehicle_type_id": - out.Values[i] = ec._GbfsVehicleType_vehicle_type_id(ctx, field, obj) - case "form_factor": - out.Values[i] = ec._GbfsVehicleType_form_factor(ctx, field, obj) - case "rider_capacity": - out.Values[i] = ec._GbfsVehicleType_rider_capacity(ctx, field, obj) - case "cargo_volume_capacity": - out.Values[i] = ec._GbfsVehicleType_cargo_volume_capacity(ctx, field, obj) - case "cargo_load_capacity": - out.Values[i] = ec._GbfsVehicleType_cargo_load_capacity(ctx, field, obj) - case "propulsion_type": - out.Values[i] = ec._GbfsVehicleType_propulsion_type(ctx, field, obj) - case "eco_label": - out.Values[i] = ec._GbfsVehicleType_eco_label(ctx, field, obj) - case "country_code": - out.Values[i] = ec._GbfsVehicleType_country_code(ctx, field, obj) - case "eco_sticker": - out.Values[i] = ec._GbfsVehicleType_eco_sticker(ctx, field, obj) - case "max_range_meters": - out.Values[i] = ec._GbfsVehicleType_max_range_meters(ctx, field, obj) - case "name": - out.Values[i] = ec._GbfsVehicleType_name(ctx, field, obj) - case "vehicle_accessories": - out.Values[i] = ec._GbfsVehicleType_vehicle_accessories(ctx, field, obj) - case "gco_2_km": - out.Values[i] = ec._GbfsVehicleType_gco_2_km(ctx, field, obj) - case "vehicle_image": - out.Values[i] = ec._GbfsVehicleType_vehicle_image(ctx, field, obj) - case "make": - out.Values[i] = ec._GbfsVehicleType_make(ctx, field, obj) - case "model": - out.Values[i] = ec._GbfsVehicleType_model(ctx, field, obj) - case "color": - out.Values[i] = ec._GbfsVehicleType_color(ctx, field, obj) - case "wheel_count": - out.Values[i] = ec._GbfsVehicleType_wheel_count(ctx, field, obj) - case "max_permitted_speed": - out.Values[i] = ec._GbfsVehicleType_max_permitted_speed(ctx, field, obj) - case "rated_power": - out.Values[i] = ec._GbfsVehicleType_rated_power(ctx, field, obj) - case "default_reserve_time": - out.Values[i] = ec._GbfsVehicleType_default_reserve_time(ctx, field, obj) - case "return_constraint": - out.Values[i] = ec._GbfsVehicleType_return_constraint(ctx, field, obj) - case "default_pricing_plan": - out.Values[i] = ec._GbfsVehicleType_default_pricing_plan(ctx, field, obj) - case "pricing_plans": - out.Values[i] = ec._GbfsVehicleType_pricing_plans(ctx, field, obj) - case "rental_uris": - out.Values[i] = ec._GbfsVehicleType_rental_uris(ctx, field, obj) - case "vehicle_assets": - out.Values[i] = ec._GbfsVehicleType_vehicle_assets(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48925,36 +49872,41 @@ var gbfsVehicleTypeAvailableImplementors = []string{"GbfsVehicleTypeAvailable"} func (ec *executionContext) _GbfsVehicleTypeAvailable(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsVehicleTypeAvailable) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsVehicleTypeAvailableImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsVehicleTypeAvailable") case "num_bikes_disabled": - out.Values[i] = ec._GbfsVehicleTypeAvailable_num_bikes_disabled(ctx, field, obj) - case "num_docks_available": - out.Values[i] = ec._GbfsVehicleTypeAvailable_num_docks_available(ctx, field, obj) - case "count": - out.Values[i] = ec._GbfsVehicleTypeAvailable_count(ctx, field, obj) - case "vehicle_type": - out.Values[i] = ec._GbfsVehicleTypeAvailable_vehicle_type(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -48962,66 +49914,65 @@ var itineraryImplementors = []string{"Itinerary"} func (ec *executionContext) _Itinerary(ctx context.Context, sel ast.SelectionSet, obj *model.Itinerary) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, itineraryImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Itinerary") case "duration": - out.Values[i] = ec._Itinerary_duration(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "distance": - out.Values[i] = ec._Itinerary_distance(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "start_time": - out.Values[i] = ec._Itinerary_start_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "end_time": - out.Values[i] = ec._Itinerary_end_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "from": - out.Values[i] = ec._Itinerary_from(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "to": - out.Values[i] = ec._Itinerary_to(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "legs": - out.Values[i] = ec._Itinerary_legs(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49029,67 +49980,64 @@ var legImplementors = []string{"Leg"} func (ec *executionContext) _Leg(ctx context.Context, sel ast.SelectionSet, obj *model.Leg) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, legImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Leg") case "duration": - out.Values[i] = ec._Leg_duration(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "distance": - out.Values[i] = ec._Leg_distance(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "start_time": - out.Values[i] = ec._Leg_start_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "end_time": - out.Values[i] = ec._Leg_end_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "from": - out.Values[i] = ec._Leg_from(ctx, field, obj) - case "to": - out.Values[i] = ec._Leg_to(ctx, field, obj) - case "steps": - out.Values[i] = ec._Leg_steps(ctx, field, obj) - case "geometry": - out.Values[i] = ec._Leg_geometry(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49097,51 +50045,42 @@ var levelImplementors = []string{"Level"} func (ec *executionContext) _Level(ctx context.Context, sel ast.SelectionSet, obj *model.Level) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, levelImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Level") case "id": - out.Values[i] = ec._Level_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "level_id": - out.Values[i] = ec._Level_level_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "level_name": - out.Values[i] = ec._Level_level_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "level_index": - out.Values[i] = ec._Level_level_index(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "geometry": - out.Values[i] = ec._Level_geometry(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stops": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49151,18 +50090,46 @@ func (ec *executionContext) _Level(ctx context.Context, sel ast.SelectionSet, ob return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49170,39 +50137,44 @@ var meImplementors = []string{"Me"} func (ec *executionContext) _Me(ctx context.Context, sel ast.SelectionSet, obj *model.Me) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, meImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Me") case "id": - out.Values[i] = ec._Me_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": - out.Values[i] = ec._Me_name(ctx, field, obj) - case "email": - out.Values[i] = ec._Me_email(ctx, field, obj) - case "external_data": - out.Values[i] = ec._Me_external_data(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49215,7 +50187,7 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) }) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ Object: field.Name, @@ -49226,58 +50198,58 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) case "__typename": out.Values[i] = graphql.MarshalString("Mutation") case "validate_gtfs": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_validate_gtfs(ctx, field) }) - case "feed_version_update": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_update(ctx, field) }) - case "feed_version_fetch": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_fetch(ctx, field) }) - case "feed_version_import": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_import(ctx, field) }) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "feed_version_unimport": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_unimport(ctx, field) }) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "feed_version_delete": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_delete(ctx, field) }) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49285,58 +50257,41 @@ var operatorImplementors = []string{"Operator"} func (ec *executionContext) _Operator(ctx context.Context, sel ast.SelectionSet, obj *model.Operator) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, operatorImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Operator") case "id": - out.Values[i] = ec._Operator_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "generated": - out.Values[i] = ec._Operator_generated(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "file": - out.Values[i] = ec._Operator_file(ctx, field, obj) - case "onestop_id": - out.Values[i] = ec._Operator_onestop_id(ctx, field, obj) - case "name": - out.Values[i] = ec._Operator_name(ctx, field, obj) - case "short_name": - out.Values[i] = ec._Operator_short_name(ctx, field, obj) - case "website": - out.Values[i] = ec._Operator_website(ctx, field, obj) - case "tags": - out.Values[i] = ec._Operator_tags(ctx, field, obj) - case "search_rank": - out.Values[i] = ec._Operator_search_rank(ctx, field, obj) - case "agencies": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49346,14 +50301,30 @@ func (ec *executionContext) _Operator(ctx context.Context, sel ast.SelectionSet, return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "feeds": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49363,18 +50334,46 @@ func (ec *executionContext) _Operator(ctx context.Context, sel ast.SelectionSet, return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49382,93 +50381,72 @@ var pathwayImplementors = []string{"Pathway"} func (ec *executionContext) _Pathway(ctx context.Context, sel ast.SelectionSet, obj *model.Pathway) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, pathwayImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Pathway") case "id": - out.Values[i] = ec._Pathway_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "pathway_id": - out.Values[i] = ec._Pathway_pathway_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "pathway_mode": - out.Values[i] = ec._Pathway_pathway_mode(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "is_bidirectional": - out.Values[i] = ec._Pathway_is_bidirectional(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "length": - out.Values[i] = ec._Pathway_length(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "traversal_time": - out.Values[i] = ec._Pathway_traversal_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stair_count": - out.Values[i] = ec._Pathway_stair_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "max_slope": - out.Values[i] = ec._Pathway_max_slope(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "min_width": - out.Values[i] = ec._Pathway_min_width(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "signposted_as": - out.Values[i] = ec._Pathway_signposted_as(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "reverse_signposted_as": - out.Values[i] = ec._Pathway_reverse_signposted_as(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "from_stop": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49476,19 +50454,35 @@ func (ec *executionContext) _Pathway(ctx context.Context, sel ast.SelectionSet, }() res = ec._Pathway_from_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "to_stop": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49496,23 +50490,51 @@ func (ec *executionContext) _Pathway(ctx context.Context, sel ast.SelectionSet, }() res = ec._Pathway_to_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49520,28 +50542,23 @@ var placeImplementors = []string{"Place"} func (ec *executionContext) _Place(ctx context.Context, sel ast.SelectionSet, obj *model.Place) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, placeImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Place") case "adm0_name": - out.Values[i] = ec._Place_adm0_name(ctx, field, obj) - case "adm1_name": - out.Values[i] = ec._Place_adm1_name(ctx, field, obj) - case "city_name": - out.Values[i] = ec._Place_city_name(ctx, field, obj) - case "count": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49549,19 +50566,35 @@ func (ec *executionContext) _Place(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Place_count(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "operators": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49571,18 +50604,46 @@ func (ec *executionContext) _Place(ctx context.Context, sel ast.SelectionSet, ob return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49595,7 +50656,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }) out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ Object: field.Name, @@ -49608,7 +50669,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "feed_versions": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49616,22 +50677,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_feed_versions(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "feeds": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49639,22 +50699,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_feeds(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "agencies": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49662,22 +50721,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_agencies(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "routes": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49685,22 +50743,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_routes(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "stops": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49708,22 +50765,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_stops(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "trips": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49731,22 +50787,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_trips(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "operators": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49754,22 +50809,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_operators(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "directions": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49777,22 +50831,21 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_directions(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "bikes": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49803,16 +50856,15 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "docks": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49823,16 +50875,15 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "places": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49843,16 +50894,15 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "me": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -49860,38 +50910,45 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_me(ctx, field) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func() graphql.Marshaler { - return rrm(innerCtx) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "__type": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___type(ctx, field) }) - case "__schema": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___schema(ctx, field) }) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49899,28 +50956,37 @@ var rTTimeRangeImplementors = []string{"RTTimeRange"} func (ec *executionContext) _RTTimeRange(ctx context.Context, sel ast.SelectionSet, obj *model.RTTimeRange) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, rTTimeRangeImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RTTimeRange") case "start": - out.Values[i] = ec._RTTimeRange_start(ctx, field, obj) - case "end": - out.Values[i] = ec._RTTimeRange_end(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49928,31 +50994,40 @@ var rTTranslationImplementors = []string{"RTTranslation"} func (ec *executionContext) _RTTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.RTTranslation) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, rTTranslationImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RTTranslation") case "text": - out.Values[i] = ec._RTTranslation_text(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "language": - out.Values[i] = ec._RTTranslation_language(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -49960,44 +51035,45 @@ var rTTripDescriptorImplementors = []string{"RTTripDescriptor"} func (ec *executionContext) _RTTripDescriptor(ctx context.Context, sel ast.SelectionSet, obj *model.RTTripDescriptor) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, rTTripDescriptorImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RTTripDescriptor") case "trip_id": - out.Values[i] = ec._RTTripDescriptor_trip_id(ctx, field, obj) - case "route_id": - out.Values[i] = ec._RTTripDescriptor_route_id(ctx, field, obj) - case "direction_id": - out.Values[i] = ec._RTTripDescriptor_direction_id(ctx, field, obj) - case "start_time": - out.Values[i] = ec._RTTripDescriptor_start_time(ctx, field, obj) - case "start_date": - out.Values[i] = ec._RTTripDescriptor_start_date(ctx, field, obj) - case "schedule_relationship": - out.Values[i] = ec._RTTripDescriptor_schedule_relationship(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50005,32 +51081,39 @@ var rTVehicleDescriptorImplementors = []string{"RTVehicleDescriptor"} func (ec *executionContext) _RTVehicleDescriptor(ctx context.Context, sel ast.SelectionSet, obj *model.RTVehicleDescriptor) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, rTVehicleDescriptorImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RTVehicleDescriptor") case "id": - out.Values[i] = ec._RTVehicleDescriptor_id(ctx, field, obj) - case "label": - out.Values[i] = ec._RTVehicleDescriptor_label(ctx, field, obj) - case "license_plate": - out.Values[i] = ec._RTVehicleDescriptor_license_plate(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50038,98 +51121,73 @@ var routeImplementors = []string{"Route"} func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, obj *model.Route) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Route") case "id": - out.Values[i] = ec._Route_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "onestop_id": - out.Values[i] = ec._Route_onestop_id(ctx, field, obj) - case "route_id": - out.Values[i] = ec._Route_route_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route_short_name": - out.Values[i] = ec._Route_route_short_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route_long_name": - out.Values[i] = ec._Route_route_long_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route_type": - out.Values[i] = ec._Route_route_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route_color": - out.Values[i] = ec._Route_route_color(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route_text_color": - out.Values[i] = ec._Route_route_text_color(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route_sort_order": - out.Values[i] = ec._Route_route_sort_order(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route_url": - out.Values[i] = ec._Route_route_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route_desc": - out.Values[i] = ec._Route_route_desc(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "continuous_pickup": - out.Values[i] = ec._Route_continuous_pickup(ctx, field, obj) - case "continuous_drop_off": - out.Values[i] = ec._Route_continuous_drop_off(ctx, field, obj) - case "geometry": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50139,14 +51197,30 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "agency": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50154,19 +51228,35 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_agency(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "feed_version": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50174,37 +51264,47 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_feed_version(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "feed_version_sha1": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "feed_version_sha1": out.Values[i] = ec._Route_feed_version_sha1(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "feed_onestop_id": - out.Values[i] = ec._Route_feed_onestop_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "search_rank": - out.Values[i] = ec._Route_search_rank(ctx, field, obj) - case "route_attribute": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50214,14 +51314,30 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "trips": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50229,19 +51345,35 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_trips(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "stops": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50249,19 +51381,35 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_stops(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "route_stops": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50269,19 +51417,35 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_route_stops(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "headways": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50289,19 +51453,35 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_headways(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "geometries": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50309,19 +51489,35 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_geometries(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "census_geographies": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50331,14 +51527,30 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "route_stop_buffer": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50346,19 +51558,35 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_route_stop_buffer(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "patterns": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50368,14 +51596,30 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "alerts": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50385,18 +51629,46 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50404,32 +51676,39 @@ var routeAttributeImplementors = []string{"RouteAttribute"} func (ec *executionContext) _RouteAttribute(ctx context.Context, sel ast.SelectionSet, obj *model.RouteAttribute) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeAttributeImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteAttribute") case "category": - out.Values[i] = ec._RouteAttribute_category(ctx, field, obj) - case "subcategory": - out.Values[i] = ec._RouteAttribute_subcategory(ctx, field, obj) - case "running_way": - out.Values[i] = ec._RouteAttribute_running_way(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50437,47 +51716,48 @@ var routeGeometryImplementors = []string{"RouteGeometry"} func (ec *executionContext) _RouteGeometry(ctx context.Context, sel ast.SelectionSet, obj *model.RouteGeometry) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeGeometryImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteGeometry") case "generated": - out.Values[i] = ec._RouteGeometry_generated(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "geometry": - out.Values[i] = ec._RouteGeometry_geometry(ctx, field, obj) - case "combined_geometry": - out.Values[i] = ec._RouteGeometry_combined_geometry(ctx, field, obj) - case "length": - out.Values[i] = ec._RouteGeometry_length(ctx, field, obj) - case "max_segment_length": - out.Values[i] = ec._RouteGeometry_max_segment_length(ctx, field, obj) - case "first_point_max_distance": - out.Values[i] = ec._RouteGeometry_first_point_max_distance(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50485,8 +51765,9 @@ var routeHeadwayImplementors = []string{"RouteHeadway"} func (ec *executionContext) _RouteHeadway(ctx context.Context, sel ast.SelectionSet, obj *model.RouteHeadway) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeHeadwayImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": @@ -50494,7 +51775,7 @@ func (ec *executionContext) _RouteHeadway(ctx context.Context, sel ast.Selection case "stop": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50502,39 +51783,45 @@ func (ec *executionContext) _RouteHeadway(ctx context.Context, sel ast.Selection }() res = ec._RouteHeadway_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "dow_category": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dow_category": out.Values[i] = ec._RouteHeadway_dow_category(ctx, field, obj) - case "direction_id": - out.Values[i] = ec._RouteHeadway_direction_id(ctx, field, obj) - case "headway_secs": - out.Values[i] = ec._RouteHeadway_headway_secs(ctx, field, obj) - case "service_date": - out.Values[i] = ec._RouteHeadway_service_date(ctx, field, obj) - case "stop_trip_count": - out.Values[i] = ec._RouteHeadway_stop_trip_count(ctx, field, obj) - case "departures": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50544,18 +51831,46 @@ func (ec *executionContext) _RouteHeadway(ctx context.Context, sel ast.Selection return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50563,44 +51878,37 @@ var routeStopImplementors = []string{"RouteStop"} func (ec *executionContext) _RouteStop(ctx context.Context, sel ast.SelectionSet, obj *model.RouteStop) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeStopImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteStop") case "id": - out.Values[i] = ec._RouteStop_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_id": - out.Values[i] = ec._RouteStop_stop_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route_id": - out.Values[i] = ec._RouteStop_route_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "agency_id": - out.Values[i] = ec._RouteStop_agency_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "route": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50608,19 +51916,35 @@ func (ec *executionContext) _RouteStop(ctx context.Context, sel ast.SelectionSet }() res = ec._RouteStop_route(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "stop": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50628,19 +51952,35 @@ func (ec *executionContext) _RouteStop(ctx context.Context, sel ast.SelectionSet }() res = ec._RouteStop_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "agency": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50648,23 +51988,51 @@ func (ec *executionContext) _RouteStop(ctx context.Context, sel ast.SelectionSet }() res = ec._RouteStop_agency(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50672,32 +52040,39 @@ var routeStopBufferImplementors = []string{"RouteStopBuffer"} func (ec *executionContext) _RouteStopBuffer(ctx context.Context, sel ast.SelectionSet, obj *model.RouteStopBuffer) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeStopBufferImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteStopBuffer") case "stop_points": - out.Values[i] = ec._RouteStopBuffer_stop_points(ctx, field, obj) - case "stop_buffer": - out.Values[i] = ec._RouteStopBuffer_stop_buffer(ctx, field, obj) - case "stop_convexhull": - out.Values[i] = ec._RouteStopBuffer_stop_convexhull(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50705,37 +52080,32 @@ var routeStopPatternImplementors = []string{"RouteStopPattern"} func (ec *executionContext) _RouteStopPattern(ctx context.Context, sel ast.SelectionSet, obj *model.RouteStopPattern) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeStopPatternImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteStopPattern") case "stop_pattern_id": - out.Values[i] = ec._RouteStopPattern_stop_pattern_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "direction_id": - out.Values[i] = ec._RouteStopPattern_direction_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "count": - out.Values[i] = ec._RouteStopPattern_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "trips": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50745,18 +52115,46 @@ func (ec *executionContext) _RouteStopPattern(ctx context.Context, sel ast.Selec return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50764,48 +52162,53 @@ var shapeImplementors = []string{"Shape"} func (ec *executionContext) _Shape(ctx context.Context, sel ast.SelectionSet, obj *model.Shape) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, shapeImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Shape") case "id": - out.Values[i] = ec._Shape_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "shape_id": - out.Values[i] = ec._Shape_shape_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "geometry": - out.Values[i] = ec._Shape_geometry(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "generated": - out.Values[i] = ec._Shape_generated(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50813,73 +52216,70 @@ var stepImplementors = []string{"Step"} func (ec *executionContext) _Step(ctx context.Context, sel ast.SelectionSet, obj *model.Step) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stepImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Step") case "duration": - out.Values[i] = ec._Step_duration(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "distance": - out.Values[i] = ec._Step_distance(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "start_time": - out.Values[i] = ec._Step_start_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "end_time": - out.Values[i] = ec._Step_end_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "to": - out.Values[i] = ec._Step_to(ctx, field, obj) - case "mode": - out.Values[i] = ec._Step_mode(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "instruction": - out.Values[i] = ec._Step_instruction(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "geometry_offset": - out.Values[i] = ec._Step_geometry_offset(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -50887,122 +52287,91 @@ var stopImplementors = []string{"Stop"} func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj *model.Stop) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Stop") case "id": - out.Values[i] = ec._Stop_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "onestop_id": - out.Values[i] = ec._Stop_onestop_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "location_type": - out.Values[i] = ec._Stop_location_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_code": - out.Values[i] = ec._Stop_stop_code(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_desc": - out.Values[i] = ec._Stop_stop_desc(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_id": - out.Values[i] = ec._Stop_stop_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_name": - out.Values[i] = ec._Stop_stop_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_timezone": - out.Values[i] = ec._Stop_stop_timezone(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_url": - out.Values[i] = ec._Stop_stop_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "wheelchair_boarding": - out.Values[i] = ec._Stop_wheelchair_boarding(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "zone_id": - out.Values[i] = ec._Stop_zone_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "platform_code": - out.Values[i] = ec._Stop_platform_code(ctx, field, obj) - case "tts_stop_name": - out.Values[i] = ec._Stop_tts_stop_name(ctx, field, obj) - case "geometry": - out.Values[i] = ec._Stop_geometry(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "feed_version_sha1": - out.Values[i] = ec._Stop_feed_version_sha1(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "feed_onestop_id": - out.Values[i] = ec._Stop_feed_onestop_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "feed_version": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51010,19 +52379,35 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_feed_version(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "level": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51032,14 +52417,30 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "parent": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51049,14 +52450,30 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "external_reference": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51066,14 +52483,30 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "observations": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51083,14 +52516,30 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "children": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51100,14 +52549,30 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "route_stops": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51115,19 +52580,35 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_route_stops(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "pathways_from_stop": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51135,19 +52616,35 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_pathways_from_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "pathways_to_stop": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51155,19 +52652,35 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_pathways_to_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "stop_times": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51175,19 +52688,35 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_stop_times(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "departures": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51195,19 +52724,35 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_departures(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "arrivals": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51215,23 +52760,37 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_arrivals(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "search_rank": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "search_rank": out.Values[i] = ec._Stop_search_rank(ctx, field, obj) - case "place": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51241,14 +52800,30 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "census_geographies": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51258,14 +52833,30 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "directions": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51273,19 +52864,35 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_directions(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "nearby_stops": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51295,14 +52902,30 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "alerts": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51312,18 +52935,46 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -51331,35 +52982,28 @@ var stopExternalReferenceImplementors = []string{"StopExternalReference"} func (ec *executionContext) _StopExternalReference(ctx context.Context, sel ast.SelectionSet, obj *model.StopExternalReference) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopExternalReferenceImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopExternalReference") case "id": - out.Values[i] = ec._StopExternalReference_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "target_feed_onestop_id": - out.Values[i] = ec._StopExternalReference_target_feed_onestop_id(ctx, field, obj) - case "target_stop_id": - out.Values[i] = ec._StopExternalReference_target_stop_id(ctx, field, obj) - case "inactive": - out.Values[i] = ec._StopExternalReference_inactive(ctx, field, obj) - case "target_active_stop": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51369,18 +53013,46 @@ func (ec *executionContext) _StopExternalReference(ctx context.Context, sel ast. return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -51388,76 +53060,61 @@ var stopObservationImplementors = []string{"StopObservation"} func (ec *executionContext) _StopObservation(ctx context.Context, sel ast.SelectionSet, obj *model.StopObservation) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopObservationImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopObservation") case "schedule_relationship": - out.Values[i] = ec._StopObservation_schedule_relationship(ctx, field, obj) - case "trip_start_date": - out.Values[i] = ec._StopObservation_trip_start_date(ctx, field, obj) - case "trip_start_time": - out.Values[i] = ec._StopObservation_trip_start_time(ctx, field, obj) - case "from_stop_id": - out.Values[i] = ec._StopObservation_from_stop_id(ctx, field, obj) - case "to_stop_id": - out.Values[i] = ec._StopObservation_to_stop_id(ctx, field, obj) - case "agency_id": - out.Values[i] = ec._StopObservation_agency_id(ctx, field, obj) - case "route_id": - out.Values[i] = ec._StopObservation_route_id(ctx, field, obj) - case "trip_id": - out.Values[i] = ec._StopObservation_trip_id(ctx, field, obj) - case "stop_sequence": - out.Values[i] = ec._StopObservation_stop_sequence(ctx, field, obj) - case "source": - out.Values[i] = ec._StopObservation_source(ctx, field, obj) - case "scheduled_arrival_time": - out.Values[i] = ec._StopObservation_scheduled_arrival_time(ctx, field, obj) - case "scheduled_departure_time": - out.Values[i] = ec._StopObservation_scheduled_departure_time(ctx, field, obj) - case "observed_arrival_time": - out.Values[i] = ec._StopObservation_observed_arrival_time(ctx, field, obj) - case "observed_departure_time": - out.Values[i] = ec._StopObservation_observed_departure_time(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -51465,36 +53122,41 @@ var stopPlaceImplementors = []string{"StopPlace"} func (ec *executionContext) _StopPlace(ctx context.Context, sel ast.SelectionSet, obj *model.StopPlace) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopPlaceImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopPlace") case "adm1_name": - out.Values[i] = ec._StopPlace_adm1_name(ctx, field, obj) - case "adm0_name": - out.Values[i] = ec._StopPlace_adm0_name(ctx, field, obj) - case "adm0_iso": - out.Values[i] = ec._StopPlace_adm0_iso(ctx, field, obj) - case "adm1_iso": - out.Values[i] = ec._StopPlace_adm1_iso(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -51502,57 +53164,42 @@ var stopTimeImplementors = []string{"StopTime"} func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, obj *model.StopTime) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopTimeImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopTime") case "arrival_time": - out.Values[i] = ec._StopTime_arrival_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "departure_time": - out.Values[i] = ec._StopTime_departure_time(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_sequence": - out.Values[i] = ec._StopTime_stop_sequence(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_headsign": - out.Values[i] = ec._StopTime_stop_headsign(ctx, field, obj) - case "pickup_type": - out.Values[i] = ec._StopTime_pickup_type(ctx, field, obj) - case "drop_off_type": - out.Values[i] = ec._StopTime_drop_off_type(ctx, field, obj) - case "timepoint": - out.Values[i] = ec._StopTime_timepoint(ctx, field, obj) - case "interpolated": - out.Values[i] = ec._StopTime_interpolated(ctx, field, obj) - case "stop": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51560,19 +53207,35 @@ func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, }() res = ec._StopTime_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "trip": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51580,19 +53243,35 @@ func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, }() res = ec._StopTime_trip(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "arrival": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51600,19 +53279,35 @@ func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, }() res = ec._StopTime_arrival(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "departure": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51620,39 +53315,59 @@ func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, }() res = ec._StopTime_departure(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) - case "continuous_drop_off": + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "continuous_drop_off": out.Values[i] = ec._StopTime_continuous_drop_off(ctx, field, obj) - case "continuous_pickup": - out.Values[i] = ec._StopTime_continuous_pickup(ctx, field, obj) - case "shape_dist_traveled": - out.Values[i] = ec._StopTime_shape_dist_traveled(ctx, field, obj) - case "service_date": - out.Values[i] = ec._StopTime_service_date(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -51660,47 +53375,48 @@ var stopTimeEventImplementors = []string{"StopTimeEvent"} func (ec *executionContext) _StopTimeEvent(ctx context.Context, sel ast.SelectionSet, obj *model.StopTimeEvent) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopTimeEventImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopTimeEvent") case "stop_timezone": - out.Values[i] = ec._StopTimeEvent_stop_timezone(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "scheduled": - out.Values[i] = ec._StopTimeEvent_scheduled(ctx, field, obj) - case "estimated": - out.Values[i] = ec._StopTimeEvent_estimated(ctx, field, obj) - case "estimated_utc": - out.Values[i] = ec._StopTimeEvent_estimated_utc(ctx, field, obj) - case "delay": - out.Values[i] = ec._StopTimeEvent_delay(ctx, field, obj) - case "uncertainty": - out.Values[i] = ec._StopTimeEvent_uncertainty(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -51708,79 +53424,62 @@ var tripImplementors = []string{"Trip"} func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj *model.Trip) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, tripImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Trip") case "id": - out.Values[i] = ec._Trip_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "trip_id": - out.Values[i] = ec._Trip_trip_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "trip_headsign": - out.Values[i] = ec._Trip_trip_headsign(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "trip_short_name": - out.Values[i] = ec._Trip_trip_short_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "direction_id": - out.Values[i] = ec._Trip_direction_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "block_id": - out.Values[i] = ec._Trip_block_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "wheelchair_accessible": - out.Values[i] = ec._Trip_wheelchair_accessible(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "bikes_allowed": - out.Values[i] = ec._Trip_bikes_allowed(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "stop_pattern_id": - out.Values[i] = ec._Trip_stop_pattern_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&out.Invalids, 1) } case "calendar": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51788,19 +53487,35 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_calendar(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "route": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51808,19 +53523,35 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_route(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "shape": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51830,14 +53561,30 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "feed_version": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51845,19 +53592,35 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_feed_version(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "stop_times": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51865,19 +53628,35 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_stop_times(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "frequencies": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51885,19 +53664,35 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_frequencies(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&invalids, 1) + atomic.AddUint32(&fs.Invalids, 1) } return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "schedule_relationship": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51907,14 +53702,30 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "timestamp": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51924,14 +53735,30 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "alerts": field := field - innerFunc := func(ctx context.Context) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51941,18 +53768,46 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj return res } - out.Concurrently(i, func() graphql.Marshaler { - return innerFunc(ctx) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -51960,31 +53815,40 @@ var validationRealtimeResultImplementors = []string{"ValidationRealtimeResult"} func (ec *executionContext) _ValidationRealtimeResult(ctx context.Context, sel ast.SelectionSet, obj *model.ValidationRealtimeResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, validationRealtimeResultImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ValidationRealtimeResult") case "url": - out.Values[i] = ec._ValidationRealtimeResult_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "json": - out.Values[i] = ec._ValidationRealtimeResult_json(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -51992,109 +53856,94 @@ var validationResultImplementors = []string{"ValidationResult"} func (ec *executionContext) _ValidationResult(ctx context.Context, sel ast.SelectionSet, obj *model.ValidationResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, validationResultImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ValidationResult") case "success": - out.Values[i] = ec._ValidationResult_success(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "failure_reason": - out.Values[i] = ec._ValidationResult_failure_reason(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "errors": - out.Values[i] = ec._ValidationResult_errors(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "warnings": - out.Values[i] = ec._ValidationResult_warnings(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "sha1": - out.Values[i] = ec._ValidationResult_sha1(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "earliest_calendar_date": - out.Values[i] = ec._ValidationResult_earliest_calendar_date(ctx, field, obj) - case "latest_calendar_date": - out.Values[i] = ec._ValidationResult_latest_calendar_date(ctx, field, obj) - case "files": - out.Values[i] = ec._ValidationResult_files(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "service_levels": - out.Values[i] = ec._ValidationResult_service_levels(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "agencies": - out.Values[i] = ec._ValidationResult_agencies(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "routes": - out.Values[i] = ec._ValidationResult_routes(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "stops": - out.Values[i] = ec._ValidationResult_stops(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "feed_infos": - out.Values[i] = ec._ValidationResult_feed_infos(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "realtime": - out.Values[i] = ec._ValidationResult_realtime(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52102,62 +53951,63 @@ var validationResultErrorImplementors = []string{"ValidationResultError"} func (ec *executionContext) _ValidationResultError(ctx context.Context, sel ast.SelectionSet, obj *model.ValidationResultError) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, validationResultErrorImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ValidationResultError") case "filename": - out.Values[i] = ec._ValidationResultError_filename(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "error_type": - out.Values[i] = ec._ValidationResultError_error_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "entity_id": - out.Values[i] = ec._ValidationResultError_entity_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "field": - out.Values[i] = ec._ValidationResultError_field(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "value": - out.Values[i] = ec._ValidationResultError_value(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "message": - out.Values[i] = ec._ValidationResultError_message(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52165,55 +54015,58 @@ var validationResultErrorGroupImplementors = []string{"ValidationResultErrorGrou func (ec *executionContext) _ValidationResultErrorGroup(ctx context.Context, sel ast.SelectionSet, obj *model.ValidationResultErrorGroup) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, validationResultErrorGroupImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ValidationResultErrorGroup") case "filename": - out.Values[i] = ec._ValidationResultErrorGroup_filename(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "error_type": - out.Values[i] = ec._ValidationResultErrorGroup_error_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "count": - out.Values[i] = ec._ValidationResultErrorGroup_count(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "limit": - out.Values[i] = ec._ValidationResultErrorGroup_limit(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "errors": - out.Values[i] = ec._ValidationResultErrorGroup_errors(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52221,48 +54074,47 @@ var vehiclePositionImplementors = []string{"VehiclePosition"} func (ec *executionContext) _VehiclePosition(ctx context.Context, sel ast.SelectionSet, obj *model.VehiclePosition) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, vehiclePositionImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("VehiclePosition") case "vehicle": - out.Values[i] = ec._VehiclePosition_vehicle(ctx, field, obj) - case "position": - out.Values[i] = ec._VehiclePosition_position(ctx, field, obj) - case "current_stop_sequence": - out.Values[i] = ec._VehiclePosition_current_stop_sequence(ctx, field, obj) - case "stop_id": - out.Values[i] = ec._VehiclePosition_stop_id(ctx, field, obj) - case "current_status": - out.Values[i] = ec._VehiclePosition_current_status(ctx, field, obj) - case "timestamp": - out.Values[i] = ec._VehiclePosition_timestamp(ctx, field, obj) - case "congestion_level": - out.Values[i] = ec._VehiclePosition_congestion_level(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52270,38 +54122,45 @@ var waypointImplementors = []string{"Waypoint"} func (ec *executionContext) _Waypoint(ctx context.Context, sel ast.SelectionSet, obj *model.Waypoint) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, waypointImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Waypoint") case "lon": - out.Values[i] = ec._Waypoint_lon(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "lat": - out.Values[i] = ec._Waypoint_lat(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": - out.Values[i] = ec._Waypoint_name(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52309,52 +54168,55 @@ var __DirectiveImplementors = []string{"__Directive"} func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__Directive") case "name": - out.Values[i] = ec.___Directive_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": - out.Values[i] = ec.___Directive_description(ctx, field, obj) - case "locations": - out.Values[i] = ec.___Directive_locations(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "args": - out.Values[i] = ec.___Directive_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isRepeatable": - out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52362,42 +54224,47 @@ var __EnumValueImplementors = []string{"__EnumValue"} func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__EnumValue") case "name": - out.Values[i] = ec.___EnumValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": - out.Values[i] = ec.___EnumValue_description(ctx, field, obj) - case "isDeprecated": - out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "deprecationReason": - out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52405,56 +54272,57 @@ var __FieldImplementors = []string{"__Field"} func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__Field") case "name": - out.Values[i] = ec.___Field_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": - out.Values[i] = ec.___Field_description(ctx, field, obj) - case "args": - out.Values[i] = ec.___Field_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "type": - out.Values[i] = ec.___Field_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "isDeprecated": - out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "deprecationReason": - out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52462,42 +54330,47 @@ var __InputValueImplementors = []string{"__InputValue"} func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__InputValue") case "name": - out.Values[i] = ec.___InputValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "description": - out.Values[i] = ec.___InputValue_description(ctx, field, obj) - case "type": - out.Values[i] = ec.___InputValue_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "defaultValue": - out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52505,53 +54378,54 @@ var __SchemaImplementors = []string{"__Schema"} func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__Schema") case "description": - out.Values[i] = ec.___Schema_description(ctx, field, obj) - case "types": - out.Values[i] = ec.___Schema_types(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "queryType": - out.Values[i] = ec.___Schema_queryType(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "mutationType": - out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) - case "subscriptionType": - out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) - case "directives": - out.Values[i] = ec.___Schema_directives(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52559,63 +54433,56 @@ var __TypeImplementors = []string{"__Type"} func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) + out := graphql.NewFieldSet(fields) - var invalids uint32 + deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__Type") case "kind": - out.Values[i] = ec.___Type_kind(ctx, field, obj) - if out.Values[i] == graphql.Null { - invalids++ + out.Invalids++ } case "name": - out.Values[i] = ec.___Type_name(ctx, field, obj) - case "description": - out.Values[i] = ec.___Type_description(ctx, field, obj) - case "fields": - out.Values[i] = ec.___Type_fields(ctx, field, obj) - case "interfaces": - out.Values[i] = ec.___Type_interfaces(ctx, field, obj) - case "possibleTypes": - out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) - case "enumValues": - out.Values[i] = ec.___Type_enumValues(ctx, field, obj) - case "inputFields": - out.Values[i] = ec.___Type_inputFields(ctx, field, obj) - case "ofType": - out.Values[i] = ec.___Type_ofType(ctx, field, obj) - case "specifiedByURL": - out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) - default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch() - if invalids > 0 { + out.Dispatch(ctx) + if out.Invalids > 0 { return graphql.Null } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + return out } @@ -52857,6 +54724,22 @@ func (ec *executionContext) marshalNCensusValue2ᚕᚖgithubᚗcomᚋinterline return ret } +func (ec *executionContext) unmarshalNCounts2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐCounts(ctx context.Context, v interface{}) (tt.Counts, error) { + var res tt.Counts + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNCounts2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐCounts(ctx context.Context, sel ast.SelectionSet, v tt.Counts) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return v +} + func (ec *executionContext) unmarshalNDate2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx context.Context, v interface{}) (tt.Date, error) { var res tt.Date err := res.UnmarshalGQL(v) @@ -56587,7 +58470,7 @@ func (ec *executionContext) marshalOLineString2githubᚗcomᚋinterlineᚑioᚋt return v } -func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]any, error) { if v == nil { return nil, nil } @@ -56595,7 +58478,7 @@ func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{} return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { return graphql.Null } diff --git a/model/models_gen.go b/model/models_gen.go index 9c432900..6f205808 100644 --- a/model/models_gen.go +++ b/model/models_gen.go @@ -12,46 +12,46 @@ import ( ) type AgencyFilter struct { - OnestopID *string `json:"onestop_id"` - FeedVersionSha1 *string `json:"feed_version_sha1"` - FeedOnestopID *string `json:"feed_onestop_id"` - AgencyID *string `json:"agency_id"` + OnestopID *string `json:"onestop_id,omitempty"` + FeedVersionSha1 *string `json:"feed_version_sha1,omitempty"` + FeedOnestopID *string `json:"feed_onestop_id,omitempty"` + AgencyID *string `json:"agency_id,omitempty"` // Search for records with this GTFS agency_name - AgencyName *string `json:"agency_name"` - Bbox *BoundingBox `json:"bbox"` - Within *tt.Polygon `json:"within"` + AgencyName *string `json:"agency_name,omitempty"` + Bbox *BoundingBox `json:"bbox,omitempty"` + Within *tt.Polygon `json:"within,omitempty"` // Search for agencies within a radius - Near *PointRadius `json:"near"` + Near *PointRadius `json:"near,omitempty"` // Full text search - Search *string `json:"search"` + Search *string `json:"search,omitempty"` // Search by city name (provided by Natural Earth) - CityName *string `json:"city_name"` + CityName *string `json:"city_name,omitempty"` // Search by country name (provided by Natural Earth) - Adm0Name *string `json:"adm0_name"` + Adm0Name *string `json:"adm0_name,omitempty"` // Search by state/province/division name (provided by Natural Earth) - Adm1Name *string `json:"adm1_name"` + Adm1Name *string `json:"adm1_name,omitempty"` // Search by country 2 letter ISO 3166 code (provided by Natural Earth) - Adm0Iso *string `json:"adm0_iso"` + Adm0Iso *string `json:"adm0_iso,omitempty"` // Search by state/province/division ISO 3166-2 code (provided by Natural Earth) - Adm1Iso *string `json:"adm1_iso"` - License *LicenseFilter `json:"license"` + Adm1Iso *string `json:"adm1_iso,omitempty"` + License *LicenseFilter `json:"license,omitempty"` } type AgencyPlaceFilter struct { - MinRank *float64 `json:"min_rank"` + MinRank *float64 `json:"min_rank,omitempty"` } // [Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed. type Alert struct { - ActivePeriod []*RTTimeRange `json:"active_period"` - Cause *string `json:"cause"` - Effect *string `json:"effect"` + ActivePeriod []*RTTimeRange `json:"active_period,omitempty"` + Cause *string `json:"cause,omitempty"` + Effect *string `json:"effect,omitempty"` HeaderText []*RTTranslation `json:"header_text"` DescriptionText []*RTTranslation `json:"description_text"` - TtsHeaderText []*RTTranslation `json:"tts_header_text"` - TtsDescriptionText []*RTTranslation `json:"tts_description_text"` - URL []*RTTranslation `json:"url"` - SeverityLevel *string `json:"severity_level"` + TtsHeaderText []*RTTranslation `json:"tts_header_text,omitempty"` + TtsDescriptionText []*RTTranslation `json:"tts_description_text,omitempty"` + URL []*RTTranslation `json:"url,omitempty"` + SeverityLevel *string `json:"severity_level,omitempty"` } type BoundingBox struct { @@ -62,28 +62,28 @@ type BoundingBox struct { } type CalendarDateFilter struct { - Date *tt.Date `json:"date"` - ExceptionType *int `json:"exception_type"` + Date *tt.Date `json:"date,omitempty"` + ExceptionType *int `json:"exception_type,omitempty"` } type DirectionRequest struct { To *WaypointInput `json:"to"` From *WaypointInput `json:"from"` Mode StepMode `json:"mode"` - DepartAt *time.Time `json:"depart_at"` + DepartAt *time.Time `json:"depart_at,omitempty"` } type Directions struct { Success bool `json:"success"` - Exception *string `json:"exception"` - DataSource *string `json:"data_source"` - Origin *Waypoint `json:"origin"` - Destination *Waypoint `json:"destination"` - Duration *Duration `json:"duration"` - Distance *Distance `json:"distance"` - StartTime *time.Time `json:"start_time"` - EndTime *time.Time `json:"end_time"` - Itineraries []*Itinerary `json:"itineraries"` + Exception *string `json:"exception,omitempty"` + DataSource *string `json:"data_source,omitempty"` + Origin *Waypoint `json:"origin,omitempty"` + Destination *Waypoint `json:"destination,omitempty"` + Duration *Duration `json:"duration,omitempty"` + Distance *Distance `json:"distance,omitempty"` + StartTime *time.Time `json:"start_time,omitempty"` + EndTime *time.Time `json:"end_time,omitempty"` + Itineraries []*Itinerary `json:"itineraries,omitempty"` } type Distance struct { @@ -97,34 +97,34 @@ type Duration struct { } type FeedFetchFilter struct { - Success *bool `json:"success"` + Success *bool `json:"success,omitempty"` } type FeedFilter struct { // Search for feed with a specific Onestop ID - OnestopID *string `json:"onestop_id"` + OnestopID *string `json:"onestop_id,omitempty"` // Search for feeds of certain data types - Spec []FeedSpecTypes `json:"spec"` + Spec []FeedSpecTypes `json:"spec,omitempty"` // Search for feeds with or without a fetch error - FetchError *bool `json:"fetch_error"` + FetchError *bool `json:"fetch_error,omitempty"` // Search for feeds by their import status - ImportStatus *ImportStatus `json:"import_status"` + ImportStatus *ImportStatus `json:"import_status,omitempty"` // Full text search - Search *string `json:"search"` + Search *string `json:"search,omitempty"` // Search for feeds with a tag - Tags *tt.Tags `json:"tags"` + Tags *tt.Tags `json:"tags,omitempty"` // Search for feeds by their source URLs - SourceURL *FeedSourceURL `json:"source_url"` - License *LicenseFilter `json:"license"` - Bbox *BoundingBox `json:"bbox"` - Within *tt.Polygon `json:"within"` - Near *PointRadius `json:"near"` + SourceURL *FeedSourceURL `json:"source_url,omitempty"` + License *LicenseFilter `json:"license,omitempty"` + Bbox *BoundingBox `json:"bbox,omitempty"` + Within *tt.Polygon `json:"within,omitempty"` + Near *PointRadius `json:"near,omitempty"` } type FeedSourceURL struct { - URL *string `json:"url"` - Type *FeedSourceURLTypes `json:"type"` - CaseSensitive *bool `json:"case_sensitive"` + URL *string `json:"url,omitempty"` + Type *FeedSourceURLTypes `json:"type,omitempty"` + CaseSensitive *bool `json:"case_sensitive,omitempty"` } type FeedVersionDeleteResult struct { @@ -132,25 +132,25 @@ type FeedVersionDeleteResult struct { } type FeedVersionFilter struct { - ImportStatus *ImportStatus `json:"import_status"` - FeedOnestopID *string `json:"feed_onestop_id"` - Sha1 *string `json:"sha1"` - File *string `json:"file"` - FeedIds []int `json:"feed_ids"` - Covers *ServiceCoversFilter `json:"covers"` - Bbox *BoundingBox `json:"bbox"` - Within *tt.Polygon `json:"within"` - Near *PointRadius `json:"near"` + ImportStatus *ImportStatus `json:"import_status,omitempty"` + FeedOnestopID *string `json:"feed_onestop_id,omitempty"` + Sha1 *string `json:"sha1,omitempty"` + File *string `json:"file,omitempty"` + FeedIds []int `json:"feed_ids,omitempty"` + Covers *ServiceCoversFilter `json:"covers,omitempty"` + Bbox *BoundingBox `json:"bbox,omitempty"` + Within *tt.Polygon `json:"within,omitempty"` + Near *PointRadius `json:"near,omitempty"` } type FeedVersionServiceLevelFilter struct { - StartDate *tt.Date `json:"start_date"` - EndDate *tt.Date `json:"end_date"` + StartDate *tt.Date `json:"start_date,omitempty"` + EndDate *tt.Date `json:"end_date,omitempty"` } type FeedVersionSetInput struct { - Name *string `json:"name"` - Description *string `json:"description"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` } type FeedVersionUnimportResult struct { @@ -158,11 +158,11 @@ type FeedVersionUnimportResult struct { } type GbfsBikeRequest struct { - Near *PointRadius `json:"near"` + Near *PointRadius `json:"near,omitempty"` } type GbfsDockRequest struct { - Near *PointRadius `json:"near"` + Near *PointRadius `json:"near,omitempty"` } type Itinerary struct { @@ -172,7 +172,7 @@ type Itinerary struct { EndTime time.Time `json:"end_time"` From *Waypoint `json:"from"` To *Waypoint `json:"to"` - Legs []*Leg `json:"legs"` + Legs []*Leg `json:"legs,omitempty"` } type Leg struct { @@ -180,54 +180,54 @@ type Leg struct { Distance *Distance `json:"distance"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` - From *Waypoint `json:"from"` - To *Waypoint `json:"to"` - Steps []*Step `json:"steps"` + From *Waypoint `json:"from,omitempty"` + To *Waypoint `json:"to,omitempty"` + Steps []*Step `json:"steps,omitempty"` Geometry tt.LineString `json:"geometry"` } type LicenseFilter struct { - ShareAlikeOptional *LicenseValue `json:"share_alike_optional"` - CreateDerivedProduct *LicenseValue `json:"create_derived_product"` - CommercialUseAllowed *LicenseValue `json:"commercial_use_allowed"` - UseWithoutAttribution *LicenseValue `json:"use_without_attribution"` - RedistributionAllowed *LicenseValue `json:"redistribution_allowed"` + ShareAlikeOptional *LicenseValue `json:"share_alike_optional,omitempty"` + CreateDerivedProduct *LicenseValue `json:"create_derived_product,omitempty"` + CommercialUseAllowed *LicenseValue `json:"commercial_use_allowed,omitempty"` + UseWithoutAttribution *LicenseValue `json:"use_without_attribution,omitempty"` + RedistributionAllowed *LicenseValue `json:"redistribution_allowed,omitempty"` } type Me struct { ID string `json:"id"` - Name *string `json:"name"` - Email *string `json:"email"` - ExternalData map[string]interface{} `json:"external_data"` + Name *string `json:"name,omitempty"` + Email *string `json:"email,omitempty"` + ExternalData map[string]interface{} `json:"external_data,omitempty"` } type OperatorFilter struct { - Merged *bool `json:"merged"` - OnestopID *string `json:"onestop_id"` - FeedOnestopID *string `json:"feed_onestop_id"` - AgencyID *string `json:"agency_id"` - Search *string `json:"search"` - Tags *tt.Tags `json:"tags"` - CityName *string `json:"city_name"` - Adm0Name *string `json:"adm0_name"` - Adm1Name *string `json:"adm1_name"` - Adm0Iso *string `json:"adm0_iso"` - Adm1Iso *string `json:"adm1_iso"` - License *LicenseFilter `json:"license"` - Bbox *BoundingBox `json:"bbox"` - Within *tt.Polygon `json:"within"` - Near *PointRadius `json:"near"` + Merged *bool `json:"merged,omitempty"` + OnestopID *string `json:"onestop_id,omitempty"` + FeedOnestopID *string `json:"feed_onestop_id,omitempty"` + AgencyID *string `json:"agency_id,omitempty"` + Search *string `json:"search,omitempty"` + Tags *tt.Tags `json:"tags,omitempty"` + CityName *string `json:"city_name,omitempty"` + Adm0Name *string `json:"adm0_name,omitempty"` + Adm1Name *string `json:"adm1_name,omitempty"` + Adm0Iso *string `json:"adm0_iso,omitempty"` + Adm1Iso *string `json:"adm1_iso,omitempty"` + License *LicenseFilter `json:"license,omitempty"` + Bbox *BoundingBox `json:"bbox,omitempty"` + Within *tt.Polygon `json:"within,omitempty"` + Near *PointRadius `json:"near,omitempty"` } type PathwayFilter struct { - PathwayMode *int `json:"pathway_mode"` + PathwayMode *int `json:"pathway_mode,omitempty"` } type PlaceFilter struct { - MinRank *float64 `json:"min_rank"` - Adm0Name *string `json:"adm0_name"` - Adm1Name *string `json:"adm1_name"` - CityName *string `json:"city_name"` + MinRank *float64 `json:"min_rank,omitempty"` + Adm0Name *string `json:"adm0_name,omitempty"` + Adm1Name *string `json:"adm1_name,omitempty"` + CityName *string `json:"city_name,omitempty"` } type PointRadius struct { @@ -238,56 +238,56 @@ type PointRadius struct { // See https://gtfs.org/reference/realtime/v2/#message-timerange type RTTimeRange struct { - Start *int `json:"start"` - End *int `json:"end"` + Start *int `json:"start,omitempty"` + End *int `json:"end,omitempty"` } // See https://gtfs.org/reference/realtime/v2/#message-translatedstring type RTTranslation struct { Text string `json:"text"` - Language *string `json:"language"` + Language *string `json:"language,omitempty"` } // See https://gtfs.org/reference/realtime/v2/#message-tripdescriptor type RTTripDescriptor struct { - TripID *string `json:"trip_id"` - RouteID *string `json:"route_id"` - DirectionID *int `json:"direction_id"` - StartTime *tt.WideTime `json:"start_time"` - StartDate *tt.Date `json:"start_date"` - ScheduleRelationship *string `json:"schedule_relationship"` + TripID *string `json:"trip_id,omitempty"` + RouteID *string `json:"route_id,omitempty"` + DirectionID *int `json:"direction_id,omitempty"` + StartTime *tt.WideTime `json:"start_time,omitempty"` + StartDate *tt.Date `json:"start_date,omitempty"` + ScheduleRelationship *string `json:"schedule_relationship,omitempty"` } // See https://gtfs.org/reference/realtime/v2/#message-vehicledescriptor type RTVehicleDescriptor struct { - ID *string `json:"id"` - Label *string `json:"label"` - LicensePlate *string `json:"license_plate"` + ID *string `json:"id,omitempty"` + Label *string `json:"label,omitempty"` + LicensePlate *string `json:"license_plate,omitempty"` } type RouteFilter struct { - OnestopID *string `json:"onestop_id"` - OnestopIds []string `json:"onestop_ids"` - AllowPreviousOnestopIds *bool `json:"allow_previous_onestop_ids"` - FeedVersionSha1 *string `json:"feed_version_sha1"` - FeedOnestopID *string `json:"feed_onestop_id"` - RouteID *string `json:"route_id"` - RouteType *int `json:"route_type"` - Serviced *bool `json:"serviced"` - Bbox *BoundingBox `json:"bbox"` - Within *tt.Polygon `json:"within"` - Near *PointRadius `json:"near"` - Search *string `json:"search"` - OperatorOnestopID *string `json:"operator_onestop_id"` - License *LicenseFilter `json:"license"` - AgencyIds []int `json:"agency_ids"` + OnestopID *string `json:"onestop_id,omitempty"` + OnestopIds []string `json:"onestop_ids,omitempty"` + AllowPreviousOnestopIds *bool `json:"allow_previous_onestop_ids,omitempty"` + FeedVersionSha1 *string `json:"feed_version_sha1,omitempty"` + FeedOnestopID *string `json:"feed_onestop_id,omitempty"` + RouteID *string `json:"route_id,omitempty"` + RouteType *int `json:"route_type,omitempty"` + Serviced *bool `json:"serviced,omitempty"` + Bbox *BoundingBox `json:"bbox,omitempty"` + Within *tt.Polygon `json:"within,omitempty"` + Near *PointRadius `json:"near,omitempty"` + Search *string `json:"search,omitempty"` + OperatorOnestopID *string `json:"operator_onestop_id,omitempty"` + License *LicenseFilter `json:"license,omitempty"` + AgencyIds []int `json:"agency_ids,omitempty"` } type ServiceCoversFilter struct { - StartDate *tt.Date `json:"start_date"` - EndDate *tt.Date `json:"end_date"` - FetchedAfter *time.Time `json:"fetched_after"` - FetchedBefore *time.Time `json:"fetched_before"` + StartDate *tt.Date `json:"start_date,omitempty"` + EndDate *tt.Date `json:"end_date,omitempty"` + FetchedAfter *time.Time `json:"fetched_after,omitempty"` + FetchedBefore *time.Time `json:"fetched_before,omitempty"` } type Step struct { @@ -295,47 +295,47 @@ type Step struct { Distance *Distance `json:"distance"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` - To *Waypoint `json:"to"` + To *Waypoint `json:"to,omitempty"` Mode StepMode `json:"mode"` Instruction string `json:"instruction"` GeometryOffset int `json:"geometry_offset"` } type StopFilter struct { - OnestopID *string `json:"onestop_id"` - OnestopIds []string `json:"onestop_ids"` - AllowPreviousOnestopIds *bool `json:"allow_previous_onestop_ids"` - FeedVersionSha1 *string `json:"feed_version_sha1"` - FeedOnestopID *string `json:"feed_onestop_id"` - StopID *string `json:"stop_id"` - StopCode *string `json:"stop_code"` - LocationType *int `json:"location_type"` - Serviced *bool `json:"serviced"` - Bbox *BoundingBox `json:"bbox"` - Within *tt.Polygon `json:"within"` - Near *PointRadius `json:"near"` - Search *string `json:"search"` - License *LicenseFilter `json:"license"` - ServedByOnestopIds []string `json:"served_by_onestop_ids"` - ServedByRouteType *int `json:"served_by_route_type"` - AgencyIds []int `json:"agency_ids"` + OnestopID *string `json:"onestop_id,omitempty"` + OnestopIds []string `json:"onestop_ids,omitempty"` + AllowPreviousOnestopIds *bool `json:"allow_previous_onestop_ids,omitempty"` + FeedVersionSha1 *string `json:"feed_version_sha1,omitempty"` + FeedOnestopID *string `json:"feed_onestop_id,omitempty"` + StopID *string `json:"stop_id,omitempty"` + StopCode *string `json:"stop_code,omitempty"` + LocationType *int `json:"location_type,omitempty"` + Serviced *bool `json:"serviced,omitempty"` + Bbox *BoundingBox `json:"bbox,omitempty"` + Within *tt.Polygon `json:"within,omitempty"` + Near *PointRadius `json:"near,omitempty"` + Search *string `json:"search,omitempty"` + License *LicenseFilter `json:"license,omitempty"` + ServedByOnestopIds []string `json:"served_by_onestop_ids,omitempty"` + ServedByRouteType *int `json:"served_by_route_type,omitempty"` + AgencyIds []int `json:"agency_ids,omitempty"` } type StopObservation struct { - ScheduleRelationship *string `json:"schedule_relationship"` - TripStartDate *tt.Date `json:"trip_start_date"` - TripStartTime *tt.WideTime `json:"trip_start_time"` - FromStopID *string `json:"from_stop_id"` - ToStopID *string `json:"to_stop_id"` - AgencyID *string `json:"agency_id"` - RouteID *string `json:"route_id"` - TripID *string `json:"trip_id"` - StopSequence *int `json:"stop_sequence"` - Source *string `json:"source"` - ScheduledArrivalTime *tt.WideTime `json:"scheduled_arrival_time"` - ScheduledDepartureTime *tt.WideTime `json:"scheduled_departure_time"` - ObservedArrivalTime *tt.WideTime `json:"observed_arrival_time"` - ObservedDepartureTime *tt.WideTime `json:"observed_departure_time"` + ScheduleRelationship *string `json:"schedule_relationship,omitempty"` + TripStartDate *tt.Date `json:"trip_start_date,omitempty"` + TripStartTime *tt.WideTime `json:"trip_start_time,omitempty"` + FromStopID *string `json:"from_stop_id,omitempty"` + ToStopID *string `json:"to_stop_id,omitempty"` + AgencyID *string `json:"agency_id,omitempty"` + RouteID *string `json:"route_id,omitempty"` + TripID *string `json:"trip_id,omitempty"` + StopSequence *int `json:"stop_sequence,omitempty"` + Source *string `json:"source,omitempty"` + ScheduledArrivalTime *tt.WideTime `json:"scheduled_arrival_time,omitempty"` + ScheduledDepartureTime *tt.WideTime `json:"scheduled_departure_time,omitempty"` + ObservedArrivalTime *tt.WideTime `json:"observed_arrival_time,omitempty"` + ObservedDepartureTime *tt.WideTime `json:"observed_departure_time,omitempty"` } type StopObservationFilter struct { @@ -345,63 +345,63 @@ type StopObservationFilter struct { } type StopPlace struct { - Adm1Name *string `json:"adm1_name"` - Adm0Name *string `json:"adm0_name"` - Adm0Iso *string `json:"adm0_iso"` - Adm1Iso *string `json:"adm1_iso"` + Adm1Name *string `json:"adm1_name,omitempty"` + Adm0Name *string `json:"adm0_name,omitempty"` + Adm0Iso *string `json:"adm0_iso,omitempty"` + Adm1Iso *string `json:"adm1_iso,omitempty"` } type StopTimeFilter struct { - ServiceDate *tt.Date `json:"service_date"` - UseServiceWindow *bool `json:"use_service_window"` - StartTime *int `json:"start_time"` - EndTime *int `json:"end_time"` - Start *tt.WideTime `json:"start"` - End *tt.WideTime `json:"end"` - Next *int `json:"next"` - RouteOnestopIds []string `json:"route_onestop_ids"` - AllowPreviousRouteOnestopIds *bool `json:"allow_previous_route_onestop_ids"` - ExcludeFirst *bool `json:"exclude_first"` - ExcludeLast *bool `json:"exclude_last"` + ServiceDate *tt.Date `json:"service_date,omitempty"` + UseServiceWindow *bool `json:"use_service_window,omitempty"` + StartTime *int `json:"start_time,omitempty"` + EndTime *int `json:"end_time,omitempty"` + Start *tt.WideTime `json:"start,omitempty"` + End *tt.WideTime `json:"end,omitempty"` + Next *int `json:"next,omitempty"` + RouteOnestopIds []string `json:"route_onestop_ids,omitempty"` + AllowPreviousRouteOnestopIds *bool `json:"allow_previous_route_onestop_ids,omitempty"` + ExcludeFirst *bool `json:"exclude_first,omitempty"` + ExcludeLast *bool `json:"exclude_last,omitempty"` } type TripFilter struct { - ServiceDate *tt.Date `json:"service_date"` - TripID *string `json:"trip_id"` - StopPatternID *int `json:"stop_pattern_id"` - License *LicenseFilter `json:"license"` - RouteIds []int `json:"route_ids"` - RouteOnestopIds []string `json:"route_onestop_ids"` - FeedVersionSha1 *string `json:"feed_version_sha1"` - FeedOnestopID *string `json:"feed_onestop_id"` + ServiceDate *tt.Date `json:"service_date,omitempty"` + TripID *string `json:"trip_id,omitempty"` + StopPatternID *int `json:"stop_pattern_id,omitempty"` + License *LicenseFilter `json:"license,omitempty"` + RouteIds []int `json:"route_ids,omitempty"` + RouteOnestopIds []string `json:"route_onestop_ids,omitempty"` + FeedVersionSha1 *string `json:"feed_version_sha1,omitempty"` + FeedOnestopID *string `json:"feed_onestop_id,omitempty"` } type TripStopTimeFilter struct { - Start *tt.WideTime `json:"start"` - End *tt.WideTime `json:"end"` + Start *tt.WideTime `json:"start,omitempty"` + End *tt.WideTime `json:"end,omitempty"` } // [Vehicle Position](https://gtfs.org/reference/realtime/v2/#message-vehicleposition) message provided by a source GTFS Realtime feed. type VehiclePosition struct { - Vehicle *RTVehicleDescriptor `json:"vehicle"` - Position *tt.Point `json:"position"` - CurrentStopSequence *int `json:"current_stop_sequence"` - StopID *Stop `json:"stop_id"` - CurrentStatus *string `json:"current_status"` - Timestamp *time.Time `json:"timestamp"` - CongestionLevel *string `json:"congestion_level"` + Vehicle *RTVehicleDescriptor `json:"vehicle,omitempty"` + Position *tt.Point `json:"position,omitempty"` + CurrentStopSequence *int `json:"current_stop_sequence,omitempty"` + StopID *Stop `json:"stop_id,omitempty"` + CurrentStatus *string `json:"current_status,omitempty"` + Timestamp *time.Time `json:"timestamp,omitempty"` + CongestionLevel *string `json:"congestion_level,omitempty"` } type Waypoint struct { Lon float64 `json:"lon"` Lat float64 `json:"lat"` - Name *string `json:"name"` + Name *string `json:"name,omitempty"` } type WaypointInput struct { Lon float64 `json:"lon"` Lat float64 `json:"lat"` - Name *string `json:"name"` + Name *string `json:"name,omitempty"` } type DistanceUnit string diff --git a/schema/schema.graphqls b/schema/schema.graphqls index b6c1b73d..ed9006f9 100644 --- a/schema/schema.graphqls +++ b/schema/schema.graphqls @@ -1,4 +1,5 @@ # Scalar types +scalar Counts scalar Tags scalar Geometry scalar Time @@ -200,6 +201,8 @@ type FeedVersionFileInfo { header: String! csv_like: Boolean! size: Int! + values_count: Counts! + values_unique: Counts! } type FeedVersionGtfsImport { From 0cf2ce02841e698f4422c3b0bad734f113e64ade Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Fri, 20 Oct 2023 16:48:33 -0700 Subject: [PATCH 2/6] Bump --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 58894471..007bccc6 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 github.com/graph-gophers/dataloader/v7 v7.1.0 github.com/hypirion/go-filecache v0.0.0-20160810125507-e3e6ef6981f0 - github.com/interline-io/transitland-lib v0.13.1-0.20231017190530-476a215be8bc + github.com/interline-io/transitland-lib v0.13.1-0.20231020230054-cc51ca21c554 github.com/jellydator/ttlcache/v2 v2.11.1 github.com/jmoiron/sqlx v1.3.5 github.com/lib/pq v1.10.7 diff --git a/go.sum b/go.sum index 4ec709bd..9de866a0 100644 --- a/go.sum +++ b/go.sum @@ -266,6 +266,8 @@ github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1: github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/interline-io/transitland-lib v0.13.1-0.20231017190530-476a215be8bc h1:GFzYjMovsDjXvCq5YNTNHN2w1dJ41rXpo70pNw2bpLI= github.com/interline-io/transitland-lib v0.13.1-0.20231017190530-476a215be8bc/go.mod h1:FgShFbyforb3tBSApO6wBlOedaGT6cXyWQlhOYClEyM= +github.com/interline-io/transitland-lib v0.13.1-0.20231020230054-cc51ca21c554 h1:GZnrdlKxRuYr2oh5khDrB8+xOwNVWY5vw33ZuusQbsY= +github.com/interline-io/transitland-lib v0.13.1-0.20231020230054-cc51ca21c554/go.mod h1:FgShFbyforb3tBSApO6wBlOedaGT6cXyWQlhOYClEyM= github.com/jarcoal/httpmock v1.3.0 h1:2RJ8GP0IIaWwcC9Fp2BmVi8Kog3v2Hn7VXM3fTd+nuc= github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 h1:IPJ3dvxmJ4uczJe5YQdrYB16oTJlGSC/OyZDqUk9xX4= github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869/go.mod h1:cJ6Cj7dQo+O6GJNiMx+Pa94qKj+TG8ONdKHgMNIyyag= From 7b9345590360c512726bba78c8d8cff4cfb17493 Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Fri, 20 Oct 2023 16:52:42 -0700 Subject: [PATCH 3/6] go mod tidy --- go.sum | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/go.sum b/go.sum index 9de866a0..f2d89d60 100644 --- a/go.sum +++ b/go.sum @@ -28,7 +28,6 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= github.com/Masterminds/squirrel v1.5.3 h1:YPpoceAcxuzIljlr5iWpNKaql7hLeG1KLSrhvdHpkZc= github.com/Masterminds/squirrel v1.5.3/go.mod h1:NNaOrjSoIDfDA40n7sr2tPNZRfjzjA400rg+riTZj10= -github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/PuerkitoBio/rehttp v1.1.0 h1:JFZ7OeK+hbJpTxhNB0NDZT47AuXqCU0Smxfjtph7/Rs= github.com/PuerkitoBio/rehttp v1.1.0/go.mod h1:LUwKPoDbDIA2RL5wYZCNsQ90cx4OJ4AWBmq6KzWZL1s= @@ -132,8 +131,6 @@ github.com/digitalocean/go-workers2 v0.10.3/go.mod h1:4F0tUdjgqV9ZOGCTmn5Cr58CVs github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U= github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= @@ -160,7 +157,6 @@ github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9 github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-redis/redis/v8 v8.4.4/go.mod h1:nA0bQuF0i5JFx4Ta9RZxGKXFrQ8cRWntra97f0196iY= github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= @@ -173,7 +169,6 @@ github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg78 github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= @@ -264,8 +259,6 @@ github.com/iancoleman/orderedmap v0.2.0 h1:sq1N/TFpYH++aViPcaKjys3bDClUEU7s5B+z6 github.com/iancoleman/orderedmap v0.2.0/go.mod h1:N0Wam8K1arqPXNWjMo21EXnBPOPp36vB07FNRdD2geA= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/interline-io/transitland-lib v0.13.1-0.20231017190530-476a215be8bc h1:GFzYjMovsDjXvCq5YNTNHN2w1dJ41rXpo70pNw2bpLI= -github.com/interline-io/transitland-lib v0.13.1-0.20231017190530-476a215be8bc/go.mod h1:FgShFbyforb3tBSApO6wBlOedaGT6cXyWQlhOYClEyM= github.com/interline-io/transitland-lib v0.13.1-0.20231020230054-cc51ca21c554 h1:GZnrdlKxRuYr2oh5khDrB8+xOwNVWY5vw33ZuusQbsY= github.com/interline-io/transitland-lib v0.13.1-0.20231020230054-cc51ca21c554/go.mod h1:FgShFbyforb3tBSApO6wBlOedaGT6cXyWQlhOYClEyM= github.com/jarcoal/httpmock v1.3.0 h1:2RJ8GP0IIaWwcC9Fp2BmVi8Kog3v2Hn7VXM3fTd+nuc= @@ -284,13 +277,10 @@ github.com/jmoiron/sqlx v1.3.5/go.mod h1:nRVWtLre0KfCLJvgxzCsLVMogSvQ1zNJtpYr2Cc github.com/joeshaw/gengen v0.0.0-20190604015154-c77d87825f5a/go.mod h1:v2qvRL8Xwk4OlARK6gPlf2JreZXzv0dYp/8+kUJ0y7Q= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -342,9 +332,7 @@ github.com/mmcloughlin/geohash v0.10.0 h1:9w1HchfDfdeLc+jFEf/04D27KP7E2QmpDu52wP github.com/mmcloughlin/geohash v0.10.0/go.mod h1:oNZxQo5yWJh0eMQEP/8hwQuVx9Z9tjwFUqcTB1SmG0c= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.6/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= @@ -423,7 +411,6 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= From 3d679839856e45bab77112310d23cb718246c6eb Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Fri, 20 Oct 2023 16:55:31 -0700 Subject: [PATCH 4/6] Partial revert --- go.mod | 15 +++++++-------- go.sum | 36 ++++++++++++++++++------------------ 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/go.mod b/go.mod index 007bccc6..013d05ac 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/interline-io/transitland-server go 1.18 require ( - github.com/99designs/gqlgen v0.17.39 + github.com/99designs/gqlgen v0.17.26 github.com/Masterminds/squirrel v1.5.3 github.com/amberflo/metering-go/v2 v2.0.1 github.com/auth0/go-auth0 v0.17.2 @@ -34,7 +34,7 @@ require ( github.com/tidwall/rtree v1.10.0 github.com/tidwall/tinylru v1.1.0 github.com/twpayne/go-geom v1.5.1 - github.com/vektah/gqlparser/v2 v2.5.10 + github.com/vektah/gqlparser/v2 v2.5.1 github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c google.golang.org/grpc v1.56.0 google.golang.org/protobuf v1.30.0 @@ -76,11 +76,11 @@ require ( github.com/golang-jwt/jwt/v4 v4.5.0 // indirect github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect github.com/golang/protobuf v1.5.3 // indirect - github.com/google/uuid v1.3.1 // indirect + github.com/google/uuid v1.3.0 // indirect github.com/gorilla/websocket v1.5.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/golang-lru/v2 v2.0.3 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.1 // indirect github.com/iancoleman/orderedmap v0.2.0 // indirect github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 // indirect github.com/jlaffaye/ftp v0.1.0 // indirect @@ -88,7 +88,7 @@ require ( github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mattn/go-isatty v0.0.17 // indirect github.com/mattn/go-sqlite3 v1.14.16 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect @@ -100,7 +100,6 @@ require ( github.com/prometheus/procfs v0.9.0 // indirect github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3 // indirect github.com/snabb/isoweek v1.0.3 // indirect - github.com/sosodev/duration v1.2.0 // indirect github.com/tidwall/geoindex v1.7.0 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.1 // indirect @@ -109,10 +108,10 @@ require ( golang.org/x/image v0.6.0 // indirect golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sync v0.4.0 // indirect + golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect - golang.org/x/tools v0.14.0 // indirect + golang.org/x/tools v0.7.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index f2d89d60..c299b8d1 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,8 @@ cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqCl cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/99designs/gqlgen v0.17.39 h1:wPTAyc2fqVjAWT5DsJ21k/lLudgnXzURwbsjVNegFpU= -github.com/99designs/gqlgen v0.17.39/go.mod h1:b62q1USk82GYIVjC60h02YguAZLqYZtvWml8KkhJps4= +github.com/99designs/gqlgen v0.17.26 h1:fxgSTbPf1G30uWAWSoHd+9gSNMagmP04k58ThJ1/ikQ= +github.com/99designs/gqlgen v0.17.26/go.mod h1:i4rEatMrzzu6RXaHydq1nmEPZkb3bKQsnxNRHS4DQB4= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 h1:rTnT/Jrcm+figWlYz4Ixzt0SJVR2cMC8lvZcimipiEY= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0/go.mod h1:ON4tFdPTwRcgWEaVDrN3584Ef+b7GgSJaXxe5fW9t4M= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O0ZANcHoj3rO0PoQ3jglUJA= @@ -31,6 +31,7 @@ github.com/Masterminds/squirrel v1.5.3/go.mod h1:NNaOrjSoIDfDA40n7sr2tPNZRfjzjA4 github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/PuerkitoBio/rehttp v1.1.0 h1:JFZ7OeK+hbJpTxhNB0NDZT47AuXqCU0Smxfjtph7/Rs= github.com/PuerkitoBio/rehttp v1.1.0/go.mod h1:LUwKPoDbDIA2RL5wYZCNsQ90cx4OJ4AWBmq6KzWZL1s= +github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= @@ -38,6 +39,7 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF github.com/amberflo/metering-go/v2 v2.0.1 h1:4FXP837vZVOj1zHJIqmPC6rPAHKY8D6D7X/cia92VhI= github.com/amberflo/metering-go/v2 v2.0.1/go.mod h1:6IGhO3TgPMXhg5h/u0SC1NuQEhX7mU3MfEPBAfq1aXI= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= +github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= @@ -213,8 +215,8 @@ github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OI github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.4/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= -github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= @@ -245,8 +247,8 @@ github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru/v2 v2.0.3 h1:kmRrRLlInXvng0SmLxmQpQkpbYAvcXm7NPDrgxJa9mE= -github.com/hashicorp/golang-lru/v2 v2.0.3/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/hashicorp/golang-lru/v2 v2.0.1 h1:5pv5N1lT1fjLg2VQ5KWc7kmucp2x/kvFOnxuVTqZ6x4= +github.com/hashicorp/golang-lru/v2 v2.0.1/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= @@ -309,8 +311,8 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= +github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= @@ -391,7 +393,8 @@ github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3 h1:ZuhckGJ10ulaKkdvJtiAqsLTiPrLaXSdnVgXJKJkTxE= github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3/go.mod h1:9/Rh6yILuLysoQnZ2oNooD2g7aBnvM7r/fNVxRNWfBc= -github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= +github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= @@ -399,8 +402,6 @@ github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9 github.com/snabb/isoweek v1.0.3 h1:BwEULUhj7UToLLa7FivDTLzA4y1epTYkLhnn31huBRs= github.com/snabb/isoweek v1.0.3/go.mod h1:J5hJfY1CG56xmKCC/4XfoaWZcOiB+qntmyKEDATSnlw= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/sosodev/duration v1.2.0 h1:pqK/FLSjsAADWY74SyWDCjOcd5l7H8GSnnOGEB9A1Us= -github.com/sosodev/duration v1.2.0/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= @@ -443,8 +444,8 @@ github.com/tkrajina/gpxgo v1.2.1/go.mod h1:795sjVRFo5wWyN6oOZp0RYienGGBJjpAlgOz2 github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/twpayne/go-geom v1.5.1 h1:8MmGNqjDaepxHqA2/J2AftwxKzzCXmQx1gX+syYctyA= github.com/twpayne/go-geom v1.5.1/go.mod h1:Ixuwq8wG6UqI/udYOkKFHJIktCHN0yCozVDng4rYQUQ= -github.com/vektah/gqlparser/v2 v2.5.10 h1:6zSM4azXC9u4Nxy5YmdmGu4uKamfwsdKTwp5zsEealU= -github.com/vektah/gqlparser/v2 v2.5.10/go.mod h1:1rCcfwB2ekJofmluGWXMSEnPMZgbxzwj6FaZ/4OT8Cc= +github.com/vektah/gqlparser/v2 v2.5.1 h1:ZGu+bquAY23jsxDRcYpWjttRZrUz07LbiY77gUOHcr4= +github.com/vektah/gqlparser/v2 v2.5.1/go.mod h1:mPgqFBu/woKTVYWyNk8cO3kh4S/f4aRFZrvOnp3hmCs= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c h1:3lbZUMbMiGUW/LMkfsEABsc5zNT9+b1CvsJx47JzJ8g= github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c/go.mod h1:UrdRz5enIKZ63MEE3IF9l2/ebyx59GyGgPi+tICQdmM= @@ -537,9 +538,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= -golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -576,7 +576,6 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -623,8 +622,8 @@ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210112230658-8b4aab62c064/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= -golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= +golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= +golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -675,6 +674,7 @@ google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/dnaeon/go-vcr.v2 v2.3.0 h1:nwyjLPYlDmZkurnsEr5iWdjqy8kM+xV80E3TbvTA4Ow= From 9c60426f4079716248f116c5f000f969d63ea31a Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Fri, 20 Oct 2023 16:56:39 -0700 Subject: [PATCH 5/6] Fix gqlgen output --- internal/generated/gqlout/generated.go | 6558 +++++++++--------------- model/models_gen.go | 388 +- 2 files changed, 2604 insertions(+), 4342 deletions(-) diff --git a/internal/generated/gqlout/generated.go b/internal/generated/gqlout/generated.go index c7c03e0e..4d7ee805 100644 --- a/internal/generated/gqlout/generated.go +++ b/internal/generated/gqlout/generated.go @@ -25,7 +25,6 @@ import ( // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { return &executableSchema{ - schema: cfg.Schema, resolvers: cfg.Resolvers, directives: cfg.Directives, complexity: cfg.Complexity, @@ -33,7 +32,6 @@ func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { } type Config struct { - Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot @@ -1152,21 +1150,17 @@ type TripResolver interface { } type executableSchema struct { - schema *ast.Schema resolvers ResolverRoot directives DirectiveRoot complexity ComplexityRoot } func (e *executableSchema) Schema() *ast.Schema { - if e.schema != nil { - return e.schema - } return parsedSchema } func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { - ec := executionContext{nil, e, 0, 0, nil} + ec := executionContext{nil, e} _ = ec switch typeName + "." + field { @@ -6083,7 +6077,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} + ec := executionContext{rc, e} inputUnmarshalMap := graphql.BuildUnmarshalerMap( ec.unmarshalInputAgencyFilter, ec.unmarshalInputAgencyPlaceFilter, @@ -6117,33 +6111,18 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { switch rc.Operation.Operation { case ast.Query: return func(ctx context.Context) *graphql.Response { - var response graphql.Response - var data graphql.Marshaler - if first { - first = false - ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._Query(ctx, rc.Operation.SelectionSet) - } else { - if atomic.LoadInt32(&ec.pendingDeferred) > 0 { - result := <-ec.deferredResults - atomic.AddInt32(&ec.pendingDeferred, -1) - data = result.Result - response.Path = result.Path - response.Label = result.Label - response.Errors = result.Errors - } else { - return nil - } + if !first { + return nil } + first = false + ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) + data := ec._Query(ctx, rc.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) - response.Data = buf.Bytes() - if atomic.LoadInt32(&ec.deferred) > 0 { - hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 - response.HasNext = &hasNext - } - return &response + return &graphql.Response{ + Data: buf.Bytes(), + } } case ast.Mutation: return func(ctx context.Context) *graphql.Response { @@ -6169,42 +6148,20 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { type executionContext struct { *graphql.OperationContext *executableSchema - deferred int32 - pendingDeferred int32 - deferredResults chan graphql.DeferredResult -} - -func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { - atomic.AddInt32(&ec.pendingDeferred, 1) - go func() { - ctx := graphql.WithFreshResponseContext(dg.Context) - dg.FieldSet.Dispatch(ctx) - ds := graphql.DeferredResult{ - Path: dg.Path, - Label: dg.Label, - Result: dg.FieldSet, - Errors: graphql.GetErrors(ctx), - } - // null fields should bubble up - if dg.FieldSet.Invalids > 0 { - ds.Result = graphql.Null - } - ec.deferredResults <- ds - }() } func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { if ec.DisableIntrospection { return nil, errors.New("introspection disabled") } - return introspection.WrapSchema(ec.Schema()), nil + return introspection.WrapSchema(parsedSchema), nil } func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { if ec.DisableIntrospection { return nil, errors.New("introspection disabled") } - return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil + return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil } var sources = []*ast.Source{ @@ -10018,7 +9975,7 @@ func (ec *executionContext) fieldContext_Agency_places(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Agency_places_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -10133,7 +10090,7 @@ func (ec *executionContext) fieldContext_Agency_routes(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Agency_routes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -10203,7 +10160,7 @@ func (ec *executionContext) fieldContext_Agency_census_geographies(ctx context.C ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Agency_census_geographies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -10275,7 +10232,7 @@ func (ec *executionContext) fieldContext_Agency_alerts(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Agency_alerts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -11471,7 +11428,7 @@ func (ec *executionContext) fieldContext_Calendar_added_dates(ctx context.Contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Calendar_added_dates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -11526,7 +11483,7 @@ func (ec *executionContext) fieldContext_Calendar_removed_dates(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Calendar_removed_dates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -11880,7 +11837,7 @@ func (ec *executionContext) fieldContext_CensusGeography_values(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_CensusGeography_values_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -13477,7 +13434,7 @@ func (ec *executionContext) fieldContext_Feed_feed_fetches(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Feed_feed_fetches_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -13576,7 +13533,7 @@ func (ec *executionContext) fieldContext_Feed_feed_versions(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Feed_feed_versions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -16114,7 +16071,7 @@ func (ec *executionContext) fieldContext_FeedVersion_files(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -16191,7 +16148,7 @@ func (ec *executionContext) fieldContext_FeedVersion_service_levels(ctx context. ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_service_levels_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -16288,7 +16245,7 @@ func (ec *executionContext) fieldContext_FeedVersion_agencies(ctx context.Contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_agencies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -16403,7 +16360,7 @@ func (ec *executionContext) fieldContext_FeedVersion_routes(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_routes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -16528,7 +16485,7 @@ func (ec *executionContext) fieldContext_FeedVersion_stops(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -16621,7 +16578,7 @@ func (ec *executionContext) fieldContext_FeedVersion_trips(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_trips_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -16698,7 +16655,7 @@ func (ec *executionContext) fieldContext_FeedVersion_feed_infos(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_FeedVersion_feed_infos_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -27577,7 +27534,7 @@ func (ec *executionContext) fieldContext_Mutation_validate_gtfs(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_validate_gtfs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -27697,7 +27654,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_update(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_update_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -27783,7 +27740,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_fetch(ctx context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_fetch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -27866,7 +27823,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_import(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_import_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -27949,7 +27906,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_unimport(ctx cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_unimport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -28032,7 +27989,7 @@ func (ec *executionContext) fieldContext_Mutation_feed_version_delete(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_feed_version_delete_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -28574,7 +28531,7 @@ func (ec *executionContext) fieldContext_Operator_feeds(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Operator_feeds_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -29617,7 +29574,7 @@ func (ec *executionContext) fieldContext_Query_feed_versions(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_feed_versions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -29704,7 +29661,7 @@ func (ec *executionContext) fieldContext_Query_feeds(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_feeds_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -29801,7 +29758,7 @@ func (ec *executionContext) fieldContext_Query_agencies(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_agencies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -29916,7 +29873,7 @@ func (ec *executionContext) fieldContext_Query_routes(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_routes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -30041,7 +29998,7 @@ func (ec *executionContext) fieldContext_Query_stops(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -30134,7 +30091,7 @@ func (ec *executionContext) fieldContext_Query_trips(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_trips_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -30213,7 +30170,7 @@ func (ec *executionContext) fieldContext_Query_operators(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_operators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -30290,7 +30247,7 @@ func (ec *executionContext) fieldContext_Query_directions(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -30376,7 +30333,7 @@ func (ec *executionContext) fieldContext_Query_bikes(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_bikes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -30470,7 +30427,7 @@ func (ec *executionContext) fieldContext_Query_docks(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_docks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -30534,7 +30491,7 @@ func (ec *executionContext) fieldContext_Query_places(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_places_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -30662,7 +30619,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -32302,7 +32259,7 @@ func (ec *executionContext) fieldContext_Route_trips(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_trips_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -32427,7 +32384,7 @@ func (ec *executionContext) fieldContext_Route_stops(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -32498,7 +32455,7 @@ func (ec *executionContext) fieldContext_Route_route_stops(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_route_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -32569,7 +32526,7 @@ func (ec *executionContext) fieldContext_Route_headways(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_headways_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -32638,7 +32595,7 @@ func (ec *executionContext) fieldContext_Route_geometries(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_geometries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -32708,7 +32665,7 @@ func (ec *executionContext) fieldContext_Route_census_geographies(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_census_geographies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -32771,7 +32728,7 @@ func (ec *executionContext) fieldContext_Route_route_stop_buffer(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_route_stop_buffer_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -32894,7 +32851,7 @@ func (ec *executionContext) fieldContext_Route_alerts(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Route_alerts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -34451,7 +34408,7 @@ func (ec *executionContext) fieldContext_RouteStopPattern_trips(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_RouteStopPattern_trips_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36083,7 +36040,7 @@ func (ec *executionContext) fieldContext_Stop_observations(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_observations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36205,7 +36162,7 @@ func (ec *executionContext) fieldContext_Stop_children(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_children_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36276,7 +36233,7 @@ func (ec *executionContext) fieldContext_Stop_route_stops(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_route_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36359,7 +36316,7 @@ func (ec *executionContext) fieldContext_Stop_pathways_from_stop(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_pathways_from_stop_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36442,7 +36399,7 @@ func (ec *executionContext) fieldContext_Stop_pathways_to_stop(ctx context.Conte ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_pathways_to_stop_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36531,7 +36488,7 @@ func (ec *executionContext) fieldContext_Stop_stop_times(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_stop_times_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36620,7 +36577,7 @@ func (ec *executionContext) fieldContext_Stop_departures(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_departures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36709,7 +36666,7 @@ func (ec *executionContext) fieldContext_Stop_arrivals(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_arrivals_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36871,7 +36828,7 @@ func (ec *executionContext) fieldContext_Stop_census_geographies(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_census_geographies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -36948,7 +36905,7 @@ func (ec *executionContext) fieldContext_Stop_directions(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_directions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -37070,7 +37027,7 @@ func (ec *executionContext) fieldContext_Stop_nearby_stops(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_nearby_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -37142,7 +37099,7 @@ func (ec *executionContext) fieldContext_Stop_alerts(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Stop_alerts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -40020,7 +39977,7 @@ func (ec *executionContext) fieldContext_Trip_stop_times(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Trip_stop_times_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -40087,7 +40044,7 @@ func (ec *executionContext) fieldContext_Trip_frequencies(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Trip_frequencies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -40241,7 +40198,7 @@ func (ec *executionContext) fieldContext_Trip_alerts(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Trip_alerts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -40793,7 +40750,7 @@ func (ec *executionContext) fieldContext_ValidationResult_service_levels(ctx con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_service_levels_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -40890,7 +40847,7 @@ func (ec *executionContext) fieldContext_ValidationResult_agencies(ctx context.C ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_agencies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -41005,7 +40962,7 @@ func (ec *executionContext) fieldContext_ValidationResult_routes(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_routes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -41130,7 +41087,7 @@ func (ec *executionContext) fieldContext_ValidationResult_stops(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_stops_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -41207,7 +41164,7 @@ func (ec *executionContext) fieldContext_ValidationResult_feed_infos(ctx context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidationResult_feed_infos_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -43672,7 +43629,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -43860,7 +43817,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return fc, err + return } return fc, nil } @@ -44042,137 +43999,122 @@ func (ec *executionContext) unmarshalInputAgencyFilter(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OnestopID = data case "feed_version_sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_sha1")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedVersionSha1, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedVersionSha1 = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedOnestopID = data case "agency_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AgencyID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AgencyID = data case "agency_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AgencyName, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AgencyName = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } - it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } - it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } - it.Near = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Search = data case "city_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("city_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CityName, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CityName = data case "adm0_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm0Name, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm0Name = data case "adm1_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm1Name, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm1Name = data case "adm0_iso": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_iso")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm0Iso, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm0Iso = data case "adm1_iso": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_iso")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm1Iso, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm1Iso = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } - it.License = data } } @@ -44197,11 +44139,10 @@ func (ec *executionContext) unmarshalInputAgencyPlaceFilter(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min_rank")) - data, err := ec.unmarshalOFloat2ᚖfloat64(ctx, v) + it.MinRank, err = ec.unmarshalOFloat2ᚖfloat64(ctx, v) if err != nil { return it, err } - it.MinRank = data } } @@ -44226,38 +44167,34 @@ func (ec *executionContext) unmarshalInputBoundingBox(ctx context.Context, obj i var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min_lon")) - data, err := ec.unmarshalNFloat2float64(ctx, v) + it.MinLon, err = ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } - it.MinLon = data case "min_lat": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min_lat")) - data, err := ec.unmarshalNFloat2float64(ctx, v) + it.MinLat, err = ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } - it.MinLat = data case "max_lon": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max_lon")) - data, err := ec.unmarshalNFloat2float64(ctx, v) + it.MaxLon, err = ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } - it.MaxLon = data case "max_lat": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max_lat")) - data, err := ec.unmarshalNFloat2float64(ctx, v) + it.MaxLat, err = ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } - it.MaxLat = data } } @@ -44282,20 +44219,18 @@ func (ec *executionContext) unmarshalInputCalendarDateFilter(ctx context.Context var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("date")) - data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + it.Date, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } - it.Date = data case "exception_type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exception_type")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.ExceptionType, err = ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.ExceptionType = data } } @@ -44320,38 +44255,34 @@ func (ec *executionContext) unmarshalInputDirectionRequest(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("to")) - data, err := ec.unmarshalNWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, v) + it.To, err = ec.unmarshalNWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, v) if err != nil { return it, err } - it.To = data case "from": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("from")) - data, err := ec.unmarshalNWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, v) + it.From, err = ec.unmarshalNWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, v) if err != nil { return it, err } - it.From = data case "mode": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mode")) - data, err := ec.unmarshalNStepMode2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStepMode(ctx, v) + it.Mode, err = ec.unmarshalNStepMode2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStepMode(ctx, v) if err != nil { return it, err } - it.Mode = data case "depart_at": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("depart_at")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DepartAt, err = ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DepartAt = data } } @@ -44376,11 +44307,10 @@ func (ec *executionContext) unmarshalInputFeedFetchFilter(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("success")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Success, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Success = data } } @@ -44405,101 +44335,90 @@ func (ec *executionContext) unmarshalInputFeedFilter(ctx context.Context, obj in var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OnestopID = data case "spec": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) - data, err := ec.unmarshalOFeedSpecTypes2ᚕgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSpecTypesᚄ(ctx, v) + it.Spec, err = ec.unmarshalOFeedSpecTypes2ᚕgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSpecTypesᚄ(ctx, v) if err != nil { return it, err } - it.Spec = data case "fetch_error": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fetch_error")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.FetchError, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.FetchError = data case "import_status": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import_status")) - data, err := ec.unmarshalOImportStatus2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐImportStatus(ctx, v) + it.ImportStatus, err = ec.unmarshalOImportStatus2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐImportStatus(ctx, v) if err != nil { return it, err } - it.ImportStatus = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Search = data case "tags": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) - data, err := ec.unmarshalOTags2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐTags(ctx, v) + it.Tags, err = ec.unmarshalOTags2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐTags(ctx, v) if err != nil { return it, err } - it.Tags = data case "source_url": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source_url")) - data, err := ec.unmarshalOFeedSourceUrl2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSourceURL(ctx, v) + it.SourceURL, err = ec.unmarshalOFeedSourceUrl2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSourceURL(ctx, v) if err != nil { return it, err } - it.SourceURL = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } - it.License = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } - it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } - it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } - it.Near = data } } @@ -44524,29 +44443,26 @@ func (ec *executionContext) unmarshalInputFeedSourceUrl(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.URL, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URL = data case "type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalOFeedSourceUrlTypes2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSourceURLTypes(ctx, v) + it.Type, err = ec.unmarshalOFeedSourceUrlTypes2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedSourceURLTypes(ctx, v) if err != nil { return it, err } - it.Type = data case "case_sensitive": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("case_sensitive")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.CaseSensitive, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.CaseSensitive = data } } @@ -44571,83 +44487,74 @@ func (ec *executionContext) unmarshalInputFeedVersionFilter(ctx context.Context, var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import_status")) - data, err := ec.unmarshalOImportStatus2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐImportStatus(ctx, v) + it.ImportStatus, err = ec.unmarshalOImportStatus2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐImportStatus(ctx, v) if err != nil { return it, err } - it.ImportStatus = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedOnestopID = data case "sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sha1")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Sha1, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Sha1 = data case "file": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.File, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.File = data case "feed_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_ids")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + it.FeedIds, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } - it.FeedIds = data case "covers": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("covers")) - data, err := ec.unmarshalOServiceCoversFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐServiceCoversFilter(ctx, v) + it.Covers, err = ec.unmarshalOServiceCoversFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐServiceCoversFilter(ctx, v) if err != nil { return it, err } - it.Covers = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } - it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } - it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } - it.Near = data } } @@ -44672,20 +44579,18 @@ func (ec *executionContext) unmarshalInputFeedVersionServiceLevelFilter(ctx cont var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_date")) - data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + it.StartDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } - it.StartDate = data case "end_date": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_date")) - data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + it.EndDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } - it.EndDate = data } } @@ -44710,20 +44615,18 @@ func (ec *executionContext) unmarshalInputFeedVersionSetInput(ctx context.Contex var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Name = data case "description": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Description = data } } @@ -44748,11 +44651,10 @@ func (ec *executionContext) unmarshalInputGbfsBikeRequest(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } - it.Near = data } } @@ -44777,11 +44679,10 @@ func (ec *executionContext) unmarshalInputGbfsDockRequest(ctx context.Context, o var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } - it.Near = data } } @@ -44806,47 +44707,42 @@ func (ec *executionContext) unmarshalInputLicenseFilter(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("share_alike_optional")) - data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + it.ShareAlikeOptional, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } - it.ShareAlikeOptional = data case "create_derived_product": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("create_derived_product")) - data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + it.CreateDerivedProduct, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } - it.CreateDerivedProduct = data case "commercial_use_allowed": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("commercial_use_allowed")) - data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + it.CommercialUseAllowed, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } - it.CommercialUseAllowed = data case "use_without_attribution": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("use_without_attribution")) - data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + it.UseWithoutAttribution, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } - it.UseWithoutAttribution = data case "redistribution_allowed": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redistribution_allowed")) - data, err := ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) + it.RedistributionAllowed, err = ec.unmarshalOLicenseValue2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseValue(ctx, v) if err != nil { return it, err } - it.RedistributionAllowed = data } } @@ -44871,137 +44767,122 @@ func (ec *executionContext) unmarshalInputOperatorFilter(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("merged")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Merged, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Merged = data case "onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OnestopID = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedOnestopID = data case "agency_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AgencyID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AgencyID = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Search = data case "tags": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) - data, err := ec.unmarshalOTags2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐTags(ctx, v) + it.Tags, err = ec.unmarshalOTags2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐTags(ctx, v) if err != nil { return it, err } - it.Tags = data case "city_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("city_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CityName, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CityName = data case "adm0_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm0Name, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm0Name = data case "adm1_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm1Name, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm1Name = data case "adm0_iso": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_iso")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm0Iso, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm0Iso = data case "adm1_iso": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_iso")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm1Iso, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm1Iso = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } - it.License = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } - it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } - it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } - it.Near = data } } @@ -45026,11 +44907,10 @@ func (ec *executionContext) unmarshalInputPathwayFilter(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pathway_mode")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.PathwayMode, err = ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.PathwayMode = data } } @@ -45055,38 +44935,34 @@ func (ec *executionContext) unmarshalInputPlaceFilter(ctx context.Context, obj i var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min_rank")) - data, err := ec.unmarshalOFloat2ᚖfloat64(ctx, v) + it.MinRank, err = ec.unmarshalOFloat2ᚖfloat64(ctx, v) if err != nil { return it, err } - it.MinRank = data case "adm0_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm0_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm0Name, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm0Name = data case "adm1_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adm1_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Adm1Name, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Adm1Name = data case "city_name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("city_name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CityName, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CityName = data } } @@ -45111,29 +44987,26 @@ func (ec *executionContext) unmarshalInputPointRadius(ctx context.Context, obj i var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lat")) - data, err := ec.unmarshalNFloat2float64(ctx, v) + it.Lat, err = ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } - it.Lat = data case "lon": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lon")) - data, err := ec.unmarshalNFloat2float64(ctx, v) + it.Lon, err = ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } - it.Lon = data case "radius": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) - data, err := ec.unmarshalNFloat2float64(ctx, v) + it.Radius, err = ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } - it.Radius = data } } @@ -45158,137 +45031,122 @@ func (ec *executionContext) unmarshalInputRouteFilter(ctx context.Context, obj i var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OnestopID = data case "onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_ids")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.OnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OnestopIds = data case "allow_previous_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allow_previous_onestop_ids")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AllowPreviousOnestopIds, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AllowPreviousOnestopIds = data case "feed_version_sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_sha1")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedVersionSha1, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedVersionSha1 = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedOnestopID = data case "route_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RouteID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RouteID = data case "route_type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_type")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.RouteType, err = ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.RouteType = data case "serviced": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviced")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Serviced, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Serviced = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } - it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } - it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } - it.Near = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Search = data case "operator_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator_onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OperatorOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OperatorOnestopID = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } - it.License = data case "agency_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_ids")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + it.AgencyIds, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } - it.AgencyIds = data } } @@ -45313,38 +45171,34 @@ func (ec *executionContext) unmarshalInputServiceCoversFilter(ctx context.Contex var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_date")) - data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + it.StartDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } - it.StartDate = data case "end_date": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_date")) - data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + it.EndDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } - it.EndDate = data case "fetched_after": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fetched_after")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FetchedAfter, err = ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.FetchedAfter = data case "fetched_before": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fetched_before")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FetchedBefore, err = ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.FetchedBefore = data } } @@ -45369,155 +45223,138 @@ func (ec *executionContext) unmarshalInputStopFilter(ctx context.Context, obj in var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OnestopID = data case "onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onestop_ids")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.OnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OnestopIds = data case "allow_previous_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allow_previous_onestop_ids")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AllowPreviousOnestopIds, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AllowPreviousOnestopIds = data case "feed_version_sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_sha1")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedVersionSha1, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedVersionSha1 = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedOnestopID = data case "stop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.StopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StopID = data case "stop_code": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stop_code")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.StopCode, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StopCode = data case "location_type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location_type")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.LocationType, err = ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.LocationType = data case "serviced": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviced")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Serviced, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Serviced = data case "bbox": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bbox")) - data, err := ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) + it.Bbox, err = ec.unmarshalOBoundingBox2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐBoundingBox(ctx, v) if err != nil { return it, err } - it.Bbox = data case "within": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("within")) - data, err := ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) + it.Within, err = ec.unmarshalOPolygon2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐPolygon(ctx, v) if err != nil { return it, err } - it.Within = data case "near": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("near")) - data, err := ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) + it.Near, err = ec.unmarshalOPointRadius2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPointRadius(ctx, v) if err != nil { return it, err } - it.Near = data case "search": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Search, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Search = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } - it.License = data case "served_by_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("served_by_onestop_ids")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ServedByOnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ServedByOnestopIds = data case "served_by_route_type": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("served_by_route_type")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.ServedByRouteType, err = ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.ServedByRouteType = data case "agency_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agency_ids")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + it.AgencyIds, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } - it.AgencyIds = data } } @@ -45542,29 +45379,26 @@ func (ec *executionContext) unmarshalInputStopObservationFilter(ctx context.Cont var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) - data, err := ec.unmarshalNString2string(ctx, v) + it.Source, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Source = data case "feed_version_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_id")) - data, err := ec.unmarshalNInt2int(ctx, v) + it.FeedVersionID, err = ec.unmarshalNInt2int(ctx, v) if err != nil { return it, err } - it.FeedVersionID = data case "trip_start_date": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trip_start_date")) - data, err := ec.unmarshalNDate2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + it.TripStartDate, err = ec.unmarshalNDate2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } - it.TripStartDate = data } } @@ -45589,101 +45423,90 @@ func (ec *executionContext) unmarshalInputStopTimeFilter(ctx context.Context, ob var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("service_date")) - data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + it.ServiceDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } - it.ServiceDate = data case "use_service_window": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("use_service_window")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.UseServiceWindow, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.UseServiceWindow = data case "start_time": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_time")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.StartTime, err = ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.StartTime = data case "end_time": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_time")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.EndTime, err = ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.EndTime = data case "start": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start")) - data, err := ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) + it.Start, err = ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) if err != nil { return it, err } - it.Start = data case "end": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end")) - data, err := ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) + it.End, err = ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) if err != nil { return it, err } - it.End = data case "next": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("next")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.Next, err = ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.Next = data case "route_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_onestop_ids")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.RouteOnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RouteOnestopIds = data case "allow_previous_route_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allow_previous_route_onestop_ids")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AllowPreviousRouteOnestopIds, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AllowPreviousRouteOnestopIds = data case "exclude_first": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exclude_first")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ExcludeFirst, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ExcludeFirst = data case "exclude_last": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exclude_last")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ExcludeLast, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ExcludeLast = data } } @@ -45708,74 +45531,66 @@ func (ec *executionContext) unmarshalInputTripFilter(ctx context.Context, obj in var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("service_date")) - data, err := ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) + it.ServiceDate, err = ec.unmarshalODate2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐDate(ctx, v) if err != nil { return it, err } - it.ServiceDate = data case "trip_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trip_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TripID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TripID = data case "stop_pattern_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stop_pattern_id")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.StopPatternID, err = ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.StopPatternID = data case "license": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("license")) - data, err := ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) + it.License, err = ec.unmarshalOLicenseFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLicenseFilter(ctx, v) if err != nil { return it, err } - it.License = data case "route_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_ids")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + it.RouteIds, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } - it.RouteIds = data case "route_onestop_ids": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_onestop_ids")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.RouteOnestopIds, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RouteOnestopIds = data case "feed_version_sha1": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_version_sha1")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedVersionSha1, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedVersionSha1 = data case "feed_onestop_id": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FeedOnestopID, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeedOnestopID = data } } @@ -45800,20 +45615,18 @@ func (ec *executionContext) unmarshalInputTripStopTimeFilter(ctx context.Context var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start")) - data, err := ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) + it.Start, err = ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) if err != nil { return it, err } - it.Start = data case "end": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end")) - data, err := ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) + it.End, err = ec.unmarshalOSeconds2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑlibᚋtlᚋttᚐWideTime(ctx, v) if err != nil { return it, err } - it.End = data } } @@ -45838,29 +45651,26 @@ func (ec *executionContext) unmarshalInputWaypointInput(ctx context.Context, obj var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lon")) - data, err := ec.unmarshalNFloat2float64(ctx, v) + it.Lon, err = ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } - it.Lon = data case "lat": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lat")) - data, err := ec.unmarshalNFloat2float64(ctx, v) + it.Lat, err = ec.unmarshalNFloat2float64(ctx, v) if err != nil { return it, err } - it.Lat = data case "name": var err error ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Name, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Name = data } } @@ -45879,71 +45689,94 @@ var agencyImplementors = []string{"Agency"} func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, obj *model.Agency) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, agencyImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Agency") case "id": + out.Values[i] = ec._Agency_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "onestop_id": + out.Values[i] = ec._Agency_onestop_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "agency_email": + out.Values[i] = ec._Agency_agency_email(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "agency_fare_url": + out.Values[i] = ec._Agency_agency_fare_url(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "agency_id": + out.Values[i] = ec._Agency_agency_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "agency_lang": + out.Values[i] = ec._Agency_agency_lang(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "agency_name": + out.Values[i] = ec._Agency_agency_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "agency_phone": + out.Values[i] = ec._Agency_agency_phone(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "agency_timezone": + out.Values[i] = ec._Agency_agency_timezone(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "agency_url": + out.Values[i] = ec._Agency_agency_url(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "feed_version_sha1": + out.Values[i] = ec._Agency_feed_version_sha1(ctx, field, obj) + case "feed_onestop_id": + out.Values[i] = ec._Agency_feed_onestop_id(ctx, field, obj) + case "feed_version": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45951,39 +45784,27 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o }() res = ec._Agency_feed_version(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "geometry": + out.Values[i] = ec._Agency_geometry(ctx, field, obj) + case "search_rank": + out.Values[i] = ec._Agency_search_rank(ctx, field, obj) + case "operator": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -45993,30 +45814,14 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "places": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46026,30 +45831,14 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "routes": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46057,35 +45846,19 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o }() res = ec._Agency_routes(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "census_geographies": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46095,30 +45868,14 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "alerts": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46128,46 +45885,18 @@ func (ec *executionContext) _Agency(ctx context.Context, sel ast.SelectionSet, o return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46175,45 +45904,44 @@ var agencyPlaceImplementors = []string{"AgencyPlace"} func (ec *executionContext) _AgencyPlace(ctx context.Context, sel ast.SelectionSet, obj *model.AgencyPlace) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, agencyPlaceImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("AgencyPlace") case "city_name": + out.Values[i] = ec._AgencyPlace_city_name(ctx, field, obj) + case "adm0_name": + out.Values[i] = ec._AgencyPlace_adm0_name(ctx, field, obj) + case "adm1_name": + out.Values[i] = ec._AgencyPlace_adm1_name(ctx, field, obj) + case "adm0_iso": + out.Values[i] = ec._AgencyPlace_adm0_iso(ctx, field, obj) + case "adm1_iso": + out.Values[i] = ec._AgencyPlace_adm1_iso(ctx, field, obj) + case "rank": + out.Values[i] = ec._AgencyPlace_rank(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46221,57 +45949,62 @@ var alertImplementors = []string{"Alert"} func (ec *executionContext) _Alert(ctx context.Context, sel ast.SelectionSet, obj *model.Alert) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, alertImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Alert") case "active_period": + out.Values[i] = ec._Alert_active_period(ctx, field, obj) + case "cause": + out.Values[i] = ec._Alert_cause(ctx, field, obj) + case "effect": + out.Values[i] = ec._Alert_effect(ctx, field, obj) + case "header_text": + out.Values[i] = ec._Alert_header_text(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "description_text": + out.Values[i] = ec._Alert_description_text(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "tts_header_text": + out.Values[i] = ec._Alert_tts_header_text(ctx, field, obj) + case "tts_description_text": + out.Values[i] = ec._Alert_tts_description_text(ctx, field, obj) + case "url": + out.Values[i] = ec._Alert_url(ctx, field, obj) + case "severity_level": + out.Values[i] = ec._Alert_severity_level(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46279,27 +46012,30 @@ var calendarImplementors = []string{"Calendar"} func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, obj *model.Calendar) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, calendarImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Calendar") case "id": + out.Values[i] = ec._Calendar_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "service_id": + out.Values[i] = ec._Calendar_service_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "start_date": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46307,35 +46043,19 @@ func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, }() res = ec._Calendar_start_date(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "end_date": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46343,70 +46063,68 @@ func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, }() res = ec._Calendar_end_date(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "monday": + out.Values[i] = ec._Calendar_monday(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "tuesday": + out.Values[i] = ec._Calendar_tuesday(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "wednesday": + out.Values[i] = ec._Calendar_wednesday(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "thursday": + out.Values[i] = ec._Calendar_thursday(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "friday": + out.Values[i] = ec._Calendar_friday(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "saturday": + out.Values[i] = ec._Calendar_saturday(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "sunday": + out.Values[i] = ec._Calendar_sunday(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "added_dates": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46414,35 +46132,19 @@ func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, }() res = ec._Calendar_added_dates(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "removed_dates": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46450,51 +46152,23 @@ func (ec *executionContext) _Calendar(ctx context.Context, sel ast.SelectionSet, }() res = ec._Calendar_removed_dates(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46502,37 +46176,50 @@ var censusGeographyImplementors = []string{"CensusGeography"} func (ec *executionContext) _CensusGeography(ctx context.Context, sel ast.SelectionSet, obj *model.CensusGeography) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, censusGeographyImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("CensusGeography") case "id": + out.Values[i] = ec._CensusGeography_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "layer_name": + out.Values[i] = ec._CensusGeography_layer_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "geoid": + out.Values[i] = ec._CensusGeography_geoid(ctx, field, obj) + case "name": + out.Values[i] = ec._CensusGeography_name(ctx, field, obj) + case "aland": + out.Values[i] = ec._CensusGeography_aland(ctx, field, obj) + case "awater": + out.Values[i] = ec._CensusGeography_awater(ctx, field, obj) + case "geometry": + out.Values[i] = ec._CensusGeography_geometry(ctx, field, obj) + case "values": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46540,51 +46227,23 @@ func (ec *executionContext) _CensusGeography(ctx context.Context, sel ast.Select }() res = ec._CensusGeography_values(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46592,53 +46251,48 @@ var censusTableImplementors = []string{"CensusTable"} func (ec *executionContext) _CensusTable(ctx context.Context, sel ast.SelectionSet, obj *model.CensusTable) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, censusTableImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("CensusTable") case "id": + out.Values[i] = ec._CensusTable_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "table_name": + out.Values[i] = ec._CensusTable_table_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "table_title": + out.Values[i] = ec._CensusTable_table_title(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "table_group": + out.Values[i] = ec._CensusTable_table_group(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46646,9 +46300,8 @@ var censusValueImplementors = []string{"CensusValue"} func (ec *executionContext) _CensusValue(ctx context.Context, sel ast.SelectionSet, obj *model.CensusValue) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, censusValueImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": @@ -46656,7 +46309,7 @@ func (ec *executionContext) _CensusValue(ctx context.Context, sel ast.SelectionS case "table": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46664,35 +46317,19 @@ func (ec *executionContext) _CensusValue(ctx context.Context, sel ast.SelectionS }() res = ec._CensusValue_table(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "values": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46700,51 +46337,23 @@ func (ec *executionContext) _CensusValue(ctx context.Context, sel ast.SelectionS }() res = ec._CensusValue_values(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46752,56 +46361,63 @@ var directionsImplementors = []string{"Directions"} func (ec *executionContext) _Directions(ctx context.Context, sel ast.SelectionSet, obj *model.Directions) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, directionsImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Directions") case "success": + out.Values[i] = ec._Directions_success(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "exception": + out.Values[i] = ec._Directions_exception(ctx, field, obj) + case "data_source": + out.Values[i] = ec._Directions_data_source(ctx, field, obj) + case "origin": + out.Values[i] = ec._Directions_origin(ctx, field, obj) + case "destination": + out.Values[i] = ec._Directions_destination(ctx, field, obj) + case "duration": + out.Values[i] = ec._Directions_duration(ctx, field, obj) + case "distance": + out.Values[i] = ec._Directions_distance(ctx, field, obj) + case "start_time": + out.Values[i] = ec._Directions_start_time(ctx, field, obj) + case "end_time": + out.Values[i] = ec._Directions_end_time(ctx, field, obj) + case "itineraries": + out.Values[i] = ec._Directions_itineraries(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46809,43 +46425,34 @@ var distanceImplementors = []string{"Distance"} func (ec *executionContext) _Distance(ctx context.Context, sel ast.SelectionSet, obj *model.Distance) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, distanceImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Distance") case "distance": + out.Values[i] = ec._Distance_distance(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "units": + out.Values[i] = ec._Distance_units(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46853,43 +46460,34 @@ var durationImplementors = []string{"Duration"} func (ec *executionContext) _Duration(ctx context.Context, sel ast.SelectionSet, obj *model.Duration) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, durationImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Duration") case "duration": + out.Values[i] = ec._Duration_duration(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "units": + out.Values[i] = ec._Duration_units(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -46897,34 +46495,41 @@ var feedImplementors = []string{"Feed"} func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj *model.Feed) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Feed") case "id": + out.Values[i] = ec._Feed_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "onestop_id": + out.Values[i] = ec._Feed_onestop_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "name": + out.Values[i] = ec._Feed_name(ctx, field, obj) + case "file": + out.Values[i] = ec._Feed_file(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "spec": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46934,30 +46539,14 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "languages": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -46967,32 +46556,18 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "tags": + out.Values[i] = ec._Feed_tags(ctx, field, obj) + case "authorization": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47002,30 +46577,14 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "urls": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47035,30 +46594,14 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "license": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47068,32 +46611,18 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "search_rank": + out.Values[i] = ec._Feed_search_rank(ctx, field, obj) + case "associated_operators": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47103,30 +46632,14 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feed_state": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47136,30 +46649,14 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feed_fetches": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47169,30 +46666,14 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feed_versions": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47200,51 +46681,23 @@ func (ec *executionContext) _Feed(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Feed_feed_versions(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -47252,48 +46705,41 @@ var feedAuthorizationImplementors = []string{"FeedAuthorization"} func (ec *executionContext) _FeedAuthorization(ctx context.Context, sel ast.SelectionSet, obj *model.FeedAuthorization) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedAuthorizationImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedAuthorization") case "type": + out.Values[i] = ec._FeedAuthorization_type(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "param_name": + out.Values[i] = ec._FeedAuthorization_param_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "info_url": + out.Values[i] = ec._FeedAuthorization_info_url(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -47301,54 +46747,59 @@ var feedFetchImplementors = []string{"FeedFetch"} func (ec *executionContext) _FeedFetch(ctx context.Context, sel ast.SelectionSet, obj *model.FeedFetch) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedFetchImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedFetch") case "id": + out.Values[i] = ec._FeedFetch_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "url_type": + out.Values[i] = ec._FeedFetch_url_type(ctx, field, obj) + case "url": + out.Values[i] = ec._FeedFetch_url(ctx, field, obj) + case "success": + out.Values[i] = ec._FeedFetch_success(ctx, field, obj) + case "fetched_at": + out.Values[i] = ec._FeedFetch_fetched_at(ctx, field, obj) + case "fetch_error": + out.Values[i] = ec._FeedFetch_fetch_error(ctx, field, obj) + case "response_size": + out.Values[i] = ec._FeedFetch_response_size(ctx, field, obj) + case "response_code": + out.Values[i] = ec._FeedFetch_response_code(ctx, field, obj) + case "response_sha1": + out.Values[i] = ec._FeedFetch_response_sha1(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -47356,68 +46807,75 @@ var feedInfoImplementors = []string{"FeedInfo"} func (ec *executionContext) _FeedInfo(ctx context.Context, sel ast.SelectionSet, obj *model.FeedInfo) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedInfoImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedInfo") case "id": + out.Values[i] = ec._FeedInfo_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "feed_publisher_name": + out.Values[i] = ec._FeedInfo_feed_publisher_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "feed_publisher_url": + out.Values[i] = ec._FeedInfo_feed_publisher_url(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "feed_lang": + out.Values[i] = ec._FeedInfo_feed_lang(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "default_lang": + out.Values[i] = ec._FeedInfo_default_lang(ctx, field, obj) + case "feed_version": + out.Values[i] = ec._FeedInfo_feed_version(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "feed_start_date": + out.Values[i] = ec._FeedInfo_feed_start_date(ctx, field, obj) + case "feed_end_date": + out.Values[i] = ec._FeedInfo_feed_end_date(ctx, field, obj) + case "feed_contact_email": + out.Values[i] = ec._FeedInfo_feed_contact_email(ctx, field, obj) + case "feed_contact_url": + out.Values[i] = ec._FeedInfo_feed_contact_url(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -47425,78 +46883,83 @@ var feedLicenseImplementors = []string{"FeedLicense"} func (ec *executionContext) _FeedLicense(ctx context.Context, sel ast.SelectionSet, obj *model.FeedLicense) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedLicenseImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedLicense") case "spdx_identifier": + out.Values[i] = ec._FeedLicense_spdx_identifier(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "url": + out.Values[i] = ec._FeedLicense_url(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "use_without_attribution": + out.Values[i] = ec._FeedLicense_use_without_attribution(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "create_derived_product": + out.Values[i] = ec._FeedLicense_create_derived_product(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "redistribution_allowed": + out.Values[i] = ec._FeedLicense_redistribution_allowed(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "commercial_use_allowed": + out.Values[i] = ec._FeedLicense_commercial_use_allowed(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "share_alike_optional": + out.Values[i] = ec._FeedLicense_share_alike_optional(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "attribution_text": + out.Values[i] = ec._FeedLicense_attribution_text(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "attribution_instructions": + out.Values[i] = ec._FeedLicense_attribution_instructions(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -47504,22 +46967,23 @@ var feedStateImplementors = []string{"FeedState"} func (ec *executionContext) _FeedState(ctx context.Context, sel ast.SelectionSet, obj *model.FeedState) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedStateImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedState") case "id": + out.Values[i] = ec._FeedState_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "feed_version": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47529,46 +46993,18 @@ func (ec *executionContext) _FeedState(ctx context.Context, sel ast.SelectionSet return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -47576,73 +47012,76 @@ var feedUrlsImplementors = []string{"FeedUrls"} func (ec *executionContext) _FeedUrls(ctx context.Context, sel ast.SelectionSet, obj *model.FeedUrls) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedUrlsImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedUrls") case "static_current": + out.Values[i] = ec._FeedUrls_static_current(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "static_historic": + out.Values[i] = ec._FeedUrls_static_historic(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "static_planned": + out.Values[i] = ec._FeedUrls_static_planned(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "realtime_vehicle_positions": + out.Values[i] = ec._FeedUrls_realtime_vehicle_positions(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "realtime_trip_updates": + out.Values[i] = ec._FeedUrls_realtime_trip_updates(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "realtime_alerts": + out.Values[i] = ec._FeedUrls_realtime_alerts(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "gbfs_auto_discovery": + out.Values[i] = ec._FeedUrls_gbfs_auto_discovery(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "mds_provider": + out.Values[i] = ec._FeedUrls_mds_provider(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -47650,57 +47089,78 @@ var feedVersionImplementors = []string{"FeedVersion"} func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersion) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersion") case "id": + out.Values[i] = ec._FeedVersion_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "sha1": + out.Values[i] = ec._FeedVersion_sha1(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "fetched_at": + out.Values[i] = ec._FeedVersion_fetched_at(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "url": + out.Values[i] = ec._FeedVersion_url(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "earliest_calendar_date": + out.Values[i] = ec._FeedVersion_earliest_calendar_date(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "latest_calendar_date": + out.Values[i] = ec._FeedVersion_latest_calendar_date(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "created_by": + out.Values[i] = ec._FeedVersion_created_by(ctx, field, obj) + case "updated_by": + out.Values[i] = ec._FeedVersion_updated_by(ctx, field, obj) + case "name": + out.Values[i] = ec._FeedVersion_name(ctx, field, obj) + case "description": + out.Values[i] = ec._FeedVersion_description(ctx, field, obj) + case "file": + out.Values[i] = ec._FeedVersion_file(ctx, field, obj) + case "geometry": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47710,30 +47170,14 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feed": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47741,35 +47185,19 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_feed(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feed_version_gtfs_import": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47779,30 +47207,14 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "files": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47810,35 +47222,19 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_files(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "service_levels": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47846,35 +47242,19 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_service_levels(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "agencies": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47882,35 +47262,19 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_agencies(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "routes": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47918,35 +47282,19 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_routes(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "stops": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47954,35 +47302,19 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_stops(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "trips": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -47990,35 +47322,19 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_trips(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feed_infos": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -48026,51 +47342,23 @@ func (ec *executionContext) _FeedVersion(ctx context.Context, sel ast.SelectionS }() res = ec._FeedVersion_feed_infos(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48078,38 +47366,27 @@ var feedVersionDeleteResultImplementors = []string{"FeedVersionDeleteResult"} func (ec *executionContext) _FeedVersionDeleteResult(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionDeleteResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionDeleteResultImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionDeleteResult") case "success": + out.Values[i] = ec._FeedVersionDeleteResult_success(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48117,47 +47394,42 @@ var feedVersionFetchResultImplementors = []string{"FeedVersionFetchResult"} func (ec *executionContext) _FeedVersionFetchResult(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionFetchResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionFetchResultImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionFetchResult") case "feed_version": + out.Values[i] = ec._FeedVersionFetchResult_feed_version(ctx, field, obj) + case "fetch_error": + out.Values[i] = ec._FeedVersionFetchResult_fetch_error(ctx, field, obj) + case "found_sha1": + out.Values[i] = ec._FeedVersionFetchResult_found_sha1(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "found_dir_sha1": + out.Values[i] = ec._FeedVersionFetchResult_found_dir_sha1(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48165,78 +47437,83 @@ var feedVersionFileInfoImplementors = []string{"FeedVersionFileInfo"} func (ec *executionContext) _FeedVersionFileInfo(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionFileInfo) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionFileInfoImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionFileInfo") case "id": + out.Values[i] = ec._FeedVersionFileInfo_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "name": + out.Values[i] = ec._FeedVersionFileInfo_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "rows": + out.Values[i] = ec._FeedVersionFileInfo_rows(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "sha1": + out.Values[i] = ec._FeedVersionFileInfo_sha1(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "header": + out.Values[i] = ec._FeedVersionFileInfo_header(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "csv_like": + out.Values[i] = ec._FeedVersionFileInfo_csv_like(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "size": + out.Values[i] = ec._FeedVersionFileInfo_size(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "values_count": + out.Values[i] = ec._FeedVersionFileInfo_values_count(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "values_unique": + out.Values[i] = ec._FeedVersionFileInfo_values_unique(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48244,42 +47521,51 @@ var feedVersionGtfsImportImplementors = []string{"FeedVersionGtfsImport"} func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionGtfsImport) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionGtfsImportImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionGtfsImport") case "id": + out.Values[i] = ec._FeedVersionGtfsImport_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "in_progress": + out.Values[i] = ec._FeedVersionGtfsImport_in_progress(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "success": + out.Values[i] = ec._FeedVersionGtfsImport_success(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "schedule_removed": + out.Values[i] = ec._FeedVersionGtfsImport_schedule_removed(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "exception_log": + out.Values[i] = ec._FeedVersionGtfsImport_exception_log(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "skip_entity_error_count": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -48289,30 +47575,14 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "entity_count": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -48322,30 +47592,14 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "warning_count": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -48355,34 +47609,22 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "created_at": + out.Values[i] = ec._FeedVersionGtfsImport_created_at(ctx, field, obj) + case "updated_at": + out.Values[i] = ec._FeedVersionGtfsImport_updated_at(ctx, field, obj) + case "skip_entity_reference_count": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -48392,30 +47634,14 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "skip_entity_filter_count": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -48425,30 +47651,14 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "skip_entity_marked_count": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -48458,48 +47668,22 @@ func (ec *executionContext) _FeedVersionGtfsImport(ctx context.Context, sel ast. return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "interpolated_stop_time_count": + out.Values[i] = ec._FeedVersionGtfsImport_interpolated_stop_time_count(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48507,38 +47691,27 @@ var feedVersionImportResultImplementors = []string{"FeedVersionImportResult"} func (ec *executionContext) _FeedVersionImportResult(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionImportResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionImportResultImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionImportResult") case "success": + out.Values[i] = ec._FeedVersionImportResult_success(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48546,83 +47719,90 @@ var feedVersionServiceLevelImplementors = []string{"FeedVersionServiceLevel"} func (ec *executionContext) _FeedVersionServiceLevel(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionServiceLevel) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionServiceLevelImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionServiceLevel") case "id": + out.Values[i] = ec._FeedVersionServiceLevel_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "start_date": + out.Values[i] = ec._FeedVersionServiceLevel_start_date(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "end_date": + out.Values[i] = ec._FeedVersionServiceLevel_end_date(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "monday": + out.Values[i] = ec._FeedVersionServiceLevel_monday(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "tuesday": + out.Values[i] = ec._FeedVersionServiceLevel_tuesday(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "wednesday": + out.Values[i] = ec._FeedVersionServiceLevel_wednesday(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "thursday": + out.Values[i] = ec._FeedVersionServiceLevel_thursday(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "friday": + out.Values[i] = ec._FeedVersionServiceLevel_friday(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "saturday": + out.Values[i] = ec._FeedVersionServiceLevel_saturday(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "sunday": + out.Values[i] = ec._FeedVersionServiceLevel_sunday(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48630,38 +47810,27 @@ var feedVersionUnimportResultImplementors = []string{"FeedVersionUnimportResult" func (ec *executionContext) _FeedVersionUnimportResult(ctx context.Context, sel ast.SelectionSet, obj *model.FeedVersionUnimportResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, feedVersionUnimportResultImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("FeedVersionUnimportResult") case "success": + out.Values[i] = ec._FeedVersionUnimportResult_success(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48669,58 +47838,55 @@ var frequencyImplementors = []string{"Frequency"} func (ec *executionContext) _Frequency(ctx context.Context, sel ast.SelectionSet, obj *model.Frequency) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, frequencyImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Frequency") case "id": + out.Values[i] = ec._Frequency_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "start_time": + out.Values[i] = ec._Frequency_start_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "end_time": + out.Values[i] = ec._Frequency_end_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "headway_secs": + out.Values[i] = ec._Frequency_headway_secs(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "exact_times": + out.Values[i] = ec._Frequency_exact_times(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48728,37 +47894,28 @@ var gbfsAlertTimeImplementors = []string{"GbfsAlertTime"} func (ec *executionContext) _GbfsAlertTime(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsAlertTime) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsAlertTimeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsAlertTime") case "start": + out.Values[i] = ec._GbfsAlertTime_start(ctx, field, obj) + case "end": + out.Values[i] = ec._GbfsAlertTime_end(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48766,43 +47923,40 @@ var gbfsBrandAssetImplementors = []string{"GbfsBrandAsset"} func (ec *executionContext) _GbfsBrandAsset(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsBrandAsset) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsBrandAssetImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsBrandAsset") case "brand_last_modified": + out.Values[i] = ec._GbfsBrandAsset_brand_last_modified(ctx, field, obj) + case "brand_terms_url": + out.Values[i] = ec._GbfsBrandAsset_brand_terms_url(ctx, field, obj) + case "brand_image_url": + out.Values[i] = ec._GbfsBrandAsset_brand_image_url(ctx, field, obj) + case "brand_image_url_dark": + out.Values[i] = ec._GbfsBrandAsset_brand_image_url_dark(ctx, field, obj) + case "color": + out.Values[i] = ec._GbfsBrandAsset_color(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48810,43 +47964,40 @@ var gbfsFeedImplementors = []string{"GbfsFeed"} func (ec *executionContext) _GbfsFeed(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsFeed) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsFeedImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsFeed") case "system_information": + out.Values[i] = ec._GbfsFeed_system_information(ctx, field, obj) + case "station_information": + out.Values[i] = ec._GbfsFeed_station_information(ctx, field, obj) + case "rental_hours": + out.Values[i] = ec._GbfsFeed_rental_hours(ctx, field, obj) + case "calendars": + out.Values[i] = ec._GbfsFeed_calendars(ctx, field, obj) + case "alerts": + out.Values[i] = ec._GbfsFeed_alerts(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48854,65 +48005,84 @@ var gbfsFreeBikeStatusImplementors = []string{"GbfsFreeBikeStatus"} func (ec *executionContext) _GbfsFreeBikeStatus(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsFreeBikeStatus) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsFreeBikeStatusImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsFreeBikeStatus") case "bike_id": + out.Values[i] = ec._GbfsFreeBikeStatus_bike_id(ctx, field, obj) + case "lat": + out.Values[i] = ec._GbfsFreeBikeStatus_lat(ctx, field, obj) + case "lon": + out.Values[i] = ec._GbfsFreeBikeStatus_lon(ctx, field, obj) + case "is_reserved": + out.Values[i] = ec._GbfsFreeBikeStatus_is_reserved(ctx, field, obj) + case "is_disabled": + out.Values[i] = ec._GbfsFreeBikeStatus_is_disabled(ctx, field, obj) + case "last_reported": + out.Values[i] = ec._GbfsFreeBikeStatus_last_reported(ctx, field, obj) + case "current_range_meters": + out.Values[i] = ec._GbfsFreeBikeStatus_current_range_meters(ctx, field, obj) + case "current_fuel_percent": + out.Values[i] = ec._GbfsFreeBikeStatus_current_fuel_percent(ctx, field, obj) + case "vehicle_equipment": + out.Values[i] = ec._GbfsFreeBikeStatus_vehicle_equipment(ctx, field, obj) + case "available_until": + out.Values[i] = ec._GbfsFreeBikeStatus_available_until(ctx, field, obj) + case "station": + out.Values[i] = ec._GbfsFreeBikeStatus_station(ctx, field, obj) + case "home_station": + out.Values[i] = ec._GbfsFreeBikeStatus_home_station(ctx, field, obj) + case "pricing_plan": + out.Values[i] = ec._GbfsFreeBikeStatus_pricing_plan(ctx, field, obj) + case "vehicle_type": + out.Values[i] = ec._GbfsFreeBikeStatus_vehicle_type(ctx, field, obj) + case "rental_uris": + out.Values[i] = ec._GbfsFreeBikeStatus_rental_uris(ctx, field, obj) + case "feed": + out.Values[i] = ec._GbfsFreeBikeStatus_feed(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48920,37 +48090,28 @@ var gbfsGeofenceFeatureImplementors = []string{"GbfsGeofenceFeature"} func (ec *executionContext) _GbfsGeofenceFeature(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsGeofenceFeature) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsGeofenceFeatureImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsGeofenceFeature") case "type": + out.Values[i] = ec._GbfsGeofenceFeature_type(ctx, field, obj) + case "geometry": + out.Values[i] = ec._GbfsGeofenceFeature_geometry(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -48958,41 +48119,36 @@ var gbfsGeofencePropertyImplementors = []string{"GbfsGeofenceProperty"} func (ec *executionContext) _GbfsGeofenceProperty(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsGeofenceProperty) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsGeofencePropertyImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsGeofenceProperty") case "name": + out.Values[i] = ec._GbfsGeofenceProperty_name(ctx, field, obj) + case "start": + out.Values[i] = ec._GbfsGeofenceProperty_start(ctx, field, obj) + case "end": + out.Values[i] = ec._GbfsGeofenceProperty_end(ctx, field, obj) + case "rules": + out.Values[i] = ec._GbfsGeofenceProperty_rules(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49000,43 +48156,40 @@ var gbfsGeofenceRuleImplementors = []string{"GbfsGeofenceRule"} func (ec *executionContext) _GbfsGeofenceRule(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsGeofenceRule) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsGeofenceRuleImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsGeofenceRule") case "ride_allowed": + out.Values[i] = ec._GbfsGeofenceRule_ride_allowed(ctx, field, obj) + case "ride_through_allowed": + out.Values[i] = ec._GbfsGeofenceRule_ride_through_allowed(ctx, field, obj) + case "maximum_speed_kph": + out.Values[i] = ec._GbfsGeofenceRule_maximum_speed_kph(ctx, field, obj) + case "station_parking": + out.Values[i] = ec._GbfsGeofenceRule_station_parking(ctx, field, obj) + case "vehicle_type": + out.Values[i] = ec._GbfsGeofenceRule_vehicle_type(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49044,37 +48197,28 @@ var gbfsGeofenceZoneImplementors = []string{"GbfsGeofenceZone"} func (ec *executionContext) _GbfsGeofenceZone(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsGeofenceZone) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsGeofenceZoneImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsGeofenceZone") case "type": + out.Values[i] = ec._GbfsGeofenceZone_type(ctx, field, obj) + case "features": + out.Values[i] = ec._GbfsGeofenceZone_features(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49082,41 +48226,36 @@ var gbfsPlanPriceImplementors = []string{"GbfsPlanPrice"} func (ec *executionContext) _GbfsPlanPrice(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsPlanPrice) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsPlanPriceImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsPlanPrice") case "start": + out.Values[i] = ec._GbfsPlanPrice_start(ctx, field, obj) + case "rate": + out.Values[i] = ec._GbfsPlanPrice_rate(ctx, field, obj) + case "interval": + out.Values[i] = ec._GbfsPlanPrice_interval(ctx, field, obj) + case "end": + out.Values[i] = ec._GbfsPlanPrice_end(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49124,37 +48263,28 @@ var gbfsRentalAppImplementors = []string{"GbfsRentalApp"} func (ec *executionContext) _GbfsRentalApp(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsRentalApp) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsRentalAppImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsRentalApp") case "store_uri": + out.Values[i] = ec._GbfsRentalApp_store_uri(ctx, field, obj) + case "discovery_uri": + out.Values[i] = ec._GbfsRentalApp_discovery_uri(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49162,37 +48292,28 @@ var gbfsRentalAppsImplementors = []string{"GbfsRentalApps"} func (ec *executionContext) _GbfsRentalApps(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsRentalApps) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsRentalAppsImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsRentalApps") case "ios": + out.Values[i] = ec._GbfsRentalApps_ios(ctx, field, obj) + case "android": + out.Values[i] = ec._GbfsRentalApps_android(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49200,39 +48321,32 @@ var gbfsRentalUrisImplementors = []string{"GbfsRentalUris"} func (ec *executionContext) _GbfsRentalUris(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsRentalUris) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsRentalUrisImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsRentalUris") case "android": + out.Values[i] = ec._GbfsRentalUris_android(ctx, field, obj) + case "ios": + out.Values[i] = ec._GbfsRentalUris_ios(ctx, field, obj) + case "web": + out.Values[i] = ec._GbfsRentalUris_web(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49240,73 +48354,100 @@ var gbfsStationInformationImplementors = []string{"GbfsStationInformation"} func (ec *executionContext) _GbfsStationInformation(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsStationInformation) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsStationInformationImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsStationInformation") case "station_id": + out.Values[i] = ec._GbfsStationInformation_station_id(ctx, field, obj) + case "name": + out.Values[i] = ec._GbfsStationInformation_name(ctx, field, obj) + case "short_name": + out.Values[i] = ec._GbfsStationInformation_short_name(ctx, field, obj) + case "lat": + out.Values[i] = ec._GbfsStationInformation_lat(ctx, field, obj) + case "lon": + out.Values[i] = ec._GbfsStationInformation_lon(ctx, field, obj) + case "address": + out.Values[i] = ec._GbfsStationInformation_address(ctx, field, obj) + case "cross_street": + out.Values[i] = ec._GbfsStationInformation_cross_street(ctx, field, obj) + case "post_code": + out.Values[i] = ec._GbfsStationInformation_post_code(ctx, field, obj) + case "rental_methods": + out.Values[i] = ec._GbfsStationInformation_rental_methods(ctx, field, obj) + case "is_virtual_station": + out.Values[i] = ec._GbfsStationInformation_is_virtual_station(ctx, field, obj) + case "station_area": + out.Values[i] = ec._GbfsStationInformation_station_area(ctx, field, obj) + case "parking_type": + out.Values[i] = ec._GbfsStationInformation_parking_type(ctx, field, obj) + case "parking_hoop": + out.Values[i] = ec._GbfsStationInformation_parking_hoop(ctx, field, obj) + case "contact_phone": + out.Values[i] = ec._GbfsStationInformation_contact_phone(ctx, field, obj) + case "capacity": + out.Values[i] = ec._GbfsStationInformation_capacity(ctx, field, obj) + case "is_valet_station": + out.Values[i] = ec._GbfsStationInformation_is_valet_station(ctx, field, obj) + case "is_charging_station": + out.Values[i] = ec._GbfsStationInformation_is_charging_station(ctx, field, obj) + case "feed": + out.Values[i] = ec._GbfsStationInformation_feed(ctx, field, obj) + case "region": + out.Values[i] = ec._GbfsStationInformation_region(ctx, field, obj) + case "status": + out.Values[i] = ec._GbfsStationInformation_status(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49314,55 +48455,64 @@ var gbfsStationStatusImplementors = []string{"GbfsStationStatus"} func (ec *executionContext) _GbfsStationStatus(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsStationStatus) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsStationStatusImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsStationStatus") case "station_id": + out.Values[i] = ec._GbfsStationStatus_station_id(ctx, field, obj) + case "num_bikes_available": + out.Values[i] = ec._GbfsStationStatus_num_bikes_available(ctx, field, obj) + case "num_bikes_disabled": + out.Values[i] = ec._GbfsStationStatus_num_bikes_disabled(ctx, field, obj) + case "num_docks_available": + out.Values[i] = ec._GbfsStationStatus_num_docks_available(ctx, field, obj) + case "num_docks_disabled": + out.Values[i] = ec._GbfsStationStatus_num_docks_disabled(ctx, field, obj) + case "is_returning": + out.Values[i] = ec._GbfsStationStatus_is_returning(ctx, field, obj) + case "is_renting": + out.Values[i] = ec._GbfsStationStatus_is_renting(ctx, field, obj) + case "is_installed": + out.Values[i] = ec._GbfsStationStatus_is_installed(ctx, field, obj) + case "last_reported": + out.Values[i] = ec._GbfsStationStatus_last_reported(ctx, field, obj) + case "vehicle_types_available": + out.Values[i] = ec._GbfsStationStatus_vehicle_types_available(ctx, field, obj) + case "vehicle_docks_available": + out.Values[i] = ec._GbfsStationStatus_vehicle_docks_available(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49370,47 +48520,48 @@ var gbfsSystemAlertImplementors = []string{"GbfsSystemAlert"} func (ec *executionContext) _GbfsSystemAlert(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemAlert) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemAlertImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemAlert") case "alert_id": + out.Values[i] = ec._GbfsSystemAlert_alert_id(ctx, field, obj) + case "type": + out.Values[i] = ec._GbfsSystemAlert_type(ctx, field, obj) + case "url": + out.Values[i] = ec._GbfsSystemAlert_url(ctx, field, obj) + case "summary": + out.Values[i] = ec._GbfsSystemAlert_summary(ctx, field, obj) + case "description": + out.Values[i] = ec._GbfsSystemAlert_description(ctx, field, obj) + case "last_updated": + out.Values[i] = ec._GbfsSystemAlert_last_updated(ctx, field, obj) + case "times": + out.Values[i] = ec._GbfsSystemAlert_times(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49418,45 +48569,44 @@ var gbfsSystemCalendarImplementors = []string{"GbfsSystemCalendar"} func (ec *executionContext) _GbfsSystemCalendar(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemCalendar) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemCalendarImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemCalendar") case "start_month": + out.Values[i] = ec._GbfsSystemCalendar_start_month(ctx, field, obj) + case "start_day": + out.Values[i] = ec._GbfsSystemCalendar_start_day(ctx, field, obj) + case "start_year": + out.Values[i] = ec._GbfsSystemCalendar_start_year(ctx, field, obj) + case "end_month": + out.Values[i] = ec._GbfsSystemCalendar_end_month(ctx, field, obj) + case "end_day": + out.Values[i] = ec._GbfsSystemCalendar_end_day(ctx, field, obj) + case "end_year": + out.Values[i] = ec._GbfsSystemCalendar_end_year(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49464,41 +48614,36 @@ var gbfsSystemHourImplementors = []string{"GbfsSystemHour"} func (ec *executionContext) _GbfsSystemHour(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemHour) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemHourImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemHour") case "user_types": + out.Values[i] = ec._GbfsSystemHour_user_types(ctx, field, obj) + case "days": + out.Values[i] = ec._GbfsSystemHour_days(ctx, field, obj) + case "start_time": + out.Values[i] = ec._GbfsSystemHour_start_time(ctx, field, obj) + case "end_time": + out.Values[i] = ec._GbfsSystemHour_end_time(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49506,71 +48651,96 @@ var gbfsSystemInformationImplementors = []string{"GbfsSystemInformation"} func (ec *executionContext) _GbfsSystemInformation(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemInformation) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemInformationImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemInformation") case "system_id": + out.Values[i] = ec._GbfsSystemInformation_system_id(ctx, field, obj) + case "language": + out.Values[i] = ec._GbfsSystemInformation_language(ctx, field, obj) + case "name": + out.Values[i] = ec._GbfsSystemInformation_name(ctx, field, obj) + case "short_name": + out.Values[i] = ec._GbfsSystemInformation_short_name(ctx, field, obj) + case "operator": + out.Values[i] = ec._GbfsSystemInformation_operator(ctx, field, obj) + case "url": + out.Values[i] = ec._GbfsSystemInformation_url(ctx, field, obj) + case "purchase_url": + out.Values[i] = ec._GbfsSystemInformation_purchase_url(ctx, field, obj) + case "start_date": + out.Values[i] = ec._GbfsSystemInformation_start_date(ctx, field, obj) + case "phone_number": + out.Values[i] = ec._GbfsSystemInformation_phone_number(ctx, field, obj) + case "email": + out.Values[i] = ec._GbfsSystemInformation_email(ctx, field, obj) + case "feed_contact_email": + out.Values[i] = ec._GbfsSystemInformation_feed_contact_email(ctx, field, obj) + case "timezone": + out.Values[i] = ec._GbfsSystemInformation_timezone(ctx, field, obj) + case "license_url": + out.Values[i] = ec._GbfsSystemInformation_license_url(ctx, field, obj) + case "terms_url": + out.Values[i] = ec._GbfsSystemInformation_terms_url(ctx, field, obj) + case "terms_last_updated": + out.Values[i] = ec._GbfsSystemInformation_terms_last_updated(ctx, field, obj) + case "privacy_url": + out.Values[i] = ec._GbfsSystemInformation_privacy_url(ctx, field, obj) + case "privacy_last_updated": + out.Values[i] = ec._GbfsSystemInformation_privacy_last_updated(ctx, field, obj) + case "brand_assets": + out.Values[i] = ec._GbfsSystemInformation_brand_assets(ctx, field, obj) + case "rental_apps": + out.Values[i] = ec._GbfsSystemInformation_rental_apps(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49578,53 +48748,60 @@ var gbfsSystemPricingPlanImplementors = []string{"GbfsSystemPricingPlan"} func (ec *executionContext) _GbfsSystemPricingPlan(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemPricingPlan) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemPricingPlanImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemPricingPlan") case "plan_id": + out.Values[i] = ec._GbfsSystemPricingPlan_plan_id(ctx, field, obj) + case "url": + out.Values[i] = ec._GbfsSystemPricingPlan_url(ctx, field, obj) + case "name": + out.Values[i] = ec._GbfsSystemPricingPlan_name(ctx, field, obj) + case "currency": + out.Values[i] = ec._GbfsSystemPricingPlan_currency(ctx, field, obj) + case "price": + out.Values[i] = ec._GbfsSystemPricingPlan_price(ctx, field, obj) + case "is_taxable": + out.Values[i] = ec._GbfsSystemPricingPlan_is_taxable(ctx, field, obj) + case "description": + out.Values[i] = ec._GbfsSystemPricingPlan_description(ctx, field, obj) + case "surge_pricing": + out.Values[i] = ec._GbfsSystemPricingPlan_surge_pricing(ctx, field, obj) + case "per_km_pricing": + out.Values[i] = ec._GbfsSystemPricingPlan_per_km_pricing(ctx, field, obj) + case "per_min_pricing": + out.Values[i] = ec._GbfsSystemPricingPlan_per_min_pricing(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49632,37 +48809,28 @@ var gbfsSystemRegionImplementors = []string{"GbfsSystemRegion"} func (ec *executionContext) _GbfsSystemRegion(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemRegion) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemRegionImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemRegion") case "region_id": + out.Values[i] = ec._GbfsSystemRegion_region_id(ctx, field, obj) + case "name": + out.Values[i] = ec._GbfsSystemRegion_name(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49670,37 +48838,28 @@ var gbfsSystemVersionImplementors = []string{"GbfsSystemVersion"} func (ec *executionContext) _GbfsSystemVersion(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsSystemVersion) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsSystemVersionImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsSystemVersion") case "version": + out.Values[i] = ec._GbfsSystemVersion_version(ctx, field, obj) + case "url": + out.Values[i] = ec._GbfsSystemVersion_url(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49708,39 +48867,32 @@ var gbfsVehicleAssetsImplementors = []string{"GbfsVehicleAssets"} func (ec *executionContext) _GbfsVehicleAssets(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsVehicleAssets) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsVehicleAssetsImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsVehicleAssets") case "icon_url": + out.Values[i] = ec._GbfsVehicleAssets_icon_url(ctx, field, obj) + case "icon_url_dark": + out.Values[i] = ec._GbfsVehicleAssets_icon_url_dark(ctx, field, obj) + case "icon_last_modified": + out.Values[i] = ec._GbfsVehicleAssets_icon_last_modified(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49748,37 +48900,28 @@ var gbfsVehicleDockAvailableImplementors = []string{"GbfsVehicleDockAvailable"} func (ec *executionContext) _GbfsVehicleDockAvailable(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsVehicleDockAvailable) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsVehicleDockAvailableImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsVehicleDockAvailable") case "count": + out.Values[i] = ec._GbfsVehicleDockAvailable_count(ctx, field, obj) + case "vehicle_types": + out.Values[i] = ec._GbfsVehicleDockAvailable_vehicle_types(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49786,85 +48929,124 @@ var gbfsVehicleTypeImplementors = []string{"GbfsVehicleType"} func (ec *executionContext) _GbfsVehicleType(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsVehicleType) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsVehicleTypeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsVehicleType") case "vehicle_type_id": + out.Values[i] = ec._GbfsVehicleType_vehicle_type_id(ctx, field, obj) + case "form_factor": + out.Values[i] = ec._GbfsVehicleType_form_factor(ctx, field, obj) + case "rider_capacity": + out.Values[i] = ec._GbfsVehicleType_rider_capacity(ctx, field, obj) + case "cargo_volume_capacity": + out.Values[i] = ec._GbfsVehicleType_cargo_volume_capacity(ctx, field, obj) + case "cargo_load_capacity": + out.Values[i] = ec._GbfsVehicleType_cargo_load_capacity(ctx, field, obj) + case "propulsion_type": + out.Values[i] = ec._GbfsVehicleType_propulsion_type(ctx, field, obj) + case "eco_label": + out.Values[i] = ec._GbfsVehicleType_eco_label(ctx, field, obj) + case "country_code": + out.Values[i] = ec._GbfsVehicleType_country_code(ctx, field, obj) + case "eco_sticker": + out.Values[i] = ec._GbfsVehicleType_eco_sticker(ctx, field, obj) + case "max_range_meters": + out.Values[i] = ec._GbfsVehicleType_max_range_meters(ctx, field, obj) + case "name": + out.Values[i] = ec._GbfsVehicleType_name(ctx, field, obj) + case "vehicle_accessories": + out.Values[i] = ec._GbfsVehicleType_vehicle_accessories(ctx, field, obj) + case "gco_2_km": + out.Values[i] = ec._GbfsVehicleType_gco_2_km(ctx, field, obj) + case "vehicle_image": + out.Values[i] = ec._GbfsVehicleType_vehicle_image(ctx, field, obj) + case "make": + out.Values[i] = ec._GbfsVehicleType_make(ctx, field, obj) + case "model": + out.Values[i] = ec._GbfsVehicleType_model(ctx, field, obj) + case "color": + out.Values[i] = ec._GbfsVehicleType_color(ctx, field, obj) + case "wheel_count": + out.Values[i] = ec._GbfsVehicleType_wheel_count(ctx, field, obj) + case "max_permitted_speed": + out.Values[i] = ec._GbfsVehicleType_max_permitted_speed(ctx, field, obj) + case "rated_power": + out.Values[i] = ec._GbfsVehicleType_rated_power(ctx, field, obj) + case "default_reserve_time": + out.Values[i] = ec._GbfsVehicleType_default_reserve_time(ctx, field, obj) + case "return_constraint": + out.Values[i] = ec._GbfsVehicleType_return_constraint(ctx, field, obj) + case "default_pricing_plan": + out.Values[i] = ec._GbfsVehicleType_default_pricing_plan(ctx, field, obj) + case "pricing_plans": + out.Values[i] = ec._GbfsVehicleType_pricing_plans(ctx, field, obj) + case "rental_uris": + out.Values[i] = ec._GbfsVehicleType_rental_uris(ctx, field, obj) + case "vehicle_assets": + out.Values[i] = ec._GbfsVehicleType_vehicle_assets(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49872,41 +49054,36 @@ var gbfsVehicleTypeAvailableImplementors = []string{"GbfsVehicleTypeAvailable"} func (ec *executionContext) _GbfsVehicleTypeAvailable(ctx context.Context, sel ast.SelectionSet, obj *model.GbfsVehicleTypeAvailable) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, gbfsVehicleTypeAvailableImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("GbfsVehicleTypeAvailable") case "num_bikes_disabled": + out.Values[i] = ec._GbfsVehicleTypeAvailable_num_bikes_disabled(ctx, field, obj) + case "num_docks_available": + out.Values[i] = ec._GbfsVehicleTypeAvailable_num_docks_available(ctx, field, obj) + case "count": + out.Values[i] = ec._GbfsVehicleTypeAvailable_count(ctx, field, obj) + case "vehicle_type": + out.Values[i] = ec._GbfsVehicleTypeAvailable_vehicle_type(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49914,65 +49091,66 @@ var itineraryImplementors = []string{"Itinerary"} func (ec *executionContext) _Itinerary(ctx context.Context, sel ast.SelectionSet, obj *model.Itinerary) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, itineraryImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Itinerary") case "duration": + out.Values[i] = ec._Itinerary_duration(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "distance": + out.Values[i] = ec._Itinerary_distance(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "start_time": + out.Values[i] = ec._Itinerary_start_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "end_time": + out.Values[i] = ec._Itinerary_end_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "from": + out.Values[i] = ec._Itinerary_from(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "to": + out.Values[i] = ec._Itinerary_to(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "legs": + out.Values[i] = ec._Itinerary_legs(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -49980,64 +49158,67 @@ var legImplementors = []string{"Leg"} func (ec *executionContext) _Leg(ctx context.Context, sel ast.SelectionSet, obj *model.Leg) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, legImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Leg") case "duration": + out.Values[i] = ec._Leg_duration(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "distance": + out.Values[i] = ec._Leg_distance(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "start_time": + out.Values[i] = ec._Leg_start_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "end_time": + out.Values[i] = ec._Leg_end_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "from": + out.Values[i] = ec._Leg_from(ctx, field, obj) + case "to": + out.Values[i] = ec._Leg_to(ctx, field, obj) + case "steps": + out.Values[i] = ec._Leg_steps(ctx, field, obj) + case "geometry": + out.Values[i] = ec._Leg_geometry(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -50045,42 +49226,51 @@ var levelImplementors = []string{"Level"} func (ec *executionContext) _Level(ctx context.Context, sel ast.SelectionSet, obj *model.Level) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, levelImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Level") case "id": + out.Values[i] = ec._Level_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "level_id": + out.Values[i] = ec._Level_level_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "level_name": + out.Values[i] = ec._Level_level_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "level_index": + out.Values[i] = ec._Level_level_index(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "geometry": + out.Values[i] = ec._Level_geometry(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stops": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50090,46 +49280,18 @@ func (ec *executionContext) _Level(ctx context.Context, sel ast.SelectionSet, ob return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -50137,44 +49299,39 @@ var meImplementors = []string{"Me"} func (ec *executionContext) _Me(ctx context.Context, sel ast.SelectionSet, obj *model.Me) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, meImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Me") case "id": + out.Values[i] = ec._Me_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "name": + out.Values[i] = ec._Me_name(ctx, field, obj) + case "email": + out.Values[i] = ec._Me_email(ctx, field, obj) + case "external_data": + out.Values[i] = ec._Me_external_data(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -50187,7 +49344,7 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) }) out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ Object: field.Name, @@ -50198,58 +49355,58 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) case "__typename": out.Values[i] = graphql.MarshalString("Mutation") case "validate_gtfs": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_validate_gtfs(ctx, field) }) + case "feed_version_update": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_update(ctx, field) }) + case "feed_version_fetch": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_fetch(ctx, field) }) + case "feed_version_import": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_import(ctx, field) }) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "feed_version_unimport": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_unimport(ctx, field) }) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "feed_version_delete": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_feed_version_delete(ctx, field) }) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -50257,41 +49414,58 @@ var operatorImplementors = []string{"Operator"} func (ec *executionContext) _Operator(ctx context.Context, sel ast.SelectionSet, obj *model.Operator) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, operatorImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Operator") case "id": + out.Values[i] = ec._Operator_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "generated": + out.Values[i] = ec._Operator_generated(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "file": + out.Values[i] = ec._Operator_file(ctx, field, obj) + case "onestop_id": + out.Values[i] = ec._Operator_onestop_id(ctx, field, obj) + case "name": + out.Values[i] = ec._Operator_name(ctx, field, obj) + case "short_name": + out.Values[i] = ec._Operator_short_name(ctx, field, obj) + case "website": + out.Values[i] = ec._Operator_website(ctx, field, obj) + case "tags": + out.Values[i] = ec._Operator_tags(ctx, field, obj) + case "search_rank": + out.Values[i] = ec._Operator_search_rank(ctx, field, obj) + case "agencies": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50301,30 +49475,14 @@ func (ec *executionContext) _Operator(ctx context.Context, sel ast.SelectionSet, return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feeds": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50334,46 +49492,18 @@ func (ec *executionContext) _Operator(ctx context.Context, sel ast.SelectionSet, return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -50381,72 +49511,93 @@ var pathwayImplementors = []string{"Pathway"} func (ec *executionContext) _Pathway(ctx context.Context, sel ast.SelectionSet, obj *model.Pathway) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, pathwayImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Pathway") case "id": + out.Values[i] = ec._Pathway_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "pathway_id": + out.Values[i] = ec._Pathway_pathway_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "pathway_mode": + out.Values[i] = ec._Pathway_pathway_mode(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "is_bidirectional": + out.Values[i] = ec._Pathway_is_bidirectional(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "length": + out.Values[i] = ec._Pathway_length(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "traversal_time": + out.Values[i] = ec._Pathway_traversal_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stair_count": + out.Values[i] = ec._Pathway_stair_count(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "max_slope": + out.Values[i] = ec._Pathway_max_slope(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "min_width": + out.Values[i] = ec._Pathway_min_width(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "signposted_as": + out.Values[i] = ec._Pathway_signposted_as(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "reverse_signposted_as": + out.Values[i] = ec._Pathway_reverse_signposted_as(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "from_stop": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50454,35 +49605,19 @@ func (ec *executionContext) _Pathway(ctx context.Context, sel ast.SelectionSet, }() res = ec._Pathway_from_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "to_stop": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50490,51 +49625,23 @@ func (ec *executionContext) _Pathway(ctx context.Context, sel ast.SelectionSet, }() res = ec._Pathway_to_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -50542,23 +49649,28 @@ var placeImplementors = []string{"Place"} func (ec *executionContext) _Place(ctx context.Context, sel ast.SelectionSet, obj *model.Place) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, placeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Place") case "adm0_name": + out.Values[i] = ec._Place_adm0_name(ctx, field, obj) + case "adm1_name": + out.Values[i] = ec._Place_adm1_name(ctx, field, obj) + case "city_name": + out.Values[i] = ec._Place_city_name(ctx, field, obj) + case "count": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50566,35 +49678,19 @@ func (ec *executionContext) _Place(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Place_count(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "operators": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50604,46 +49700,18 @@ func (ec *executionContext) _Place(ctx context.Context, sel ast.SelectionSet, ob return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -50656,7 +49724,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }) out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ Object: field.Name, @@ -50669,7 +49737,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "feed_versions": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50677,21 +49745,22 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_feed_versions(ctx, field) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "feeds": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50699,21 +49768,22 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_feeds(ctx, field) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "agencies": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50721,21 +49791,22 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_agencies(ctx, field) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "routes": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50743,21 +49814,22 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_routes(ctx, field) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "stops": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50765,21 +49837,22 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_stops(ctx, field) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "trips": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50787,21 +49860,22 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_trips(ctx, field) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "operators": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50809,21 +49883,22 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_operators(ctx, field) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "directions": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50831,21 +49906,22 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_directions(ctx, field) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "bikes": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50856,15 +49932,16 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "docks": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50875,15 +49952,16 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "places": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50894,15 +49972,16 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "me": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -50910,45 +49989,38 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr }() res = ec._Query_me(ctx, field) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + out.Concurrently(i, func() graphql.Marshaler { + return rrm(innerCtx) + }) case "__type": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___type(ctx, field) }) + case "__schema": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___schema(ctx, field) }) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -50956,37 +50028,28 @@ var rTTimeRangeImplementors = []string{"RTTimeRange"} func (ec *executionContext) _RTTimeRange(ctx context.Context, sel ast.SelectionSet, obj *model.RTTimeRange) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, rTTimeRangeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RTTimeRange") case "start": + out.Values[i] = ec._RTTimeRange_start(ctx, field, obj) + case "end": + out.Values[i] = ec._RTTimeRange_end(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -50994,40 +50057,31 @@ var rTTranslationImplementors = []string{"RTTranslation"} func (ec *executionContext) _RTTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.RTTranslation) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, rTTranslationImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RTTranslation") case "text": + out.Values[i] = ec._RTTranslation_text(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "language": + out.Values[i] = ec._RTTranslation_language(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -51035,45 +50089,44 @@ var rTTripDescriptorImplementors = []string{"RTTripDescriptor"} func (ec *executionContext) _RTTripDescriptor(ctx context.Context, sel ast.SelectionSet, obj *model.RTTripDescriptor) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, rTTripDescriptorImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RTTripDescriptor") case "trip_id": + out.Values[i] = ec._RTTripDescriptor_trip_id(ctx, field, obj) + case "route_id": + out.Values[i] = ec._RTTripDescriptor_route_id(ctx, field, obj) + case "direction_id": + out.Values[i] = ec._RTTripDescriptor_direction_id(ctx, field, obj) + case "start_time": + out.Values[i] = ec._RTTripDescriptor_start_time(ctx, field, obj) + case "start_date": + out.Values[i] = ec._RTTripDescriptor_start_date(ctx, field, obj) + case "schedule_relationship": + out.Values[i] = ec._RTTripDescriptor_schedule_relationship(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -51081,39 +50134,32 @@ var rTVehicleDescriptorImplementors = []string{"RTVehicleDescriptor"} func (ec *executionContext) _RTVehicleDescriptor(ctx context.Context, sel ast.SelectionSet, obj *model.RTVehicleDescriptor) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, rTVehicleDescriptorImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RTVehicleDescriptor") case "id": + out.Values[i] = ec._RTVehicleDescriptor_id(ctx, field, obj) + case "label": + out.Values[i] = ec._RTVehicleDescriptor_label(ctx, field, obj) + case "license_plate": + out.Values[i] = ec._RTVehicleDescriptor_license_plate(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -51121,73 +50167,98 @@ var routeImplementors = []string{"Route"} func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, obj *model.Route) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Route") case "id": + out.Values[i] = ec._Route_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "onestop_id": + out.Values[i] = ec._Route_onestop_id(ctx, field, obj) + case "route_id": + out.Values[i] = ec._Route_route_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route_short_name": + out.Values[i] = ec._Route_route_short_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route_long_name": + out.Values[i] = ec._Route_route_long_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route_type": + out.Values[i] = ec._Route_route_type(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route_color": + out.Values[i] = ec._Route_route_color(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route_text_color": + out.Values[i] = ec._Route_route_text_color(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route_sort_order": + out.Values[i] = ec._Route_route_sort_order(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route_url": + out.Values[i] = ec._Route_route_url(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route_desc": + out.Values[i] = ec._Route_route_desc(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "continuous_pickup": + out.Values[i] = ec._Route_continuous_pickup(ctx, field, obj) + case "continuous_drop_off": + out.Values[i] = ec._Route_continuous_drop_off(ctx, field, obj) + case "geometry": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51197,30 +50268,14 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "agency": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51228,35 +50283,19 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_agency(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feed_version": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51264,47 +50303,37 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_feed_version(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feed_version_sha1": + out.Values[i] = ec._Route_feed_version_sha1(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "feed_onestop_id": + out.Values[i] = ec._Route_feed_onestop_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "search_rank": + out.Values[i] = ec._Route_search_rank(ctx, field, obj) + case "route_attribute": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51314,30 +50343,14 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "trips": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51345,35 +50358,19 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_trips(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "stops": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51381,35 +50378,19 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_stops(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "route_stops": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51417,35 +50398,19 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_route_stops(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "headways": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51453,35 +50418,19 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_headways(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "geometries": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51489,35 +50438,19 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_geometries(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "census_geographies": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51527,30 +50460,14 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "route_stop_buffer": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51558,35 +50475,19 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob }() res = ec._Route_route_stop_buffer(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "patterns": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51596,30 +50497,14 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "alerts": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51629,46 +50514,18 @@ func (ec *executionContext) _Route(ctx context.Context, sel ast.SelectionSet, ob return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -51676,39 +50533,32 @@ var routeAttributeImplementors = []string{"RouteAttribute"} func (ec *executionContext) _RouteAttribute(ctx context.Context, sel ast.SelectionSet, obj *model.RouteAttribute) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeAttributeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteAttribute") case "category": + out.Values[i] = ec._RouteAttribute_category(ctx, field, obj) + case "subcategory": + out.Values[i] = ec._RouteAttribute_subcategory(ctx, field, obj) + case "running_way": + out.Values[i] = ec._RouteAttribute_running_way(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -51716,48 +50566,47 @@ var routeGeometryImplementors = []string{"RouteGeometry"} func (ec *executionContext) _RouteGeometry(ctx context.Context, sel ast.SelectionSet, obj *model.RouteGeometry) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeGeometryImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteGeometry") case "generated": + out.Values[i] = ec._RouteGeometry_generated(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "geometry": + out.Values[i] = ec._RouteGeometry_geometry(ctx, field, obj) + case "combined_geometry": + out.Values[i] = ec._RouteGeometry_combined_geometry(ctx, field, obj) + case "length": + out.Values[i] = ec._RouteGeometry_length(ctx, field, obj) + case "max_segment_length": + out.Values[i] = ec._RouteGeometry_max_segment_length(ctx, field, obj) + case "first_point_max_distance": + out.Values[i] = ec._RouteGeometry_first_point_max_distance(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -51765,9 +50614,8 @@ var routeHeadwayImplementors = []string{"RouteHeadway"} func (ec *executionContext) _RouteHeadway(ctx context.Context, sel ast.SelectionSet, obj *model.RouteHeadway) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeHeadwayImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": @@ -51775,7 +50623,7 @@ func (ec *executionContext) _RouteHeadway(ctx context.Context, sel ast.Selection case "stop": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51783,45 +50631,39 @@ func (ec *executionContext) _RouteHeadway(ctx context.Context, sel ast.Selection }() res = ec._RouteHeadway_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "dow_category": + out.Values[i] = ec._RouteHeadway_dow_category(ctx, field, obj) + case "direction_id": + out.Values[i] = ec._RouteHeadway_direction_id(ctx, field, obj) + case "headway_secs": + out.Values[i] = ec._RouteHeadway_headway_secs(ctx, field, obj) + case "service_date": + out.Values[i] = ec._RouteHeadway_service_date(ctx, field, obj) + case "stop_trip_count": + out.Values[i] = ec._RouteHeadway_stop_trip_count(ctx, field, obj) + case "departures": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51831,46 +50673,18 @@ func (ec *executionContext) _RouteHeadway(ctx context.Context, sel ast.Selection return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -51878,37 +50692,44 @@ var routeStopImplementors = []string{"RouteStop"} func (ec *executionContext) _RouteStop(ctx context.Context, sel ast.SelectionSet, obj *model.RouteStop) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeStopImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteStop") case "id": + out.Values[i] = ec._RouteStop_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_id": + out.Values[i] = ec._RouteStop_stop_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route_id": + out.Values[i] = ec._RouteStop_route_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "agency_id": + out.Values[i] = ec._RouteStop_agency_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "route": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51916,35 +50737,19 @@ func (ec *executionContext) _RouteStop(ctx context.Context, sel ast.SelectionSet }() res = ec._RouteStop_route(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "stop": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51952,35 +50757,19 @@ func (ec *executionContext) _RouteStop(ctx context.Context, sel ast.SelectionSet }() res = ec._RouteStop_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "agency": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -51988,51 +50777,23 @@ func (ec *executionContext) _RouteStop(ctx context.Context, sel ast.SelectionSet }() res = ec._RouteStop_agency(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -52040,39 +50801,32 @@ var routeStopBufferImplementors = []string{"RouteStopBuffer"} func (ec *executionContext) _RouteStopBuffer(ctx context.Context, sel ast.SelectionSet, obj *model.RouteStopBuffer) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeStopBufferImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteStopBuffer") case "stop_points": + out.Values[i] = ec._RouteStopBuffer_stop_points(ctx, field, obj) + case "stop_buffer": + out.Values[i] = ec._RouteStopBuffer_stop_buffer(ctx, field, obj) + case "stop_convexhull": + out.Values[i] = ec._RouteStopBuffer_stop_convexhull(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -52080,32 +50834,37 @@ var routeStopPatternImplementors = []string{"RouteStopPattern"} func (ec *executionContext) _RouteStopPattern(ctx context.Context, sel ast.SelectionSet, obj *model.RouteStopPattern) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, routeStopPatternImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("RouteStopPattern") case "stop_pattern_id": + out.Values[i] = ec._RouteStopPattern_stop_pattern_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "direction_id": + out.Values[i] = ec._RouteStopPattern_direction_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "count": + out.Values[i] = ec._RouteStopPattern_count(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "trips": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52115,46 +50874,18 @@ func (ec *executionContext) _RouteStopPattern(ctx context.Context, sel ast.Selec return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -52162,53 +50893,48 @@ var shapeImplementors = []string{"Shape"} func (ec *executionContext) _Shape(ctx context.Context, sel ast.SelectionSet, obj *model.Shape) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, shapeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Shape") case "id": + out.Values[i] = ec._Shape_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "shape_id": + out.Values[i] = ec._Shape_shape_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "geometry": + out.Values[i] = ec._Shape_geometry(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "generated": + out.Values[i] = ec._Shape_generated(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -52216,70 +50942,73 @@ var stepImplementors = []string{"Step"} func (ec *executionContext) _Step(ctx context.Context, sel ast.SelectionSet, obj *model.Step) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stepImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Step") case "duration": + out.Values[i] = ec._Step_duration(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "distance": + out.Values[i] = ec._Step_distance(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "start_time": + out.Values[i] = ec._Step_start_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "end_time": + out.Values[i] = ec._Step_end_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "to": + out.Values[i] = ec._Step_to(ctx, field, obj) + case "mode": + out.Values[i] = ec._Step_mode(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "instruction": + out.Values[i] = ec._Step_instruction(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "geometry_offset": + out.Values[i] = ec._Step_geometry_offset(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -52287,91 +51016,122 @@ var stopImplementors = []string{"Stop"} func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj *model.Stop) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Stop") case "id": + out.Values[i] = ec._Stop_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "onestop_id": + out.Values[i] = ec._Stop_onestop_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "location_type": + out.Values[i] = ec._Stop_location_type(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_code": + out.Values[i] = ec._Stop_stop_code(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_desc": + out.Values[i] = ec._Stop_stop_desc(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_id": + out.Values[i] = ec._Stop_stop_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_name": + out.Values[i] = ec._Stop_stop_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_timezone": + out.Values[i] = ec._Stop_stop_timezone(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_url": + out.Values[i] = ec._Stop_stop_url(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "wheelchair_boarding": + out.Values[i] = ec._Stop_wheelchair_boarding(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "zone_id": + out.Values[i] = ec._Stop_zone_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "platform_code": + out.Values[i] = ec._Stop_platform_code(ctx, field, obj) + case "tts_stop_name": + out.Values[i] = ec._Stop_tts_stop_name(ctx, field, obj) + case "geometry": + out.Values[i] = ec._Stop_geometry(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "feed_version_sha1": + out.Values[i] = ec._Stop_feed_version_sha1(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "feed_onestop_id": + out.Values[i] = ec._Stop_feed_onestop_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "feed_version": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52379,35 +51139,19 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_feed_version(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "level": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52417,30 +51161,14 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "parent": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52450,30 +51178,14 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "external_reference": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52483,30 +51195,14 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "observations": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52516,30 +51212,14 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "children": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52549,30 +51229,14 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "route_stops": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52580,35 +51244,19 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_route_stops(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "pathways_from_stop": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52616,35 +51264,19 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_pathways_from_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "pathways_to_stop": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52652,35 +51284,19 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_pathways_to_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "stop_times": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52688,35 +51304,19 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_stop_times(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "departures": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52724,35 +51324,19 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_departures(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "arrivals": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52760,37 +51344,23 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_arrivals(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "search_rank": + out.Values[i] = ec._Stop_search_rank(ctx, field, obj) + case "place": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52800,30 +51370,14 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "census_geographies": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52833,30 +51387,14 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "directions": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52864,35 +51402,19 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Stop_directions(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "nearby_stops": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52902,30 +51424,14 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "alerts": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -52935,46 +51441,18 @@ func (ec *executionContext) _Stop(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -52982,28 +51460,35 @@ var stopExternalReferenceImplementors = []string{"StopExternalReference"} func (ec *executionContext) _StopExternalReference(ctx context.Context, sel ast.SelectionSet, obj *model.StopExternalReference) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopExternalReferenceImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopExternalReference") case "id": + out.Values[i] = ec._StopExternalReference_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "target_feed_onestop_id": + out.Values[i] = ec._StopExternalReference_target_feed_onestop_id(ctx, field, obj) + case "target_stop_id": + out.Values[i] = ec._StopExternalReference_target_stop_id(ctx, field, obj) + case "inactive": + out.Values[i] = ec._StopExternalReference_inactive(ctx, field, obj) + case "target_active_stop": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53013,46 +51498,18 @@ func (ec *executionContext) _StopExternalReference(ctx context.Context, sel ast. return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -53060,61 +51517,76 @@ var stopObservationImplementors = []string{"StopObservation"} func (ec *executionContext) _StopObservation(ctx context.Context, sel ast.SelectionSet, obj *model.StopObservation) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopObservationImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopObservation") case "schedule_relationship": + out.Values[i] = ec._StopObservation_schedule_relationship(ctx, field, obj) + case "trip_start_date": + out.Values[i] = ec._StopObservation_trip_start_date(ctx, field, obj) + case "trip_start_time": + out.Values[i] = ec._StopObservation_trip_start_time(ctx, field, obj) + case "from_stop_id": + out.Values[i] = ec._StopObservation_from_stop_id(ctx, field, obj) + case "to_stop_id": + out.Values[i] = ec._StopObservation_to_stop_id(ctx, field, obj) + case "agency_id": + out.Values[i] = ec._StopObservation_agency_id(ctx, field, obj) + case "route_id": + out.Values[i] = ec._StopObservation_route_id(ctx, field, obj) + case "trip_id": + out.Values[i] = ec._StopObservation_trip_id(ctx, field, obj) + case "stop_sequence": + out.Values[i] = ec._StopObservation_stop_sequence(ctx, field, obj) + case "source": + out.Values[i] = ec._StopObservation_source(ctx, field, obj) + case "scheduled_arrival_time": + out.Values[i] = ec._StopObservation_scheduled_arrival_time(ctx, field, obj) + case "scheduled_departure_time": + out.Values[i] = ec._StopObservation_scheduled_departure_time(ctx, field, obj) + case "observed_arrival_time": + out.Values[i] = ec._StopObservation_observed_arrival_time(ctx, field, obj) + case "observed_departure_time": + out.Values[i] = ec._StopObservation_observed_departure_time(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -53122,41 +51594,36 @@ var stopPlaceImplementors = []string{"StopPlace"} func (ec *executionContext) _StopPlace(ctx context.Context, sel ast.SelectionSet, obj *model.StopPlace) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopPlaceImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopPlace") case "adm1_name": + out.Values[i] = ec._StopPlace_adm1_name(ctx, field, obj) + case "adm0_name": + out.Values[i] = ec._StopPlace_adm0_name(ctx, field, obj) + case "adm0_iso": + out.Values[i] = ec._StopPlace_adm0_iso(ctx, field, obj) + case "adm1_iso": + out.Values[i] = ec._StopPlace_adm1_iso(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -53164,42 +51631,57 @@ var stopTimeImplementors = []string{"StopTime"} func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, obj *model.StopTime) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopTimeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopTime") case "arrival_time": + out.Values[i] = ec._StopTime_arrival_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "departure_time": + out.Values[i] = ec._StopTime_departure_time(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_sequence": + out.Values[i] = ec._StopTime_stop_sequence(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_headsign": + out.Values[i] = ec._StopTime_stop_headsign(ctx, field, obj) + case "pickup_type": + out.Values[i] = ec._StopTime_pickup_type(ctx, field, obj) + case "drop_off_type": + out.Values[i] = ec._StopTime_drop_off_type(ctx, field, obj) + case "timepoint": + out.Values[i] = ec._StopTime_timepoint(ctx, field, obj) + case "interpolated": + out.Values[i] = ec._StopTime_interpolated(ctx, field, obj) + case "stop": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53207,35 +51689,19 @@ func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, }() res = ec._StopTime_stop(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "trip": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53243,35 +51709,19 @@ func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, }() res = ec._StopTime_trip(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "arrival": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53279,35 +51729,19 @@ func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, }() res = ec._StopTime_arrival(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "departure": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53315,59 +51749,39 @@ func (ec *executionContext) _StopTime(ctx context.Context, sel ast.SelectionSet, }() res = ec._StopTime_departure(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "continuous_drop_off": + out.Values[i] = ec._StopTime_continuous_drop_off(ctx, field, obj) + case "continuous_pickup": + out.Values[i] = ec._StopTime_continuous_pickup(ctx, field, obj) + case "shape_dist_traveled": + out.Values[i] = ec._StopTime_shape_dist_traveled(ctx, field, obj) + case "service_date": + out.Values[i] = ec._StopTime_service_date(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -53375,48 +51789,47 @@ var stopTimeEventImplementors = []string{"StopTimeEvent"} func (ec *executionContext) _StopTimeEvent(ctx context.Context, sel ast.SelectionSet, obj *model.StopTimeEvent) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, stopTimeEventImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("StopTimeEvent") case "stop_timezone": + out.Values[i] = ec._StopTimeEvent_stop_timezone(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "scheduled": + out.Values[i] = ec._StopTimeEvent_scheduled(ctx, field, obj) + case "estimated": + out.Values[i] = ec._StopTimeEvent_estimated(ctx, field, obj) + case "estimated_utc": + out.Values[i] = ec._StopTimeEvent_estimated_utc(ctx, field, obj) + case "delay": + out.Values[i] = ec._StopTimeEvent_delay(ctx, field, obj) + case "uncertainty": + out.Values[i] = ec._StopTimeEvent_uncertainty(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -53424,62 +51837,79 @@ var tripImplementors = []string{"Trip"} func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj *model.Trip) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, tripImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Trip") case "id": + out.Values[i] = ec._Trip_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "trip_id": + out.Values[i] = ec._Trip_trip_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "trip_headsign": + out.Values[i] = ec._Trip_trip_headsign(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "trip_short_name": + out.Values[i] = ec._Trip_trip_short_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "direction_id": + out.Values[i] = ec._Trip_direction_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "block_id": + out.Values[i] = ec._Trip_block_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "wheelchair_accessible": + out.Values[i] = ec._Trip_wheelchair_accessible(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "bikes_allowed": + out.Values[i] = ec._Trip_bikes_allowed(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "stop_pattern_id": + out.Values[i] = ec._Trip_stop_pattern_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + atomic.AddUint32(&invalids, 1) } case "calendar": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53487,35 +51917,19 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_calendar(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "route": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53523,35 +51937,19 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_route(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "shape": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53561,30 +51959,14 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "feed_version": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53592,35 +51974,19 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_feed_version(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "stop_times": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53628,35 +51994,19 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_stop_times(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "frequencies": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53664,35 +52014,19 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj }() res = ec._Trip_frequencies(ctx, field, obj) if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + atomic.AddUint32(&invalids, 1) } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "schedule_relationship": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53702,30 +52036,14 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "timestamp": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53735,30 +52053,14 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) case "alerts": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) @@ -53768,46 +52070,18 @@ func (ec *executionContext) _Trip(ctx context.Context, sel ast.SelectionSet, obj return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out.Concurrently(i, func() graphql.Marshaler { + return innerFunc(ctx) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -53815,40 +52089,31 @@ var validationRealtimeResultImplementors = []string{"ValidationRealtimeResult"} func (ec *executionContext) _ValidationRealtimeResult(ctx context.Context, sel ast.SelectionSet, obj *model.ValidationRealtimeResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, validationRealtimeResultImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ValidationRealtimeResult") case "url": + out.Values[i] = ec._ValidationRealtimeResult_url(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "json": + out.Values[i] = ec._ValidationRealtimeResult_json(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -53856,94 +52121,109 @@ var validationResultImplementors = []string{"ValidationResult"} func (ec *executionContext) _ValidationResult(ctx context.Context, sel ast.SelectionSet, obj *model.ValidationResult) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, validationResultImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ValidationResult") case "success": + out.Values[i] = ec._ValidationResult_success(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "failure_reason": + out.Values[i] = ec._ValidationResult_failure_reason(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "errors": + out.Values[i] = ec._ValidationResult_errors(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "warnings": + out.Values[i] = ec._ValidationResult_warnings(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "sha1": + out.Values[i] = ec._ValidationResult_sha1(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "earliest_calendar_date": + out.Values[i] = ec._ValidationResult_earliest_calendar_date(ctx, field, obj) + case "latest_calendar_date": + out.Values[i] = ec._ValidationResult_latest_calendar_date(ctx, field, obj) + case "files": + out.Values[i] = ec._ValidationResult_files(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "service_levels": + out.Values[i] = ec._ValidationResult_service_levels(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "agencies": + out.Values[i] = ec._ValidationResult_agencies(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "routes": + out.Values[i] = ec._ValidationResult_routes(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "stops": + out.Values[i] = ec._ValidationResult_stops(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "feed_infos": + out.Values[i] = ec._ValidationResult_feed_infos(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "realtime": + out.Values[i] = ec._ValidationResult_realtime(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -53951,63 +52231,62 @@ var validationResultErrorImplementors = []string{"ValidationResultError"} func (ec *executionContext) _ValidationResultError(ctx context.Context, sel ast.SelectionSet, obj *model.ValidationResultError) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, validationResultErrorImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ValidationResultError") case "filename": + out.Values[i] = ec._ValidationResultError_filename(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "error_type": + out.Values[i] = ec._ValidationResultError_error_type(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "entity_id": + out.Values[i] = ec._ValidationResultError_entity_id(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "field": + out.Values[i] = ec._ValidationResultError_field(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "value": + out.Values[i] = ec._ValidationResultError_value(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "message": + out.Values[i] = ec._ValidationResultError_message(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -54015,58 +52294,55 @@ var validationResultErrorGroupImplementors = []string{"ValidationResultErrorGrou func (ec *executionContext) _ValidationResultErrorGroup(ctx context.Context, sel ast.SelectionSet, obj *model.ValidationResultErrorGroup) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, validationResultErrorGroupImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("ValidationResultErrorGroup") case "filename": + out.Values[i] = ec._ValidationResultErrorGroup_filename(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "error_type": + out.Values[i] = ec._ValidationResultErrorGroup_error_type(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "count": + out.Values[i] = ec._ValidationResultErrorGroup_count(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "limit": + out.Values[i] = ec._ValidationResultErrorGroup_limit(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "errors": + out.Values[i] = ec._ValidationResultErrorGroup_errors(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -54074,47 +52350,48 @@ var vehiclePositionImplementors = []string{"VehiclePosition"} func (ec *executionContext) _VehiclePosition(ctx context.Context, sel ast.SelectionSet, obj *model.VehiclePosition) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, vehiclePositionImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("VehiclePosition") case "vehicle": + out.Values[i] = ec._VehiclePosition_vehicle(ctx, field, obj) + case "position": + out.Values[i] = ec._VehiclePosition_position(ctx, field, obj) + case "current_stop_sequence": + out.Values[i] = ec._VehiclePosition_current_stop_sequence(ctx, field, obj) + case "stop_id": + out.Values[i] = ec._VehiclePosition_stop_id(ctx, field, obj) + case "current_status": + out.Values[i] = ec._VehiclePosition_current_status(ctx, field, obj) + case "timestamp": + out.Values[i] = ec._VehiclePosition_timestamp(ctx, field, obj) + case "congestion_level": + out.Values[i] = ec._VehiclePosition_congestion_level(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -54122,45 +52399,38 @@ var waypointImplementors = []string{"Waypoint"} func (ec *executionContext) _Waypoint(ctx context.Context, sel ast.SelectionSet, obj *model.Waypoint) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, waypointImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Waypoint") case "lon": + out.Values[i] = ec._Waypoint_lon(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "lat": + out.Values[i] = ec._Waypoint_lat(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "name": + out.Values[i] = ec._Waypoint_name(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -54168,55 +52438,52 @@ var __DirectiveImplementors = []string{"__Directive"} func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__Directive") case "name": + out.Values[i] = ec.___Directive_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "description": + out.Values[i] = ec.___Directive_description(ctx, field, obj) + case "locations": + out.Values[i] = ec.___Directive_locations(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "args": + out.Values[i] = ec.___Directive_args(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -54224,47 +52491,42 @@ var __EnumValueImplementors = []string{"__EnumValue"} func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__EnumValue") case "name": + out.Values[i] = ec.___EnumValue_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "description": + out.Values[i] = ec.___EnumValue_description(ctx, field, obj) + case "isDeprecated": + out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "deprecationReason": + out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -54272,57 +52534,56 @@ var __FieldImplementors = []string{"__Field"} func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__Field") case "name": + out.Values[i] = ec.___Field_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "description": + out.Values[i] = ec.___Field_description(ctx, field, obj) + case "args": + out.Values[i] = ec.___Field_args(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "type": + out.Values[i] = ec.___Field_type(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "isDeprecated": + out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "deprecationReason": + out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -54330,47 +52591,42 @@ var __InputValueImplementors = []string{"__InputValue"} func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__InputValue") case "name": + out.Values[i] = ec.___InputValue_name(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "description": + out.Values[i] = ec.___InputValue_description(ctx, field, obj) + case "type": + out.Values[i] = ec.___InputValue_type(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "defaultValue": + out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -54378,54 +52634,53 @@ var __SchemaImplementors = []string{"__Schema"} func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__Schema") case "description": + out.Values[i] = ec.___Schema_description(ctx, field, obj) + case "types": + out.Values[i] = ec.___Schema_types(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "queryType": + out.Values[i] = ec.___Schema_queryType(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "mutationType": + out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) + case "subscriptionType": + out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) + case "directives": + out.Values[i] = ec.___Schema_directives(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } @@ -54433,56 +52688,63 @@ var __TypeImplementors = []string{"__Type"} func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) + var invalids uint32 for i, field := range fields { switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("__Type") case "kind": + out.Values[i] = ec.___Type_kind(ctx, field, obj) + if out.Values[i] == graphql.Null { - out.Invalids++ + invalids++ } case "name": + out.Values[i] = ec.___Type_name(ctx, field, obj) + case "description": + out.Values[i] = ec.___Type_description(ctx, field, obj) + case "fields": + out.Values[i] = ec.___Type_fields(ctx, field, obj) + case "interfaces": + out.Values[i] = ec.___Type_interfaces(ctx, field, obj) + case "possibleTypes": + out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) + case "enumValues": + out.Values[i] = ec.___Type_enumValues(ctx, field, obj) + case "inputFields": + out.Values[i] = ec.___Type_inputFields(ctx, field, obj) + case "ofType": + out.Values[i] = ec.___Type_ofType(ctx, field, obj) + case "specifiedByURL": + out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) + default: panic("unknown field " + strconv.Quote(field.Name)) } } - out.Dispatch(ctx) - if out.Invalids > 0 { + out.Dispatch() + if invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out } diff --git a/model/models_gen.go b/model/models_gen.go index 6f205808..9c432900 100644 --- a/model/models_gen.go +++ b/model/models_gen.go @@ -12,46 +12,46 @@ import ( ) type AgencyFilter struct { - OnestopID *string `json:"onestop_id,omitempty"` - FeedVersionSha1 *string `json:"feed_version_sha1,omitempty"` - FeedOnestopID *string `json:"feed_onestop_id,omitempty"` - AgencyID *string `json:"agency_id,omitempty"` + OnestopID *string `json:"onestop_id"` + FeedVersionSha1 *string `json:"feed_version_sha1"` + FeedOnestopID *string `json:"feed_onestop_id"` + AgencyID *string `json:"agency_id"` // Search for records with this GTFS agency_name - AgencyName *string `json:"agency_name,omitempty"` - Bbox *BoundingBox `json:"bbox,omitempty"` - Within *tt.Polygon `json:"within,omitempty"` + AgencyName *string `json:"agency_name"` + Bbox *BoundingBox `json:"bbox"` + Within *tt.Polygon `json:"within"` // Search for agencies within a radius - Near *PointRadius `json:"near,omitempty"` + Near *PointRadius `json:"near"` // Full text search - Search *string `json:"search,omitempty"` + Search *string `json:"search"` // Search by city name (provided by Natural Earth) - CityName *string `json:"city_name,omitempty"` + CityName *string `json:"city_name"` // Search by country name (provided by Natural Earth) - Adm0Name *string `json:"adm0_name,omitempty"` + Adm0Name *string `json:"adm0_name"` // Search by state/province/division name (provided by Natural Earth) - Adm1Name *string `json:"adm1_name,omitempty"` + Adm1Name *string `json:"adm1_name"` // Search by country 2 letter ISO 3166 code (provided by Natural Earth) - Adm0Iso *string `json:"adm0_iso,omitempty"` + Adm0Iso *string `json:"adm0_iso"` // Search by state/province/division ISO 3166-2 code (provided by Natural Earth) - Adm1Iso *string `json:"adm1_iso,omitempty"` - License *LicenseFilter `json:"license,omitempty"` + Adm1Iso *string `json:"adm1_iso"` + License *LicenseFilter `json:"license"` } type AgencyPlaceFilter struct { - MinRank *float64 `json:"min_rank,omitempty"` + MinRank *float64 `json:"min_rank"` } // [Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed. type Alert struct { - ActivePeriod []*RTTimeRange `json:"active_period,omitempty"` - Cause *string `json:"cause,omitempty"` - Effect *string `json:"effect,omitempty"` + ActivePeriod []*RTTimeRange `json:"active_period"` + Cause *string `json:"cause"` + Effect *string `json:"effect"` HeaderText []*RTTranslation `json:"header_text"` DescriptionText []*RTTranslation `json:"description_text"` - TtsHeaderText []*RTTranslation `json:"tts_header_text,omitempty"` - TtsDescriptionText []*RTTranslation `json:"tts_description_text,omitempty"` - URL []*RTTranslation `json:"url,omitempty"` - SeverityLevel *string `json:"severity_level,omitempty"` + TtsHeaderText []*RTTranslation `json:"tts_header_text"` + TtsDescriptionText []*RTTranslation `json:"tts_description_text"` + URL []*RTTranslation `json:"url"` + SeverityLevel *string `json:"severity_level"` } type BoundingBox struct { @@ -62,28 +62,28 @@ type BoundingBox struct { } type CalendarDateFilter struct { - Date *tt.Date `json:"date,omitempty"` - ExceptionType *int `json:"exception_type,omitempty"` + Date *tt.Date `json:"date"` + ExceptionType *int `json:"exception_type"` } type DirectionRequest struct { To *WaypointInput `json:"to"` From *WaypointInput `json:"from"` Mode StepMode `json:"mode"` - DepartAt *time.Time `json:"depart_at,omitempty"` + DepartAt *time.Time `json:"depart_at"` } type Directions struct { Success bool `json:"success"` - Exception *string `json:"exception,omitempty"` - DataSource *string `json:"data_source,omitempty"` - Origin *Waypoint `json:"origin,omitempty"` - Destination *Waypoint `json:"destination,omitempty"` - Duration *Duration `json:"duration,omitempty"` - Distance *Distance `json:"distance,omitempty"` - StartTime *time.Time `json:"start_time,omitempty"` - EndTime *time.Time `json:"end_time,omitempty"` - Itineraries []*Itinerary `json:"itineraries,omitempty"` + Exception *string `json:"exception"` + DataSource *string `json:"data_source"` + Origin *Waypoint `json:"origin"` + Destination *Waypoint `json:"destination"` + Duration *Duration `json:"duration"` + Distance *Distance `json:"distance"` + StartTime *time.Time `json:"start_time"` + EndTime *time.Time `json:"end_time"` + Itineraries []*Itinerary `json:"itineraries"` } type Distance struct { @@ -97,34 +97,34 @@ type Duration struct { } type FeedFetchFilter struct { - Success *bool `json:"success,omitempty"` + Success *bool `json:"success"` } type FeedFilter struct { // Search for feed with a specific Onestop ID - OnestopID *string `json:"onestop_id,omitempty"` + OnestopID *string `json:"onestop_id"` // Search for feeds of certain data types - Spec []FeedSpecTypes `json:"spec,omitempty"` + Spec []FeedSpecTypes `json:"spec"` // Search for feeds with or without a fetch error - FetchError *bool `json:"fetch_error,omitempty"` + FetchError *bool `json:"fetch_error"` // Search for feeds by their import status - ImportStatus *ImportStatus `json:"import_status,omitempty"` + ImportStatus *ImportStatus `json:"import_status"` // Full text search - Search *string `json:"search,omitempty"` + Search *string `json:"search"` // Search for feeds with a tag - Tags *tt.Tags `json:"tags,omitempty"` + Tags *tt.Tags `json:"tags"` // Search for feeds by their source URLs - SourceURL *FeedSourceURL `json:"source_url,omitempty"` - License *LicenseFilter `json:"license,omitempty"` - Bbox *BoundingBox `json:"bbox,omitempty"` - Within *tt.Polygon `json:"within,omitempty"` - Near *PointRadius `json:"near,omitempty"` + SourceURL *FeedSourceURL `json:"source_url"` + License *LicenseFilter `json:"license"` + Bbox *BoundingBox `json:"bbox"` + Within *tt.Polygon `json:"within"` + Near *PointRadius `json:"near"` } type FeedSourceURL struct { - URL *string `json:"url,omitempty"` - Type *FeedSourceURLTypes `json:"type,omitempty"` - CaseSensitive *bool `json:"case_sensitive,omitempty"` + URL *string `json:"url"` + Type *FeedSourceURLTypes `json:"type"` + CaseSensitive *bool `json:"case_sensitive"` } type FeedVersionDeleteResult struct { @@ -132,25 +132,25 @@ type FeedVersionDeleteResult struct { } type FeedVersionFilter struct { - ImportStatus *ImportStatus `json:"import_status,omitempty"` - FeedOnestopID *string `json:"feed_onestop_id,omitempty"` - Sha1 *string `json:"sha1,omitempty"` - File *string `json:"file,omitempty"` - FeedIds []int `json:"feed_ids,omitempty"` - Covers *ServiceCoversFilter `json:"covers,omitempty"` - Bbox *BoundingBox `json:"bbox,omitempty"` - Within *tt.Polygon `json:"within,omitempty"` - Near *PointRadius `json:"near,omitempty"` + ImportStatus *ImportStatus `json:"import_status"` + FeedOnestopID *string `json:"feed_onestop_id"` + Sha1 *string `json:"sha1"` + File *string `json:"file"` + FeedIds []int `json:"feed_ids"` + Covers *ServiceCoversFilter `json:"covers"` + Bbox *BoundingBox `json:"bbox"` + Within *tt.Polygon `json:"within"` + Near *PointRadius `json:"near"` } type FeedVersionServiceLevelFilter struct { - StartDate *tt.Date `json:"start_date,omitempty"` - EndDate *tt.Date `json:"end_date,omitempty"` + StartDate *tt.Date `json:"start_date"` + EndDate *tt.Date `json:"end_date"` } type FeedVersionSetInput struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` + Name *string `json:"name"` + Description *string `json:"description"` } type FeedVersionUnimportResult struct { @@ -158,11 +158,11 @@ type FeedVersionUnimportResult struct { } type GbfsBikeRequest struct { - Near *PointRadius `json:"near,omitempty"` + Near *PointRadius `json:"near"` } type GbfsDockRequest struct { - Near *PointRadius `json:"near,omitempty"` + Near *PointRadius `json:"near"` } type Itinerary struct { @@ -172,7 +172,7 @@ type Itinerary struct { EndTime time.Time `json:"end_time"` From *Waypoint `json:"from"` To *Waypoint `json:"to"` - Legs []*Leg `json:"legs,omitempty"` + Legs []*Leg `json:"legs"` } type Leg struct { @@ -180,54 +180,54 @@ type Leg struct { Distance *Distance `json:"distance"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` - From *Waypoint `json:"from,omitempty"` - To *Waypoint `json:"to,omitempty"` - Steps []*Step `json:"steps,omitempty"` + From *Waypoint `json:"from"` + To *Waypoint `json:"to"` + Steps []*Step `json:"steps"` Geometry tt.LineString `json:"geometry"` } type LicenseFilter struct { - ShareAlikeOptional *LicenseValue `json:"share_alike_optional,omitempty"` - CreateDerivedProduct *LicenseValue `json:"create_derived_product,omitempty"` - CommercialUseAllowed *LicenseValue `json:"commercial_use_allowed,omitempty"` - UseWithoutAttribution *LicenseValue `json:"use_without_attribution,omitempty"` - RedistributionAllowed *LicenseValue `json:"redistribution_allowed,omitempty"` + ShareAlikeOptional *LicenseValue `json:"share_alike_optional"` + CreateDerivedProduct *LicenseValue `json:"create_derived_product"` + CommercialUseAllowed *LicenseValue `json:"commercial_use_allowed"` + UseWithoutAttribution *LicenseValue `json:"use_without_attribution"` + RedistributionAllowed *LicenseValue `json:"redistribution_allowed"` } type Me struct { ID string `json:"id"` - Name *string `json:"name,omitempty"` - Email *string `json:"email,omitempty"` - ExternalData map[string]interface{} `json:"external_data,omitempty"` + Name *string `json:"name"` + Email *string `json:"email"` + ExternalData map[string]interface{} `json:"external_data"` } type OperatorFilter struct { - Merged *bool `json:"merged,omitempty"` - OnestopID *string `json:"onestop_id,omitempty"` - FeedOnestopID *string `json:"feed_onestop_id,omitempty"` - AgencyID *string `json:"agency_id,omitempty"` - Search *string `json:"search,omitempty"` - Tags *tt.Tags `json:"tags,omitempty"` - CityName *string `json:"city_name,omitempty"` - Adm0Name *string `json:"adm0_name,omitempty"` - Adm1Name *string `json:"adm1_name,omitempty"` - Adm0Iso *string `json:"adm0_iso,omitempty"` - Adm1Iso *string `json:"adm1_iso,omitempty"` - License *LicenseFilter `json:"license,omitempty"` - Bbox *BoundingBox `json:"bbox,omitempty"` - Within *tt.Polygon `json:"within,omitempty"` - Near *PointRadius `json:"near,omitempty"` + Merged *bool `json:"merged"` + OnestopID *string `json:"onestop_id"` + FeedOnestopID *string `json:"feed_onestop_id"` + AgencyID *string `json:"agency_id"` + Search *string `json:"search"` + Tags *tt.Tags `json:"tags"` + CityName *string `json:"city_name"` + Adm0Name *string `json:"adm0_name"` + Adm1Name *string `json:"adm1_name"` + Adm0Iso *string `json:"adm0_iso"` + Adm1Iso *string `json:"adm1_iso"` + License *LicenseFilter `json:"license"` + Bbox *BoundingBox `json:"bbox"` + Within *tt.Polygon `json:"within"` + Near *PointRadius `json:"near"` } type PathwayFilter struct { - PathwayMode *int `json:"pathway_mode,omitempty"` + PathwayMode *int `json:"pathway_mode"` } type PlaceFilter struct { - MinRank *float64 `json:"min_rank,omitempty"` - Adm0Name *string `json:"adm0_name,omitempty"` - Adm1Name *string `json:"adm1_name,omitempty"` - CityName *string `json:"city_name,omitempty"` + MinRank *float64 `json:"min_rank"` + Adm0Name *string `json:"adm0_name"` + Adm1Name *string `json:"adm1_name"` + CityName *string `json:"city_name"` } type PointRadius struct { @@ -238,56 +238,56 @@ type PointRadius struct { // See https://gtfs.org/reference/realtime/v2/#message-timerange type RTTimeRange struct { - Start *int `json:"start,omitempty"` - End *int `json:"end,omitempty"` + Start *int `json:"start"` + End *int `json:"end"` } // See https://gtfs.org/reference/realtime/v2/#message-translatedstring type RTTranslation struct { Text string `json:"text"` - Language *string `json:"language,omitempty"` + Language *string `json:"language"` } // See https://gtfs.org/reference/realtime/v2/#message-tripdescriptor type RTTripDescriptor struct { - TripID *string `json:"trip_id,omitempty"` - RouteID *string `json:"route_id,omitempty"` - DirectionID *int `json:"direction_id,omitempty"` - StartTime *tt.WideTime `json:"start_time,omitempty"` - StartDate *tt.Date `json:"start_date,omitempty"` - ScheduleRelationship *string `json:"schedule_relationship,omitempty"` + TripID *string `json:"trip_id"` + RouteID *string `json:"route_id"` + DirectionID *int `json:"direction_id"` + StartTime *tt.WideTime `json:"start_time"` + StartDate *tt.Date `json:"start_date"` + ScheduleRelationship *string `json:"schedule_relationship"` } // See https://gtfs.org/reference/realtime/v2/#message-vehicledescriptor type RTVehicleDescriptor struct { - ID *string `json:"id,omitempty"` - Label *string `json:"label,omitempty"` - LicensePlate *string `json:"license_plate,omitempty"` + ID *string `json:"id"` + Label *string `json:"label"` + LicensePlate *string `json:"license_plate"` } type RouteFilter struct { - OnestopID *string `json:"onestop_id,omitempty"` - OnestopIds []string `json:"onestop_ids,omitempty"` - AllowPreviousOnestopIds *bool `json:"allow_previous_onestop_ids,omitempty"` - FeedVersionSha1 *string `json:"feed_version_sha1,omitempty"` - FeedOnestopID *string `json:"feed_onestop_id,omitempty"` - RouteID *string `json:"route_id,omitempty"` - RouteType *int `json:"route_type,omitempty"` - Serviced *bool `json:"serviced,omitempty"` - Bbox *BoundingBox `json:"bbox,omitempty"` - Within *tt.Polygon `json:"within,omitempty"` - Near *PointRadius `json:"near,omitempty"` - Search *string `json:"search,omitempty"` - OperatorOnestopID *string `json:"operator_onestop_id,omitempty"` - License *LicenseFilter `json:"license,omitempty"` - AgencyIds []int `json:"agency_ids,omitempty"` + OnestopID *string `json:"onestop_id"` + OnestopIds []string `json:"onestop_ids"` + AllowPreviousOnestopIds *bool `json:"allow_previous_onestop_ids"` + FeedVersionSha1 *string `json:"feed_version_sha1"` + FeedOnestopID *string `json:"feed_onestop_id"` + RouteID *string `json:"route_id"` + RouteType *int `json:"route_type"` + Serviced *bool `json:"serviced"` + Bbox *BoundingBox `json:"bbox"` + Within *tt.Polygon `json:"within"` + Near *PointRadius `json:"near"` + Search *string `json:"search"` + OperatorOnestopID *string `json:"operator_onestop_id"` + License *LicenseFilter `json:"license"` + AgencyIds []int `json:"agency_ids"` } type ServiceCoversFilter struct { - StartDate *tt.Date `json:"start_date,omitempty"` - EndDate *tt.Date `json:"end_date,omitempty"` - FetchedAfter *time.Time `json:"fetched_after,omitempty"` - FetchedBefore *time.Time `json:"fetched_before,omitempty"` + StartDate *tt.Date `json:"start_date"` + EndDate *tt.Date `json:"end_date"` + FetchedAfter *time.Time `json:"fetched_after"` + FetchedBefore *time.Time `json:"fetched_before"` } type Step struct { @@ -295,47 +295,47 @@ type Step struct { Distance *Distance `json:"distance"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` - To *Waypoint `json:"to,omitempty"` + To *Waypoint `json:"to"` Mode StepMode `json:"mode"` Instruction string `json:"instruction"` GeometryOffset int `json:"geometry_offset"` } type StopFilter struct { - OnestopID *string `json:"onestop_id,omitempty"` - OnestopIds []string `json:"onestop_ids,omitempty"` - AllowPreviousOnestopIds *bool `json:"allow_previous_onestop_ids,omitempty"` - FeedVersionSha1 *string `json:"feed_version_sha1,omitempty"` - FeedOnestopID *string `json:"feed_onestop_id,omitempty"` - StopID *string `json:"stop_id,omitempty"` - StopCode *string `json:"stop_code,omitempty"` - LocationType *int `json:"location_type,omitempty"` - Serviced *bool `json:"serviced,omitempty"` - Bbox *BoundingBox `json:"bbox,omitempty"` - Within *tt.Polygon `json:"within,omitempty"` - Near *PointRadius `json:"near,omitempty"` - Search *string `json:"search,omitempty"` - License *LicenseFilter `json:"license,omitempty"` - ServedByOnestopIds []string `json:"served_by_onestop_ids,omitempty"` - ServedByRouteType *int `json:"served_by_route_type,omitempty"` - AgencyIds []int `json:"agency_ids,omitempty"` + OnestopID *string `json:"onestop_id"` + OnestopIds []string `json:"onestop_ids"` + AllowPreviousOnestopIds *bool `json:"allow_previous_onestop_ids"` + FeedVersionSha1 *string `json:"feed_version_sha1"` + FeedOnestopID *string `json:"feed_onestop_id"` + StopID *string `json:"stop_id"` + StopCode *string `json:"stop_code"` + LocationType *int `json:"location_type"` + Serviced *bool `json:"serviced"` + Bbox *BoundingBox `json:"bbox"` + Within *tt.Polygon `json:"within"` + Near *PointRadius `json:"near"` + Search *string `json:"search"` + License *LicenseFilter `json:"license"` + ServedByOnestopIds []string `json:"served_by_onestop_ids"` + ServedByRouteType *int `json:"served_by_route_type"` + AgencyIds []int `json:"agency_ids"` } type StopObservation struct { - ScheduleRelationship *string `json:"schedule_relationship,omitempty"` - TripStartDate *tt.Date `json:"trip_start_date,omitempty"` - TripStartTime *tt.WideTime `json:"trip_start_time,omitempty"` - FromStopID *string `json:"from_stop_id,omitempty"` - ToStopID *string `json:"to_stop_id,omitempty"` - AgencyID *string `json:"agency_id,omitempty"` - RouteID *string `json:"route_id,omitempty"` - TripID *string `json:"trip_id,omitempty"` - StopSequence *int `json:"stop_sequence,omitempty"` - Source *string `json:"source,omitempty"` - ScheduledArrivalTime *tt.WideTime `json:"scheduled_arrival_time,omitempty"` - ScheduledDepartureTime *tt.WideTime `json:"scheduled_departure_time,omitempty"` - ObservedArrivalTime *tt.WideTime `json:"observed_arrival_time,omitempty"` - ObservedDepartureTime *tt.WideTime `json:"observed_departure_time,omitempty"` + ScheduleRelationship *string `json:"schedule_relationship"` + TripStartDate *tt.Date `json:"trip_start_date"` + TripStartTime *tt.WideTime `json:"trip_start_time"` + FromStopID *string `json:"from_stop_id"` + ToStopID *string `json:"to_stop_id"` + AgencyID *string `json:"agency_id"` + RouteID *string `json:"route_id"` + TripID *string `json:"trip_id"` + StopSequence *int `json:"stop_sequence"` + Source *string `json:"source"` + ScheduledArrivalTime *tt.WideTime `json:"scheduled_arrival_time"` + ScheduledDepartureTime *tt.WideTime `json:"scheduled_departure_time"` + ObservedArrivalTime *tt.WideTime `json:"observed_arrival_time"` + ObservedDepartureTime *tt.WideTime `json:"observed_departure_time"` } type StopObservationFilter struct { @@ -345,63 +345,63 @@ type StopObservationFilter struct { } type StopPlace struct { - Adm1Name *string `json:"adm1_name,omitempty"` - Adm0Name *string `json:"adm0_name,omitempty"` - Adm0Iso *string `json:"adm0_iso,omitempty"` - Adm1Iso *string `json:"adm1_iso,omitempty"` + Adm1Name *string `json:"adm1_name"` + Adm0Name *string `json:"adm0_name"` + Adm0Iso *string `json:"adm0_iso"` + Adm1Iso *string `json:"adm1_iso"` } type StopTimeFilter struct { - ServiceDate *tt.Date `json:"service_date,omitempty"` - UseServiceWindow *bool `json:"use_service_window,omitempty"` - StartTime *int `json:"start_time,omitempty"` - EndTime *int `json:"end_time,omitempty"` - Start *tt.WideTime `json:"start,omitempty"` - End *tt.WideTime `json:"end,omitempty"` - Next *int `json:"next,omitempty"` - RouteOnestopIds []string `json:"route_onestop_ids,omitempty"` - AllowPreviousRouteOnestopIds *bool `json:"allow_previous_route_onestop_ids,omitempty"` - ExcludeFirst *bool `json:"exclude_first,omitempty"` - ExcludeLast *bool `json:"exclude_last,omitempty"` + ServiceDate *tt.Date `json:"service_date"` + UseServiceWindow *bool `json:"use_service_window"` + StartTime *int `json:"start_time"` + EndTime *int `json:"end_time"` + Start *tt.WideTime `json:"start"` + End *tt.WideTime `json:"end"` + Next *int `json:"next"` + RouteOnestopIds []string `json:"route_onestop_ids"` + AllowPreviousRouteOnestopIds *bool `json:"allow_previous_route_onestop_ids"` + ExcludeFirst *bool `json:"exclude_first"` + ExcludeLast *bool `json:"exclude_last"` } type TripFilter struct { - ServiceDate *tt.Date `json:"service_date,omitempty"` - TripID *string `json:"trip_id,omitempty"` - StopPatternID *int `json:"stop_pattern_id,omitempty"` - License *LicenseFilter `json:"license,omitempty"` - RouteIds []int `json:"route_ids,omitempty"` - RouteOnestopIds []string `json:"route_onestop_ids,omitempty"` - FeedVersionSha1 *string `json:"feed_version_sha1,omitempty"` - FeedOnestopID *string `json:"feed_onestop_id,omitempty"` + ServiceDate *tt.Date `json:"service_date"` + TripID *string `json:"trip_id"` + StopPatternID *int `json:"stop_pattern_id"` + License *LicenseFilter `json:"license"` + RouteIds []int `json:"route_ids"` + RouteOnestopIds []string `json:"route_onestop_ids"` + FeedVersionSha1 *string `json:"feed_version_sha1"` + FeedOnestopID *string `json:"feed_onestop_id"` } type TripStopTimeFilter struct { - Start *tt.WideTime `json:"start,omitempty"` - End *tt.WideTime `json:"end,omitempty"` + Start *tt.WideTime `json:"start"` + End *tt.WideTime `json:"end"` } // [Vehicle Position](https://gtfs.org/reference/realtime/v2/#message-vehicleposition) message provided by a source GTFS Realtime feed. type VehiclePosition struct { - Vehicle *RTVehicleDescriptor `json:"vehicle,omitempty"` - Position *tt.Point `json:"position,omitempty"` - CurrentStopSequence *int `json:"current_stop_sequence,omitempty"` - StopID *Stop `json:"stop_id,omitempty"` - CurrentStatus *string `json:"current_status,omitempty"` - Timestamp *time.Time `json:"timestamp,omitempty"` - CongestionLevel *string `json:"congestion_level,omitempty"` + Vehicle *RTVehicleDescriptor `json:"vehicle"` + Position *tt.Point `json:"position"` + CurrentStopSequence *int `json:"current_stop_sequence"` + StopID *Stop `json:"stop_id"` + CurrentStatus *string `json:"current_status"` + Timestamp *time.Time `json:"timestamp"` + CongestionLevel *string `json:"congestion_level"` } type Waypoint struct { Lon float64 `json:"lon"` Lat float64 `json:"lat"` - Name *string `json:"name,omitempty"` + Name *string `json:"name"` } type WaypointInput struct { Lon float64 `json:"lon"` Lat float64 `json:"lat"` - Name *string `json:"name,omitempty"` + Name *string `json:"name"` } type DistanceUnit string From bb216f87152567ab093911e4e4ef9b0cf5deece0 Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Fri, 20 Oct 2023 17:18:37 -0700 Subject: [PATCH 6/6] Tests --- server/gql/feed_version_resolver_test.go | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/server/gql/feed_version_resolver_test.go b/server/gql/feed_version_resolver_test.go index deebd38e..e3fe682f 100644 --- a/server/gql/feed_version_resolver_test.go +++ b/server/gql/feed_version_resolver_test.go @@ -2,6 +2,9 @@ package gql import ( "testing" + + "github.com/stretchr/testify/assert" + "github.com/tidwall/gjson" ) func TestFeedVersionResolver(t *testing.T) { @@ -45,6 +48,29 @@ func TestFeedVersionResolver(t *testing.T) { selector: "feed_versions.0.files.#.name", selectExpect: []string{"agency.txt", "calendar.txt", "calendar_attributes.txt", "calendar_dates.txt", "directions.txt", "fare_attributes.txt", "fare_rules.txt", "farezone_attributes.txt", "frequencies.txt", "realtime_routes.txt", "routes.txt", "shapes.txt", "stop_attributes.txt", "stop_times.txt", "stops.txt", "transfers.txt", "trips.txt"}, }, + { + name: "file details", + query: `query($feed_version_sha1: String!) { feed_versions(where:{sha1:$feed_version_sha1}) {files {name rows sha1 header csv_like size values_count values_unique}} }`, + vars: vars, + selector: "feed_versions.0.files.#.name", + f: func(t *testing.T, jj string) { + + for _, fvfile := range gjson.Get(jj, "feed_versions.0.files").Array() { + if fvfile.Get("name").String() != "trips.txt" { + continue + } + assert.Equal(t, fvfile.Get("rows").Int(), int64(185)) + assert.Equal(t, fvfile.Get("size").Int(), int64(14648)) + assert.Equal(t, fvfile.Get("sha1").String(), "1ad77955e41e33cb1fceb694df27ced80e0ecbd3") + assert.Equal(t, fvfile.Get("header").String(), "route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id,wheelchair_accessible,bikes_allowed,trip_short_name") + assert.Equal(t, fvfile.Get("values_unique.service_id").Int(), int64(27)) + assert.Equal(t, fvfile.Get("values_unique.wheelchair_accessible").Int(), int64(2)) + assert.Equal(t, fvfile.Get("values_count.service_id").Int(), int64(185)) + assert.Equal(t, fvfile.Get("values_count.trip_id").Int(), int64(185)) + } + + }, + }, { name: "agencies", query: `query($feed_version_sha1: String!) { feed_versions(where:{sha1:$feed_version_sha1}) {agencies {agency_id}} }`,