From 96aa34516aae35a71091803208803f7b37781508 Mon Sep 17 00:00:00 2001 From: caichi <54824604+caichi-t@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:51:03 +0900 Subject: [PATCH 1/3] fix(web): change the default number of items (#1060) change the default number of items --- .../components/organisms/Project/Content/ContentList/hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/organisms/Project/Content/ContentList/hooks.ts b/web/src/components/organisms/Project/Content/ContentList/hooks.ts index e419251b8d..1bab3d6f21 100644 --- a/web/src/components/organisms/Project/Content/ContentList/hooks.ts +++ b/web/src/components/organisms/Project/Content/ContentList/hooks.ts @@ -72,7 +72,7 @@ export default () => { const { modelId } = useParams(); const [searchTerm, setSearchTerm] = useState(""); const [page, setPage] = useState(1); - const [pageSize, setPageSize] = useState(10); + const [pageSize, setPageSize] = useState(100); const [currentView, setCurrentView] = useState({ columns: [], }); From 257de4b7e4ebb17a43e9eae1df0516b181c59599 Mon Sep 17 00:00:00 2001 From: mimoham24 <69579255+mimoham24@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:50:25 +0900 Subject: [PATCH 2/3] chore(server): referenced items resolver (#1058) * ref items resolver * resolve notes revert worker sum changes --- server/e2e/gql_item_test.go | 12 + server/go.mod | 3 +- server/go.sum | 41 +- server/gqlgen.yml | 2 + server/internal/adapter/gql/generated.go | 841 +++++------------- .../adapter/gql/gqlmodel/models_gen.go | 7 + server/internal/adapter/gql/resolver_item.go | 32 +- server/internal/usecase/interactor/item.go | 38 +- server/schemas/item.graphql | 1 + 9 files changed, 296 insertions(+), 681 deletions(-) diff --git a/server/e2e/gql_item_test.go b/server/e2e/gql_item_test.go index ed210cabf5..578976a1c0 100644 --- a/server/e2e/gql_item_test.go +++ b/server/e2e/gql_item_test.go @@ -107,6 +107,16 @@ func getItem(e *httpexpect.Expect, iID string) (string, *httpexpect.Value) { } __typename } + referencedItems { + id + fields { + schemaFieldId + type + value + __typename + } + __typename + } thread { ...threadFragment __typename @@ -480,6 +490,8 @@ func TestTwoWayReferenceFields(t *testing.T) { _, res := getItem(e, m1i1id) res.Path("$.data.node.fields[-1:].value").Array().IsEqual([]string{m2i1id}) + refs := res.Path("$.data.node.referencedItems[:].id").Raw().([]any) + assert.Equal(t, []any{m2i1id}, refs) m2i1ver, res := getItem(e, m2i1id) res.Path("$.data.node.fields[-1:].value").Array().IsEqual([]string{m1i1id}) diff --git a/server/go.mod b/server/go.mod index 3cb283dd02..2d47376e79 100644 --- a/server/go.mod +++ b/server/go.mod @@ -125,7 +125,6 @@ require ( github.com/sendgrid/rest v2.6.9+incompatible // indirect github.com/sergi/go-diff v1.3.1 // indirect github.com/sosodev/duration v1.2.0 // indirect - github.com/stretchr/objx v0.5.1 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/urfave/cli/v2 v2.27.1 // indirect @@ -168,7 +167,7 @@ require ( google.golang.org/grpc v1.61.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/fsnotify.v1 v1.4.7 // indirect - gopkg.in/square/go-jose.v2 v2.6.0 // indirect + gopkg.in/go-jose/go-jose.v2 v2.6.2 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/server/go.sum b/server/go.sum index 917058b852..3df69f23d6 100644 --- a/server/go.sum +++ b/server/go.sum @@ -19,22 +19,18 @@ cloud.google.com/go/pubsub v1.36.1 h1:dfEPuGCHGbWUhaMCTHUFjfroILEkx55iUmKBZTP5f+ cloud.google.com/go/pubsub v1.36.1/go.mod h1:iYjCa9EzWOoBiTdd4ps7QoMtMln5NwaZQpK1hbRfBDE= cloud.google.com/go/storage v1.37.0 h1:WI8CsaFO8Q9KjPVtsZ5Cmi0dXV25zMoX0FklT7c3Jm4= cloud.google.com/go/storage v1.37.0/go.mod h1:i34TiT2IhiNDmcj65PqwCjcoUX7Z5pLzS8DEmoiFq1k= -cloud.google.com/go/trace v1.10.4 h1:2qOAuAzNezwW3QN+t41BtkDJOG42HywL73q8x/f6fnM= -cloud.google.com/go/trace v1.10.4/go.mod h1:Nso99EDIK8Mj5/zmB+iGr9dosS/bzWCJ8wGmE6TXNWY= +cloud.google.com/go/trace v1.10.5 h1:0pr4lIKJ5XZFYD9GtxXEWr0KkVeigc3wlGpZco0X1oA= cloud.google.com/go/trace v1.10.5/go.mod h1:9hjCV1nGBCtXbAE4YK7OqJ8pmPYSxPA0I67JwRd5s3M= github.com/99designs/gqlgen v0.17.43 h1:I4SYg6ahjowErAQcHFVKy5EcWuwJ3+Xw9z2fLpuFCPo= github.com/99designs/gqlgen v0.17.43/go.mod h1:lO0Zjy8MkZgBdv4T1U91x09r0e0WFOdhVUutlQs1Rsc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.0.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.20.0 h1:uY/4lpbbFG73TgzmJoB7XMyFIheII95hlfH62uC+oS0= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.20.0/go.mod h1:qaUEgkhkSlCNIu9/XD4y19vnbwKskfz2ep6Utf2A57c= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.21.0 h1:OEgjQy1rH4Fbn5IpuI9d0uhLl+j6DkDvh9Q2Ucd6GK8= github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.21.0/go.mod h1:EUfJ8lb3pjD8VasPPwqIvG2XVCE6DOT8tY5tcwbWA+A= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.44.0 h1:ew7SfeajMJ3I4iXA1LERYY62fGCKO4TjVPw5QTPt47k= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.44.0/go.mod h1:OZ0OdcedAJJyQbJsfO97KMimDYkuOkzzO4AQPgV5QRI= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.44.0 h1:GjWPDY9PUlNWwTI95L/lktUp35BLtzBoBElH314eafM= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.44.0/go.mod h1:qkFPtMouQjW5ugdHIOthiTbweVHUTqbS0Qsu55KqXks= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.45.0 h1:/BF7rO6PYcmFoyJrq6HA3LqQpFSQei9aNuO1fvV3OqU= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.45.0/go.mod h1:WntFIMzxcU+PMBuekFc34UOsEZ9sP+vsnBYTyaNBkOs= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.45.0 h1:o/Nf55GfyLwGDaHkVAkRGgBXeExce73L6N9w2PZTB3k= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.45.0/go.mod h1:qkFPtMouQjW5ugdHIOthiTbweVHUTqbS0Qsu55KqXks= github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= @@ -59,12 +55,10 @@ github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7D github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= 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/auth0/go-jwt-middleware/v2 v2.1.0 h1:VU4LsC3aFPoqXVyEp8EixU6FNM+ZNIjECszRTvtGQI8= -github.com/auth0/go-jwt-middleware/v2 v2.1.0/go.mod h1:CpzcJoleayAACpv+vt0AP8/aYn5TDngsqzLapV1nM4c= +github.com/auth0/go-jwt-middleware/v2 v2.2.1 h1:pqxEIwlCztD0T9ZygGfOrw4NK/F9iotnCnPJVADKbkE= github.com/auth0/go-jwt-middleware/v2 v2.2.1/go.mod h1:CSi0tuu0QrALbWdiQZwqFL8SbBhj4e2MJzkvNfjY0Us= github.com/avast/retry-go/v4 v4.5.1 h1:AxIx0HGi4VZ3I02jr78j5lZ3M6x1E0Ivxa6b0pUUh7o= github.com/avast/retry-go/v4 v4.5.1/go.mod h1:/sipNsvNB3RRuT5iNcb6h73nw3IBmXJ/H3XrCQYSOpc= -github.com/aws/aws-sdk-go-v2 v1.21.2/go.mod h1:ErQhvNuEMhJjweavOYhxVkn2RUx7kQXVATHrjKtxIpM= github.com/aws/aws-sdk-go-v2 v1.24.1 h1:xAojnj+ktS95YZlDf0zxWBkbFtymPeDP+rvUQIH3uAU= github.com/aws/aws-sdk-go-v2 v1.24.1/go.mod h1:LNh45Br1YAkEKaAqvmE1m8FUx6a5b/V0oAKV7of29b4= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.4 h1:OCs21ST2LrepDfD3lwlQiOqIGp6JiEUqG84GzTDoyJs= @@ -75,10 +69,8 @@ github.com/aws/aws-sdk-go-v2/credentials v1.16.16 h1:8q6Rliyv0aUFAVtzaldUEcS+T5g github.com/aws/aws-sdk-go-v2/credentials v1.16.16/go.mod h1:UHVZrdUsv63hPXFo1H7c5fEneoVo9UXiz36QG1GEPi0= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11 h1:c5I5iH+DZcH3xOIMlz3/tCKJDaHFwYEmxvlh2fAcFo8= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11/go.mod h1:cRrYDYAMUohBJUtUnOhydaMHtiK/1NZ0Otc9lIb6O0Y= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.43/go.mod h1:auo+PiyLl0n1l8A0e8RIeR8tOzYPfZZH/JNlrJ8igTQ= github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10 h1:vF+Zgd9s+H4vOXd5BMaPWykta2a6Ih0AKLq/X6NYKn4= github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10/go.mod h1:6BkRjejp/GR4411UGqkX8+wFMbFbqsUIimfK4XjOKR4= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.37/go.mod h1:Qe+2KtKml+FEsQF/DHmDV+xjtche/hwoF75EG4UlHW8= github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10 h1:nYPe006ktcqUji8S2mqXf9c/7NdiKriOwMvWQHgYztw= github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10/go.mod h1:6UV4SZkVvmODfXKql4LCbaZUpF7HO2BX38FgBf9ZOLw= github.com/aws/aws-sdk-go-v2/internal/ini v1.7.3 h1:n3GDfwqF2tzEkXlv5cuy4iy7LpKDtqDMcNLfZDu9rls= @@ -95,8 +87,7 @@ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.10 h1:KOxnQeWy5sXyS github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.10/go.mod h1:jMx5INQFYFYB3lQD9W0D8Ohgq6Wnl7NYOJ2TQndbulI= github.com/aws/aws-sdk-go-v2/service/s3 v1.48.1 h1:5XNlsBsEvBZBMO6p82y+sqpWg8j5aBCe+5C2GBFgqBQ= github.com/aws/aws-sdk-go-v2/service/s3 v1.48.1/go.mod h1:4qXHrG1Ne3VGIMZPCB8OjH/pLFO94sKABIusjh0KWPU= -github.com/aws/aws-sdk-go-v2/service/ses v1.16.10 h1:srzA9lXdPokjWBmzedCLwrJmOn6Qta8NQQfr3xUXixI= -github.com/aws/aws-sdk-go-v2/service/ses v1.16.10/go.mod h1:PepBwePg7YXSUGK8aIYM1iIckOKBV4F5pEYG1Gh/+w8= +github.com/aws/aws-sdk-go-v2/service/ses v1.19.6 h1:2WWiQwUVU39kD8EGYw/sTGU+REd5Q+BFarTccU00Asc= github.com/aws/aws-sdk-go-v2/service/ses v1.19.6/go.mod h1:huHEdSNRqZOquzLTTjbBoEpoz7snBRwu2fe1dvvhZwE= github.com/aws/aws-sdk-go-v2/service/sns v1.26.7 h1:DylmW2c1Z7qGxN3Y02k+voPbtM1mh7Rp+gV+7maG5io= github.com/aws/aws-sdk-go-v2/service/sns v1.26.7/go.mod h1:mLFiISZfiZAqZEfPWUsZBK8gD4dYCKuKAfapV+KrIVQ= @@ -106,7 +97,6 @@ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7 h1:QPMJf+Jw8E1l7zqhZmMlFw6w github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7/go.mod h1:ykf3COxYI0UJmxcfcxcVuz7b6uADi1FkiUz6Eb7AgM8= github.com/aws/aws-sdk-go-v2/service/sts v1.26.7 h1:NzO4Vrau795RkUdSHKEwiR01FaGzGOH1EETJ+5QHnm0= github.com/aws/aws-sdk-go-v2/service/sts v1.26.7/go.mod h1:6h2YuIoxaMSCFf5fi1EgZAwdfkGMgDY+DVfa61uLe4U= -github.com/aws/smithy-go v1.15.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/aws/smithy-go v1.19.0 h1:KWFKQV80DpP3vJrrA9sVAHQ5gc2z8i4EzrLhLlWXcBM= github.com/aws/smithy-go v1.19.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= @@ -167,8 +157,7 @@ github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= -github.com/goccy/go-yaml v1.11.2 h1:joq77SxuyIs9zzxEjgyLBugMQ9NEgTWxXfz2wVqwAaQ= -github.com/goccy/go-yaml v1.11.2/go.mod h1:wKnAMd44+9JAAnGQpWVEgBzGt3YuTaQ4uXoHvE4m7WU= +github.com/goccy/go-yaml v1.11.3 h1:B3W9IdWbvrUu2OYQGwvU1nZtvMQJPBKgBUuweJjLj6I= github.com/goccy/go-yaml v1.11.3/go.mod h1:wKnAMd44+9JAAnGQpWVEgBzGt3YuTaQ4uXoHvE4m7WU= github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= @@ -205,7 +194,6 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= @@ -297,8 +285,7 @@ github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwd github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8eaE= github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= -github.com/nicksnyder/go-i18n/v2 v2.2.1 h1:aOzRCdwsJuoExfZhoiXHy4bjruwCMdt5otbYojM/PaA= -github.com/nicksnyder/go-i18n/v2 v2.2.1/go.mod h1:fF2++lPHlo+/kPaj3nB0uxtPwzlPm+BlgwGX7MkeGj0= +github.com/nicksnyder/go-i18n/v2 v2.4.0 h1:3IcvPOAvnCKwNm0TB0dLDTuawWEj+ax/RERNC+diLMM= github.com/nicksnyder/go-i18n/v2 v2.4.0/go.mod h1:nxYSZE9M0bf3Y70gPQjN9ha7XNHX7gMc814+6wVyEI4= github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= @@ -325,8 +312,6 @@ github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSg github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/ravilushqa/otelgqlgen v0.15.0 h1:U85nrlweMXTGaMChUViYM39/MXBZVeVVlpuHq+6eECQ= github.com/ravilushqa/otelgqlgen v0.15.0/go.mod h1:o+1Eju0VySmgq2BP8Vupz2YrN21Bj7D7imBqu3m2uB8= -github.com/reearth/reearthx v0.0.0-20240130082404-30fae637ffd8 h1:TZCDrwGqLAAuVcQvRlEu9QUY4Zo4wvntCBWY1n4qp0c= -github.com/reearth/reearthx v0.0.0-20240130082404-30fae637ffd8/go.mod h1:Rm+kQsXFEVJ2Tta04Uc92Sl8oQckr74zgVfYzacGDXI= github.com/reearth/reearthx v0.0.0-20240201064205-4a2be423e40d h1:OWU1s9hnxc7pfQ55kbc7M6SndYIM/hWxkeytDq8L/Jc= github.com/reearth/reearthx v0.0.0-20240201064205-4a2be423e40d/go.mod h1:8DSD6e+h1KhfhO4TceYDDPpLkhZJH2CLF6nHxyV8hts= github.com/robbiet480/go.sns v0.0.0-20230523235941-e8d832c79d68 h1:Jknsfy5cqCH6qAuoU1qNZ51hfBJfMSJYwsH9j9mdVnw= @@ -366,7 +351,6 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502/go.mod h1:p9lPsd+cx33L3H9nNoecRRxPssFKUwwI50I3pZ0yT+8= @@ -443,8 +427,7 @@ go.opentelemetry.io/otel v1.22.0 h1:xS7Ku+7yTFvDfDraDIJVpw7XPyuHlB9MCiqqX5mcJ6Y= go.opentelemetry.io/otel v1.22.0/go.mod h1:eoV4iAi3Ea8LkAEI9+GFT44O6T/D0GWAVFyZVCC6pMI= go.opentelemetry.io/otel/metric v1.22.0 h1:lypMQnGyJYeuYPhOM/bgjbFM6WE44W1/T45er4d8Hhg= go.opentelemetry.io/otel/metric v1.22.0/go.mod h1:evJGjVpZv0mQ5QBRJoBF64yMuOf4xCWdXjK8pzFvliY= -go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= -go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= +go.opentelemetry.io/otel/sdk v1.22.0 h1:6coWHw9xw7EfClIC/+O31R8IY3/+EiRFHevmHafB2Gw= go.opentelemetry.io/otel/sdk v1.22.0/go.mod h1:iu7luyVGYovrRpe2fmj3CVKouQNdTOkxtLzPvPz1DOc= go.opentelemetry.io/otel/trace v1.22.0 h1:Hg6pPujv0XG9QaVbGOBVHunyuLcCC3jN7WEhPx83XD0= go.opentelemetry.io/otel/trace v1.22.0/go.mod h1:RbbHXVqKES9QhzZq/fE5UnOSILqRt40a21sPw2He1xo= @@ -534,7 +517,6 @@ golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -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.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= @@ -601,13 +583,14 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/go-jose/go-jose.v2 v2.6.2 h1:Rl5+9rA0kG3vsO1qhncMPRT5eHICihAMQYJkD7u/i4M= +gopkg.in/go-jose/go-jose.v2 v2.6.2/go.mod h1:zzZDPkNNw/c9IE7Z9jr11mBZQhKQTMzoEEIoEdZlFBI= gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI= gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/server/gqlgen.yml b/server/gqlgen.yml index b0342b2f2f..bb4c6d42a0 100644 --- a/server/gqlgen.yml +++ b/server/gqlgen.yml @@ -52,6 +52,8 @@ models: resolver: true assets: resolver: true + referencedItems: + resolver: true updatedBy: resolver: true diff --git a/server/internal/adapter/gql/generated.go b/server/internal/adapter/gql/generated.go index 2d12e4c107..fe41d5edfc 100644 --- a/server/internal/adapter/gql/generated.go +++ b/server/internal/adapter/gql/generated.go @@ -298,6 +298,7 @@ type ComplexityRoot struct { OriginalID func(childComplexity int) int Project func(childComplexity int) int ProjectID func(childComplexity int) int + ReferencedItems func(childComplexity int) int Schema func(childComplexity int) int SchemaID func(childComplexity int) int Status func(childComplexity int) int @@ -883,6 +884,7 @@ type ItemResolver interface { Thread(ctx context.Context, obj *gqlmodel.Item) (*gqlmodel.Thread, error) Assets(ctx context.Context, obj *gqlmodel.Item) ([]*gqlmodel.Asset, error) + ReferencedItems(ctx context.Context, obj *gqlmodel.Item) ([]*gqlmodel.Item, error) UpdatedBy(ctx context.Context, obj *gqlmodel.Item) (gqlmodel.Operator, error) @@ -1843,6 +1845,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Item.ProjectID(childComplexity), true + case "Item.referencedItems": + if e.complexity.Item.ReferencedItems == nil { + break + } + + return e.complexity.Item.ReferencedItems(childComplexity), true + case "Item.schema": if e.complexity.Item.Schema == nil { break @@ -5458,6 +5467,7 @@ extend type Mutation { thread: Thread! fields: [ItemField!]! assets: [Asset]! + referencedItems:[Item!] createdAt: DateTime! updatedAt: DateTime! updatedBy: Operator @@ -13710,6 +13720,105 @@ func (ec *executionContext) fieldContext_Item_assets(ctx context.Context, field return fc, nil } +func (ec *executionContext) _Item_referencedItems(ctx context.Context, field graphql.CollectedField, obj *gqlmodel.Item) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Item_referencedItems(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 ec.resolvers.Item().ReferencedItems(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*gqlmodel.Item) + fc.Result = res + return ec.marshalOItem2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItemᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Item_referencedItems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Item", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Item_id(ctx, field) + case "schemaId": + return ec.fieldContext_Item_schemaId(ctx, field) + case "threadId": + return ec.fieldContext_Item_threadId(ctx, field) + case "modelId": + return ec.fieldContext_Item_modelId(ctx, field) + case "projectId": + return ec.fieldContext_Item_projectId(ctx, field) + case "integrationId": + return ec.fieldContext_Item_integrationId(ctx, field) + case "updatedByUserId": + return ec.fieldContext_Item_updatedByUserId(ctx, field) + case "updatedByIntegrationId": + return ec.fieldContext_Item_updatedByIntegrationId(ctx, field) + case "userId": + return ec.fieldContext_Item_userId(ctx, field) + case "metadataId": + return ec.fieldContext_Item_metadataId(ctx, field) + case "isMetadata": + return ec.fieldContext_Item_isMetadata(ctx, field) + case "originalId": + return ec.fieldContext_Item_originalId(ctx, field) + case "createdBy": + return ec.fieldContext_Item_createdBy(ctx, field) + case "schema": + return ec.fieldContext_Item_schema(ctx, field) + case "model": + return ec.fieldContext_Item_model(ctx, field) + case "status": + return ec.fieldContext_Item_status(ctx, field) + case "project": + return ec.fieldContext_Item_project(ctx, field) + case "thread": + return ec.fieldContext_Item_thread(ctx, field) + case "fields": + return ec.fieldContext_Item_fields(ctx, field) + case "assets": + return ec.fieldContext_Item_assets(ctx, field) + case "referencedItems": + return ec.fieldContext_Item_referencedItems(ctx, field) + case "createdAt": + return ec.fieldContext_Item_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Item_updatedAt(ctx, field) + case "updatedBy": + return ec.fieldContext_Item_updatedBy(ctx, field) + case "version": + return ec.fieldContext_Item_version(ctx, field) + case "metadata": + return ec.fieldContext_Item_metadata(ctx, field) + case "original": + return ec.fieldContext_Item_original(ctx, field) + case "title": + return ec.fieldContext_Item_title(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Item", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _Item_createdAt(ctx context.Context, field graphql.CollectedField, obj *gqlmodel.Item) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Item_createdAt(ctx, field) if err != nil { @@ -13959,6 +14068,8 @@ func (ec *executionContext) fieldContext_Item_metadata(ctx context.Context, fiel return ec.fieldContext_Item_fields(ctx, field) case "assets": return ec.fieldContext_Item_assets(ctx, field) + case "referencedItems": + return ec.fieldContext_Item_referencedItems(ctx, field) case "createdAt": return ec.fieldContext_Item_createdAt(ctx, field) case "updatedAt": @@ -14056,6 +14167,8 @@ func (ec *executionContext) fieldContext_Item_original(ctx context.Context, fiel return ec.fieldContext_Item_fields(ctx, field) case "assets": return ec.fieldContext_Item_assets(ctx, field) + case "referencedItems": + return ec.fieldContext_Item_referencedItems(ctx, field) case "createdAt": return ec.fieldContext_Item_createdAt(ctx, field) case "updatedAt": @@ -14247,6 +14360,8 @@ func (ec *executionContext) fieldContext_ItemConnection_nodes(ctx context.Contex return ec.fieldContext_Item_fields(ctx, field) case "assets": return ec.fieldContext_Item_assets(ctx, field) + case "referencedItems": + return ec.fieldContext_Item_referencedItems(ctx, field) case "createdAt": return ec.fieldContext_Item_createdAt(ctx, field) case "updatedAt": @@ -14486,6 +14601,8 @@ func (ec *executionContext) fieldContext_ItemEdge_node(ctx context.Context, fiel return ec.fieldContext_Item_fields(ctx, field) case "assets": return ec.fieldContext_Item_assets(ctx, field) + case "referencedItems": + return ec.fieldContext_Item_referencedItems(ctx, field) case "createdAt": return ec.fieldContext_Item_createdAt(ctx, field) case "updatedAt": @@ -14756,6 +14873,8 @@ func (ec *executionContext) fieldContext_ItemPayload_item(ctx context.Context, f return ec.fieldContext_Item_fields(ctx, field) case "assets": return ec.fieldContext_Item_assets(ctx, field) + case "referencedItems": + return ec.fieldContext_Item_referencedItems(ctx, field) case "createdAt": return ec.fieldContext_Item_createdAt(ctx, field) case "updatedAt": @@ -21345,6 +21464,8 @@ func (ec *executionContext) fieldContext_PublishItemPayload_items(ctx context.Co return ec.fieldContext_Item_fields(ctx, field) case "assets": return ec.fieldContext_Item_assets(ctx, field) + case "referencedItems": + return ec.fieldContext_Item_referencedItems(ctx, field) case "createdAt": return ec.fieldContext_Item_createdAt(ctx, field) case "updatedAt": @@ -27705,6 +27826,8 @@ func (ec *executionContext) fieldContext_UnpublishItemPayload_items(ctx context. return ec.fieldContext_Item_fields(ctx, field) case "assets": return ec.fieldContext_Item_assets(ctx, field) + case "referencedItems": + return ec.fieldContext_Item_referencedItems(ctx, field) case "createdAt": return ec.fieldContext_Item_createdAt(ctx, field) case "updatedAt": @@ -28502,6 +28625,8 @@ func (ec *executionContext) fieldContext_VersionedItem_value(ctx context.Context return ec.fieldContext_Item_fields(ctx, field) case "assets": return ec.fieldContext_Item_assets(ctx, field) + case "referencedItems": + return ec.fieldContext_Item_referencedItems(ctx, field) case "createdAt": return ec.fieldContext_Item_createdAt(ctx, field) case "updatedAt": @@ -32185,8 +32310,6 @@ func (ec *executionContext) unmarshalInputAddCommentInput(ctx context.Context, o } switch k { case "threadId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("threadId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -32194,8 +32317,6 @@ func (ec *executionContext) unmarshalInputAddCommentInput(ctx context.Context, o } it.ThreadID = data case "content": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -32223,8 +32344,6 @@ func (ec *executionContext) unmarshalInputAddIntegrationToWorkspaceInput(ctx con } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -32232,8 +32351,6 @@ func (ec *executionContext) unmarshalInputAddIntegrationToWorkspaceInput(ctx con } it.WorkspaceID = data case "integrationId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -32241,8 +32358,6 @@ func (ec *executionContext) unmarshalInputAddIntegrationToWorkspaceInput(ctx con } it.IntegrationID = data case "role": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) data, err := ec.unmarshalNRole2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRole(ctx, v) if err != nil { @@ -32270,8 +32385,6 @@ func (ec *executionContext) unmarshalInputAddUsersToWorkspaceInput(ctx context.C } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -32279,8 +32392,6 @@ func (ec *executionContext) unmarshalInputAddUsersToWorkspaceInput(ctx context.C } it.WorkspaceID = data case "users": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("users")) data, err := ec.unmarshalNMemberInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐMemberInputᚄ(ctx, v) if err != nil { @@ -32308,8 +32419,6 @@ func (ec *executionContext) unmarshalInputAndConditionInput(ctx context.Context, } switch k { case "conditions": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("conditions")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNConditionInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐConditionInputᚄ(ctx, v) @@ -32354,8 +32463,6 @@ func (ec *executionContext) unmarshalInputApproveRequestInput(ctx context.Contex } switch k { case "requestId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -32383,8 +32490,6 @@ func (ec *executionContext) unmarshalInputAssetSort(ctx context.Context, obj int } switch k { case "sortBy": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortBy")) data, err := ec.unmarshalNAssetSortType2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐAssetSortType(ctx, v) if err != nil { @@ -32392,8 +32497,6 @@ func (ec *executionContext) unmarshalInputAssetSort(ctx context.Context, obj int } it.SortBy = data case "direction": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) data, err := ec.unmarshalOSortDirection2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSortDirection(ctx, v) if err != nil { @@ -32421,8 +32524,6 @@ func (ec *executionContext) unmarshalInputBasicFieldConditionInput(ctx context.C } switch k { case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalNFieldSelectorInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldSelectorInput(ctx, v) if err != nil { @@ -32430,8 +32531,6 @@ func (ec *executionContext) unmarshalInputBasicFieldConditionInput(ctx context.C } it.FieldID = data case "operator": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) data, err := ec.unmarshalNBasicOperator2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐBasicOperator(ctx, v) if err != nil { @@ -32439,8 +32538,6 @@ func (ec *executionContext) unmarshalInputBasicFieldConditionInput(ctx context.C } it.Operator = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNAny2interface(ctx, v) if err != nil { @@ -32468,8 +32565,6 @@ func (ec *executionContext) unmarshalInputBoolFieldConditionInput(ctx context.Co } switch k { case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalNFieldSelectorInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldSelectorInput(ctx, v) if err != nil { @@ -32477,8 +32572,6 @@ func (ec *executionContext) unmarshalInputBoolFieldConditionInput(ctx context.Co } it.FieldID = data case "operator": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) data, err := ec.unmarshalNBoolOperator2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐBoolOperator(ctx, v) if err != nil { @@ -32486,8 +32579,6 @@ func (ec *executionContext) unmarshalInputBoolFieldConditionInput(ctx context.Co } it.Operator = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -32515,8 +32606,6 @@ func (ec *executionContext) unmarshalInputCesiumResourcePropsInput(ctx context.C } switch k { case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -32524,8 +32613,6 @@ func (ec *executionContext) unmarshalInputCesiumResourcePropsInput(ctx context.C } it.Name = data case "url": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -32533,8 +32620,6 @@ func (ec *executionContext) unmarshalInputCesiumResourcePropsInput(ctx context.C } it.URL = data case "image": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -32542,8 +32627,6 @@ func (ec *executionContext) unmarshalInputCesiumResourcePropsInput(ctx context.C } it.Image = data case "cesiumIonAssetId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cesiumIonAssetId")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -32551,8 +32634,6 @@ func (ec *executionContext) unmarshalInputCesiumResourcePropsInput(ctx context.C } it.CesiumIonAssetID = data case "cesiumIonAccessToken": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cesiumIonAccessToken")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -32580,8 +32661,6 @@ func (ec *executionContext) unmarshalInputColumnSelectionInput(ctx context.Conte } switch k { case "field": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) data, err := ec.unmarshalNFieldSelectorInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldSelectorInput(ctx, v) if err != nil { @@ -32589,8 +32668,6 @@ func (ec *executionContext) unmarshalInputColumnSelectionInput(ctx context.Conte } it.Field = data case "visible": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visible")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -32618,8 +32695,6 @@ func (ec *executionContext) unmarshalInputConditionInput(ctx context.Context, ob } switch k { case "and": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOAndConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐAndConditionInput(ctx, v) @@ -32644,8 +32719,6 @@ func (ec *executionContext) unmarshalInputConditionInput(ctx context.Context, ob return it, graphql.ErrorOnPath(ctx, err) } case "or": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOOrConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐOrConditionInput(ctx, v) @@ -32670,8 +32743,6 @@ func (ec *executionContext) unmarshalInputConditionInput(ctx context.Context, ob return it, graphql.ErrorOnPath(ctx, err) } case "basic": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("basic")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOBasicFieldConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐBasicFieldConditionInput(ctx, v) @@ -32696,8 +32767,6 @@ func (ec *executionContext) unmarshalInputConditionInput(ctx context.Context, ob return it, graphql.ErrorOnPath(ctx, err) } case "nullable": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nullable")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalONullableFieldConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐNullableFieldConditionInput(ctx, v) @@ -32722,8 +32791,6 @@ func (ec *executionContext) unmarshalInputConditionInput(ctx context.Context, ob return it, graphql.ErrorOnPath(ctx, err) } case "multiple": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("multiple")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOMultipleFieldConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐMultipleFieldConditionInput(ctx, v) @@ -32748,8 +32815,6 @@ func (ec *executionContext) unmarshalInputConditionInput(ctx context.Context, ob return it, graphql.ErrorOnPath(ctx, err) } case "bool": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bool")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOBoolFieldConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐBoolFieldConditionInput(ctx, v) @@ -32774,8 +32839,6 @@ func (ec *executionContext) unmarshalInputConditionInput(ctx context.Context, ob return it, graphql.ErrorOnPath(ctx, err) } case "string": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("string")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOStringFieldConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐStringFieldConditionInput(ctx, v) @@ -32800,8 +32863,6 @@ func (ec *executionContext) unmarshalInputConditionInput(ctx context.Context, ob return it, graphql.ErrorOnPath(ctx, err) } case "number": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("number")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalONumberFieldConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐNumberFieldConditionInput(ctx, v) @@ -32826,8 +32887,6 @@ func (ec *executionContext) unmarshalInputConditionInput(ctx context.Context, ob return it, graphql.ErrorOnPath(ctx, err) } case "time": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("time")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOTimeFieldConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐTimeFieldConditionInput(ctx, v) @@ -32872,8 +32931,6 @@ func (ec *executionContext) unmarshalInputCorrespondingFieldInput(ctx context.Co } switch k { case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -32881,8 +32938,6 @@ func (ec *executionContext) unmarshalInputCorrespondingFieldInput(ctx context.Co } it.FieldID = data case "title": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -32890,8 +32945,6 @@ func (ec *executionContext) unmarshalInputCorrespondingFieldInput(ctx context.Co } it.Title = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -32899,8 +32952,6 @@ func (ec *executionContext) unmarshalInputCorrespondingFieldInput(ctx context.Co } it.Key = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -32908,8 +32959,6 @@ func (ec *executionContext) unmarshalInputCorrespondingFieldInput(ctx context.Co } it.Description = data case "required": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("required")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -32937,8 +32986,6 @@ func (ec *executionContext) unmarshalInputCreateAssetInput(ctx context.Context, } switch k { case "projectId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -32946,8 +32993,6 @@ func (ec *executionContext) unmarshalInputCreateAssetInput(ctx context.Context, } it.ProjectID = data case "file": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) data, err := ec.unmarshalOUpload2ᚖgithub.comᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) if err != nil { @@ -32955,8 +33000,6 @@ func (ec *executionContext) unmarshalInputCreateAssetInput(ctx context.Context, } it.File = data case "url": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -32964,8 +33007,6 @@ func (ec *executionContext) unmarshalInputCreateAssetInput(ctx context.Context, } it.URL = data case "token": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -32973,8 +33014,6 @@ func (ec *executionContext) unmarshalInputCreateAssetInput(ctx context.Context, } it.Token = data case "skipDecompression": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("skipDecompression")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -33002,8 +33041,6 @@ func (ec *executionContext) unmarshalInputCreateAssetUploadInput(ctx context.Con } switch k { case "projectId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33011,8 +33048,6 @@ func (ec *executionContext) unmarshalInputCreateAssetUploadInput(ctx context.Con } it.ProjectID = data case "filename": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filename")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33040,8 +33075,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } switch k { case "modelId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33049,8 +33082,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.ModelID = data case "groupId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33058,8 +33089,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.GroupID = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNSchemaFieldType2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldType(ctx, v) if err != nil { @@ -33067,8 +33096,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.Type = data case "title": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33076,8 +33103,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.Title = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -33085,8 +33110,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.Metadata = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33094,8 +33117,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.Description = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33103,8 +33124,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.Key = data case "multiple": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("multiple")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -33112,8 +33131,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.Multiple = data case "unique": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("unique")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -33121,8 +33138,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.Unique = data case "required": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("required")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -33130,8 +33145,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.Required = data case "isTitle": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTitle")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -33139,8 +33152,6 @@ func (ec *executionContext) unmarshalInputCreateFieldInput(ctx context.Context, } it.IsTitle = data case "typeProperty": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeProperty")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNSchemaFieldTypePropertyInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldTypePropertyInput(ctx, v) @@ -33185,8 +33196,6 @@ func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, } switch k { case "projectId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33194,8 +33203,6 @@ func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, } it.ProjectID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33203,8 +33210,6 @@ func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, } it.Name = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33212,8 +33217,6 @@ func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, } it.Key = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33241,8 +33244,6 @@ func (ec *executionContext) unmarshalInputCreateIntegrationInput(ctx context.Con } switch k { case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33250,8 +33251,6 @@ func (ec *executionContext) unmarshalInputCreateIntegrationInput(ctx context.Con } it.Name = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33259,8 +33258,6 @@ func (ec *executionContext) unmarshalInputCreateIntegrationInput(ctx context.Con } it.Description = data case "logoUrl": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoUrl")) data, err := ec.unmarshalNURL2netᚋurlᚐURL(ctx, v) if err != nil { @@ -33268,8 +33265,6 @@ func (ec *executionContext) unmarshalInputCreateIntegrationInput(ctx context.Con } it.LogoURL = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNIntegrationType2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐIntegrationType(ctx, v) if err != nil { @@ -33297,8 +33292,6 @@ func (ec *executionContext) unmarshalInputCreateItemInput(ctx context.Context, o } switch k { case "schemaId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("schemaId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33306,8 +33299,6 @@ func (ec *executionContext) unmarshalInputCreateItemInput(ctx context.Context, o } it.SchemaID = data case "modelId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33315,8 +33306,6 @@ func (ec *executionContext) unmarshalInputCreateItemInput(ctx context.Context, o } it.ModelID = data case "metadataId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadataId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33324,8 +33313,6 @@ func (ec *executionContext) unmarshalInputCreateItemInput(ctx context.Context, o } it.MetadataID = data case "originalId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("originalId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33333,8 +33320,6 @@ func (ec *executionContext) unmarshalInputCreateItemInput(ctx context.Context, o } it.OriginalID = data case "fields": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fields")) data, err := ec.unmarshalNItemFieldInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItemFieldInputᚄ(ctx, v) if err != nil { @@ -33362,8 +33347,6 @@ func (ec *executionContext) unmarshalInputCreateModelInput(ctx context.Context, } switch k { case "projectId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33371,8 +33354,6 @@ func (ec *executionContext) unmarshalInputCreateModelInput(ctx context.Context, } it.ProjectID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33380,8 +33361,6 @@ func (ec *executionContext) unmarshalInputCreateModelInput(ctx context.Context, } it.Name = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33389,8 +33368,6 @@ func (ec *executionContext) unmarshalInputCreateModelInput(ctx context.Context, } it.Description = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33418,8 +33395,6 @@ func (ec *executionContext) unmarshalInputCreateProjectInput(ctx context.Context } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33427,8 +33402,6 @@ func (ec *executionContext) unmarshalInputCreateProjectInput(ctx context.Context } it.WorkspaceID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33436,8 +33409,6 @@ func (ec *executionContext) unmarshalInputCreateProjectInput(ctx context.Context } it.Name = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33445,8 +33416,6 @@ func (ec *executionContext) unmarshalInputCreateProjectInput(ctx context.Context } it.Description = data case "alias": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("alias")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33454,8 +33423,6 @@ func (ec *executionContext) unmarshalInputCreateProjectInput(ctx context.Context } it.Alias = data case "requestRoles": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestRoles")) data, err := ec.unmarshalORole2ᚕgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRoleᚄ(ctx, v) if err != nil { @@ -33483,8 +33450,6 @@ func (ec *executionContext) unmarshalInputCreateRequestInput(ctx context.Context } switch k { case "projectId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33492,8 +33457,6 @@ func (ec *executionContext) unmarshalInputCreateRequestInput(ctx context.Context } it.ProjectID = data case "title": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33501,8 +33464,6 @@ func (ec *executionContext) unmarshalInputCreateRequestInput(ctx context.Context } it.Title = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -33510,8 +33471,6 @@ func (ec *executionContext) unmarshalInputCreateRequestInput(ctx context.Context } it.Description = data case "state": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) data, err := ec.unmarshalORequestState2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRequestState(ctx, v) if err != nil { @@ -33519,8 +33478,6 @@ func (ec *executionContext) unmarshalInputCreateRequestInput(ctx context.Context } it.State = data case "reviewersId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reviewersId")) data, err := ec.unmarshalOID2ᚕgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐIDᚄ(ctx, v) if err != nil { @@ -33528,8 +33485,6 @@ func (ec *executionContext) unmarshalInputCreateRequestInput(ctx context.Context } it.ReviewersID = data case "items": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("items")) data, err := ec.unmarshalNRequestItemInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRequestItemInputᚄ(ctx, v) if err != nil { @@ -33557,8 +33512,6 @@ func (ec *executionContext) unmarshalInputCreateThreadInput(ctx context.Context, } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33586,8 +33539,6 @@ func (ec *executionContext) unmarshalInputCreateViewInput(ctx context.Context, o } switch k { case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33595,8 +33546,6 @@ func (ec *executionContext) unmarshalInputCreateViewInput(ctx context.Context, o } it.Name = data case "modelId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33604,8 +33553,6 @@ func (ec *executionContext) unmarshalInputCreateViewInput(ctx context.Context, o } it.ModelID = data case "projectId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33613,8 +33560,6 @@ func (ec *executionContext) unmarshalInputCreateViewInput(ctx context.Context, o } it.ProjectID = data case "sort": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) data, err := ec.unmarshalOItemSortInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItemSortInput(ctx, v) if err != nil { @@ -33622,8 +33567,6 @@ func (ec *executionContext) unmarshalInputCreateViewInput(ctx context.Context, o } it.Sort = data case "filter": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐConditionInput(ctx, v) @@ -33648,8 +33591,6 @@ func (ec *executionContext) unmarshalInputCreateViewInput(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "columns": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("columns")) data, err := ec.unmarshalOColumnSelectionInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐColumnSelectionInputᚄ(ctx, v) if err != nil { @@ -33677,8 +33618,6 @@ func (ec *executionContext) unmarshalInputCreateWebhookInput(ctx context.Context } switch k { case "integrationId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33686,8 +33625,6 @@ func (ec *executionContext) unmarshalInputCreateWebhookInput(ctx context.Context } it.IntegrationID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33695,8 +33632,6 @@ func (ec *executionContext) unmarshalInputCreateWebhookInput(ctx context.Context } it.Name = data case "url": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) data, err := ec.unmarshalNURL2netᚋurlᚐURL(ctx, v) if err != nil { @@ -33704,8 +33639,6 @@ func (ec *executionContext) unmarshalInputCreateWebhookInput(ctx context.Context } it.URL = data case "active": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -33713,8 +33646,6 @@ func (ec *executionContext) unmarshalInputCreateWebhookInput(ctx context.Context } it.Active = data case "trigger": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trigger")) data, err := ec.unmarshalNWebhookTriggerInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐWebhookTriggerInput(ctx, v) if err != nil { @@ -33722,8 +33653,6 @@ func (ec *executionContext) unmarshalInputCreateWebhookInput(ctx context.Context } it.Trigger = data case "secret": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secret")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33751,8 +33680,6 @@ func (ec *executionContext) unmarshalInputCreateWorkspaceInput(ctx context.Conte } switch k { case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -33780,8 +33707,6 @@ func (ec *executionContext) unmarshalInputDecompressAssetInput(ctx context.Conte } switch k { case "assetId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33809,8 +33734,6 @@ func (ec *executionContext) unmarshalInputDeleteAssetInput(ctx context.Context, } switch k { case "assetId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33838,8 +33761,6 @@ func (ec *executionContext) unmarshalInputDeleteCommentInput(ctx context.Context } switch k { case "threadId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("threadId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33847,8 +33768,6 @@ func (ec *executionContext) unmarshalInputDeleteCommentInput(ctx context.Context } it.ThreadID = data case "commentId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("commentId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33876,8 +33795,6 @@ func (ec *executionContext) unmarshalInputDeleteFieldInput(ctx context.Context, } switch k { case "modelId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33885,8 +33802,6 @@ func (ec *executionContext) unmarshalInputDeleteFieldInput(ctx context.Context, } it.ModelID = data case "groupId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33894,8 +33809,6 @@ func (ec *executionContext) unmarshalInputDeleteFieldInput(ctx context.Context, } it.GroupID = data case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33903,8 +33816,6 @@ func (ec *executionContext) unmarshalInputDeleteFieldInput(ctx context.Context, } it.FieldID = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -33932,8 +33843,6 @@ func (ec *executionContext) unmarshalInputDeleteGroupInput(ctx context.Context, } switch k { case "groupId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33961,8 +33870,6 @@ func (ec *executionContext) unmarshalInputDeleteIntegrationInput(ctx context.Con } switch k { case "integrationId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -33990,8 +33897,6 @@ func (ec *executionContext) unmarshalInputDeleteItemInput(ctx context.Context, o } switch k { case "itemId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34019,8 +33924,6 @@ func (ec *executionContext) unmarshalInputDeleteMeInput(ctx context.Context, obj } switch k { case "userId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34048,8 +33951,6 @@ func (ec *executionContext) unmarshalInputDeleteModelInput(ctx context.Context, } switch k { case "modelId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34077,8 +33978,6 @@ func (ec *executionContext) unmarshalInputDeleteProjectInput(ctx context.Context } switch k { case "projectId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34106,8 +34005,6 @@ func (ec *executionContext) unmarshalInputDeleteRequestInput(ctx context.Context } switch k { case "projectId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34115,8 +34012,6 @@ func (ec *executionContext) unmarshalInputDeleteRequestInput(ctx context.Context } it.ProjectID = data case "requestsId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestsId")) data, err := ec.unmarshalNID2ᚕgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐIDᚄ(ctx, v) if err != nil { @@ -34144,8 +34039,6 @@ func (ec *executionContext) unmarshalInputDeleteViewInput(ctx context.Context, o } switch k { case "viewId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("viewId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34173,8 +34066,6 @@ func (ec *executionContext) unmarshalInputDeleteWebhookInput(ctx context.Context } switch k { case "integrationId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34182,8 +34073,6 @@ func (ec *executionContext) unmarshalInputDeleteWebhookInput(ctx context.Context } it.IntegrationID = data case "webhookId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34211,8 +34100,6 @@ func (ec *executionContext) unmarshalInputDeleteWorkspaceInput(ctx context.Conte } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34240,8 +34127,6 @@ func (ec *executionContext) unmarshalInputFieldSelectorInput(ctx context.Context } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34249,8 +34134,6 @@ func (ec *executionContext) unmarshalInputFieldSelectorInput(ctx context.Context } it.ID = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNFieldType2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldType(ctx, v) if err != nil { @@ -34278,8 +34161,6 @@ func (ec *executionContext) unmarshalInputItemFieldInput(ctx context.Context, ob } switch k { case "schemaFieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("schemaFieldId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34287,8 +34168,6 @@ func (ec *executionContext) unmarshalInputItemFieldInput(ctx context.Context, ob } it.SchemaFieldID = data case "itemGroupId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemGroupId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34296,8 +34175,6 @@ func (ec *executionContext) unmarshalInputItemFieldInput(ctx context.Context, ob } it.ItemGroupID = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNSchemaFieldType2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldType(ctx, v) if err != nil { @@ -34305,8 +34182,6 @@ func (ec *executionContext) unmarshalInputItemFieldInput(ctx context.Context, ob } it.Type = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNAny2interface(ctx, v) if err != nil { @@ -34334,8 +34209,6 @@ func (ec *executionContext) unmarshalInputItemQueryInput(ctx context.Context, ob } switch k { case "project": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("project")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34343,8 +34216,6 @@ func (ec *executionContext) unmarshalInputItemQueryInput(ctx context.Context, ob } it.Project = data case "model": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("model")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34352,8 +34223,6 @@ func (ec *executionContext) unmarshalInputItemQueryInput(ctx context.Context, ob } it.Model = data case "schema": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("schema")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34361,8 +34230,6 @@ func (ec *executionContext) unmarshalInputItemQueryInput(ctx context.Context, ob } it.Schema = data case "q": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("q")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -34390,8 +34257,6 @@ func (ec *executionContext) unmarshalInputItemSortInput(ctx context.Context, obj } switch k { case "field": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) data, err := ec.unmarshalNFieldSelectorInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldSelectorInput(ctx, v) if err != nil { @@ -34399,8 +34264,6 @@ func (ec *executionContext) unmarshalInputItemSortInput(ctx context.Context, obj } it.Field = data case "direction": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) data, err := ec.unmarshalOSortDirection2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSortDirection(ctx, v) if err != nil { @@ -34428,8 +34291,6 @@ func (ec *executionContext) unmarshalInputMemberInput(ctx context.Context, obj i } switch k { case "userId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34437,8 +34298,6 @@ func (ec *executionContext) unmarshalInputMemberInput(ctx context.Context, obj i } it.UserID = data case "role": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) data, err := ec.unmarshalNRole2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRole(ctx, v) if err != nil { @@ -34466,8 +34325,6 @@ func (ec *executionContext) unmarshalInputMultipleFieldConditionInput(ctx contex } switch k { case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalNFieldSelectorInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldSelectorInput(ctx, v) if err != nil { @@ -34475,8 +34332,6 @@ func (ec *executionContext) unmarshalInputMultipleFieldConditionInput(ctx contex } it.FieldID = data case "operator": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) data, err := ec.unmarshalNMultipleOperator2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐMultipleOperator(ctx, v) if err != nil { @@ -34484,8 +34339,6 @@ func (ec *executionContext) unmarshalInputMultipleFieldConditionInput(ctx contex } it.Operator = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNAny2ᚕinterfaceᚄ(ctx, v) if err != nil { @@ -34513,8 +34366,6 @@ func (ec *executionContext) unmarshalInputNullableFieldConditionInput(ctx contex } switch k { case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalNFieldSelectorInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldSelectorInput(ctx, v) if err != nil { @@ -34522,8 +34373,6 @@ func (ec *executionContext) unmarshalInputNullableFieldConditionInput(ctx contex } it.FieldID = data case "operator": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) data, err := ec.unmarshalNNullableOperator2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐNullableOperator(ctx, v) if err != nil { @@ -34551,8 +34400,6 @@ func (ec *executionContext) unmarshalInputNumberFieldConditionInput(ctx context. } switch k { case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalNFieldSelectorInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldSelectorInput(ctx, v) if err != nil { @@ -34560,8 +34407,6 @@ func (ec *executionContext) unmarshalInputNumberFieldConditionInput(ctx context. } it.FieldID = data case "operator": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) data, err := ec.unmarshalNNumberOperator2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐNumberOperator(ctx, v) if err != nil { @@ -34569,8 +34414,6 @@ func (ec *executionContext) unmarshalInputNumberFieldConditionInput(ctx context. } it.Operator = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNFloat2float64(ctx, v) if err != nil { @@ -34598,8 +34441,6 @@ func (ec *executionContext) unmarshalInputOperatorInput(ctx context.Context, obj } switch k { case "basic": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("basic")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOBasicOperator2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐBasicOperator(ctx, v) @@ -34624,8 +34465,6 @@ func (ec *executionContext) unmarshalInputOperatorInput(ctx context.Context, obj return it, graphql.ErrorOnPath(ctx, err) } case "nullable": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nullable")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalONullableOperator2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐNullableOperator(ctx, v) @@ -34650,8 +34489,6 @@ func (ec *executionContext) unmarshalInputOperatorInput(ctx context.Context, obj return it, graphql.ErrorOnPath(ctx, err) } case "bool": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bool")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOBoolOperator2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐBoolOperator(ctx, v) @@ -34676,8 +34513,6 @@ func (ec *executionContext) unmarshalInputOperatorInput(ctx context.Context, obj return it, graphql.ErrorOnPath(ctx, err) } case "string": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("string")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOStringOperator2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐStringOperator(ctx, v) @@ -34702,8 +34537,6 @@ func (ec *executionContext) unmarshalInputOperatorInput(ctx context.Context, obj return it, graphql.ErrorOnPath(ctx, err) } case "number": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("number")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalONumberOperator2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐNumberOperator(ctx, v) @@ -34728,8 +34561,6 @@ func (ec *executionContext) unmarshalInputOperatorInput(ctx context.Context, obj return it, graphql.ErrorOnPath(ctx, err) } case "time": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("time")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOTimeOperator2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐTimeOperator(ctx, v) @@ -34774,8 +34605,6 @@ func (ec *executionContext) unmarshalInputOrConditionInput(ctx context.Context, } switch k { case "conditions": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("conditions")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNConditionInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐConditionInputᚄ(ctx, v) @@ -34820,8 +34649,6 @@ func (ec *executionContext) unmarshalInputPagination(ctx context.Context, obj in } switch k { case "first": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -34829,8 +34656,6 @@ func (ec *executionContext) unmarshalInputPagination(ctx context.Context, obj in } it.First = data case "last": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -34838,8 +34663,6 @@ func (ec *executionContext) unmarshalInputPagination(ctx context.Context, obj in } it.Last = data case "offset": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -34847,8 +34670,6 @@ func (ec *executionContext) unmarshalInputPagination(ctx context.Context, obj in } it.Offset = data case "after": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) data, err := ec.unmarshalOCursor2ᚖgithub.comᚋreearthᚋreearthxᚋusecasexᚐCursor(ctx, v) if err != nil { @@ -34856,8 +34677,6 @@ func (ec *executionContext) unmarshalInputPagination(ctx context.Context, obj in } it.After = data case "before": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) data, err := ec.unmarshalOCursor2ᚖgithub.comᚋreearthᚋreearthxᚋusecasexᚐCursor(ctx, v) if err != nil { @@ -34885,8 +34704,6 @@ func (ec *executionContext) unmarshalInputPublishItemInput(ctx context.Context, } switch k { case "itemIds": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemIds")) data, err := ec.unmarshalNID2ᚕgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐIDᚄ(ctx, v) if err != nil { @@ -34914,8 +34731,6 @@ func (ec *executionContext) unmarshalInputPublishModelInput(ctx context.Context, } switch k { case "modelId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34923,8 +34738,6 @@ func (ec *executionContext) unmarshalInputPublishModelInput(ctx context.Context, } it.ModelID = data case "status": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -34952,8 +34765,6 @@ func (ec *executionContext) unmarshalInputRemoveIntegrationFromWorkspaceInput(ct } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34961,8 +34772,6 @@ func (ec *executionContext) unmarshalInputRemoveIntegrationFromWorkspaceInput(ct } it.WorkspaceID = data case "integrationId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -34990,8 +34799,6 @@ func (ec *executionContext) unmarshalInputRemoveMyAuthInput(ctx context.Context, } switch k { case "auth": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auth")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -35019,8 +34826,6 @@ func (ec *executionContext) unmarshalInputRemoveUserFromWorkspaceInput(ctx conte } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -35028,8 +34833,6 @@ func (ec *executionContext) unmarshalInputRemoveUserFromWorkspaceInput(ctx conte } it.WorkspaceID = data case "userId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -35057,8 +34860,6 @@ func (ec *executionContext) unmarshalInputRequestItemInput(ctx context.Context, } switch k { case "itemId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -35086,8 +34887,6 @@ func (ec *executionContext) unmarshalInputResourceInput(ctx context.Context, obj } switch k { case "tile": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tile")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOTileResourceInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐTileResourceInput(ctx, v) @@ -35112,8 +34911,6 @@ func (ec *executionContext) unmarshalInputResourceInput(ctx context.Context, obj return it, graphql.ErrorOnPath(ctx, err) } case "terrain": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("terrain")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOTerrainResourceInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐTerrainResourceInput(ctx, v) @@ -35158,8 +34955,6 @@ func (ec *executionContext) unmarshalInputResourcesListInput(ctx context.Context } switch k { case "resources": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNResourceInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐResourceInputᚄ(ctx, v) @@ -35184,8 +34979,6 @@ func (ec *executionContext) unmarshalInputResourcesListInput(ctx context.Context return it, graphql.ErrorOnPath(ctx, err) } case "selectedResource": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("selectedResource")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -35193,8 +34986,6 @@ func (ec *executionContext) unmarshalInputResourcesListInput(ctx context.Context } it.SelectedResource = data case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -35222,8 +35013,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldAssetInput(ctx context.Cont } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35251,8 +35040,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldBoolInput(ctx context.Conte } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35280,8 +35067,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldCheckboxInput(ctx context.C } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35309,8 +35094,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldDateInput(ctx context.Conte } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35338,8 +35121,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldGroupInput(ctx context.Cont } switch k { case "groupId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -35367,8 +35148,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldIntegerInput(ctx context.Co } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35376,8 +35155,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldIntegerInput(ctx context.Co } it.DefaultValue = data case "min": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -35385,8 +35162,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldIntegerInput(ctx context.Co } it.Min = data case "max": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -35414,8 +35189,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldReferenceInput(ctx context. } switch k { case "modelId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -35423,8 +35196,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldReferenceInput(ctx context. } it.ModelID = data case "correspondingSchemaId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correspondingSchemaId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -35432,8 +35203,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldReferenceInput(ctx context. } it.CorrespondingSchemaID = data case "correspondingField": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correspondingField")) data, err := ec.unmarshalOCorrespondingFieldInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐCorrespondingFieldInput(ctx, v) if err != nil { @@ -35461,8 +35230,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldRichTextInput(ctx context.C } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35470,8 +35237,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldRichTextInput(ctx context.C } it.DefaultValue = data case "maxLength": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxLength")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -35499,8 +35264,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldSelectInput(ctx context.Con } switch k { case "values": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("values")) data, err := ec.unmarshalNString2ᚕstringᚄ(ctx, v) if err != nil { @@ -35508,8 +35271,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldSelectInput(ctx context.Con } it.Values = data case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35537,8 +35298,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTagInput(ctx context.Contex } switch k { case "tags": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) data, err := ec.unmarshalNSchemaFieldTagValueInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldTagValueInputᚄ(ctx, v) if err != nil { @@ -35546,8 +35305,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTagInput(ctx context.Contex } it.Tags = data case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35575,8 +35332,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTagValueInput(ctx context.C } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -35584,8 +35339,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTagValueInput(ctx context.C } it.ID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -35593,8 +35346,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTagValueInput(ctx context.C } it.Name = data case "color": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("color")) data, err := ec.unmarshalOSchemaFieldTagColor2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldTagColor(ctx, v) if err != nil { @@ -35622,8 +35373,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTextAreaInput(ctx context.C } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35631,8 +35380,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTextAreaInput(ctx context.C } it.DefaultValue = data case "maxLength": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxLength")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -35660,8 +35407,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTextInput(ctx context.Conte } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -35669,8 +35414,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTextInput(ctx context.Conte } it.DefaultValue = data case "maxLength": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxLength")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -35698,8 +35441,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldTextInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldTextInput(ctx, v) @@ -35724,8 +35465,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "textArea": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textArea")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldTextAreaInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldTextAreaInput(ctx, v) @@ -35750,8 +35489,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "richText": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("richText")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldRichTextInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldRichTextInput(ctx, v) @@ -35776,8 +35513,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "markdownText": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markdownText")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaMarkdownTextInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaMarkdownTextInput(ctx, v) @@ -35802,8 +35537,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "asset": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("asset")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldAssetInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldAssetInput(ctx, v) @@ -35828,8 +35561,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "date": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("date")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldDateInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldDateInput(ctx, v) @@ -35854,8 +35585,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "bool": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bool")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldBoolInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldBoolInput(ctx, v) @@ -35880,8 +35609,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "select": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("select")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldSelectInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldSelectInput(ctx, v) @@ -35906,8 +35633,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "tag": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tag")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldTagInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldTagInput(ctx, v) @@ -35932,8 +35657,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "checkbox": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("checkbox")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldCheckboxInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldCheckboxInput(ctx, v) @@ -35958,8 +35681,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "integer": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integer")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldIntegerInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldIntegerInput(ctx, v) @@ -35984,8 +35705,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "reference": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reference")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldReferenceInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldReferenceInput(ctx, v) @@ -36010,8 +35729,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "url": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldURLInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldURLInput(ctx, v) @@ -36036,8 +35753,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldTypePropertyInput(ctx conte return it, graphql.ErrorOnPath(ctx, err) } case "group": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("group")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldGroupInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldGroupInput(ctx, v) @@ -36082,8 +35797,6 @@ func (ec *executionContext) unmarshalInputSchemaFieldURLInput(ctx context.Contex } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -36111,8 +35824,6 @@ func (ec *executionContext) unmarshalInputSchemaMarkdownTextInput(ctx context.Co } switch k { case "defaultValue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultValue")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -36120,8 +35831,6 @@ func (ec *executionContext) unmarshalInputSchemaMarkdownTextInput(ctx context.Co } it.DefaultValue = data case "maxLength": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxLength")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -36149,8 +35858,6 @@ func (ec *executionContext) unmarshalInputSearchItemInput(ctx context.Context, o } switch k { case "query": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) data, err := ec.unmarshalNItemQueryInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItemQueryInput(ctx, v) if err != nil { @@ -36158,8 +35865,6 @@ func (ec *executionContext) unmarshalInputSearchItemInput(ctx context.Context, o } it.Query = data case "sort": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) data, err := ec.unmarshalOItemSortInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItemSortInput(ctx, v) if err != nil { @@ -36167,8 +35872,6 @@ func (ec *executionContext) unmarshalInputSearchItemInput(ctx context.Context, o } it.Sort = data case "filter": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐConditionInput(ctx, v) @@ -36193,8 +35896,6 @@ func (ec *executionContext) unmarshalInputSearchItemInput(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "pagination": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pagination")) data, err := ec.unmarshalOPagination2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐPagination(ctx, v) if err != nil { @@ -36222,8 +35923,6 @@ func (ec *executionContext) unmarshalInputSort(ctx context.Context, obj interfac } switch k { case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -36231,8 +35930,6 @@ func (ec *executionContext) unmarshalInputSort(ctx context.Context, obj interfac } it.Key = data case "reverted": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reverted")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -36260,8 +35957,6 @@ func (ec *executionContext) unmarshalInputStringFieldConditionInput(ctx context. } switch k { case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalNFieldSelectorInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldSelectorInput(ctx, v) if err != nil { @@ -36269,8 +35964,6 @@ func (ec *executionContext) unmarshalInputStringFieldConditionInput(ctx context. } it.FieldID = data case "operator": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) data, err := ec.unmarshalNStringOperator2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐStringOperator(ctx, v) if err != nil { @@ -36278,8 +35971,6 @@ func (ec *executionContext) unmarshalInputStringFieldConditionInput(ctx context. } it.Operator = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -36307,8 +35998,6 @@ func (ec *executionContext) unmarshalInputTerrainResourceInput(ctx context.Conte } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36316,8 +36005,6 @@ func (ec *executionContext) unmarshalInputTerrainResourceInput(ctx context.Conte } it.ID = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNTerrainType2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐTerrainType(ctx, v) if err != nil { @@ -36325,8 +36012,6 @@ func (ec *executionContext) unmarshalInputTerrainResourceInput(ctx context.Conte } it.Type = data case "props": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("props")) data, err := ec.unmarshalOCesiumResourcePropsInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐCesiumResourcePropsInput(ctx, v) if err != nil { @@ -36354,8 +36039,6 @@ func (ec *executionContext) unmarshalInputTileResourceInput(ctx context.Context, } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36363,8 +36046,6 @@ func (ec *executionContext) unmarshalInputTileResourceInput(ctx context.Context, } it.ID = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNTileType2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐTileType(ctx, v) if err != nil { @@ -36372,8 +36053,6 @@ func (ec *executionContext) unmarshalInputTileResourceInput(ctx context.Context, } it.Type = data case "props": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("props")) data, err := ec.unmarshalOUrlResourcePropsInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐURLResourcePropsInput(ctx, v) if err != nil { @@ -36401,8 +36080,6 @@ func (ec *executionContext) unmarshalInputTimeFieldConditionInput(ctx context.Co } switch k { case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalNFieldSelectorInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐFieldSelectorInput(ctx, v) if err != nil { @@ -36410,8 +36087,6 @@ func (ec *executionContext) unmarshalInputTimeFieldConditionInput(ctx context.Co } it.FieldID = data case "operator": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) data, err := ec.unmarshalNTimeOperator2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐTimeOperator(ctx, v) if err != nil { @@ -36419,8 +36094,6 @@ func (ec *executionContext) unmarshalInputTimeFieldConditionInput(ctx context.Co } it.Operator = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNDateTime2timeᚐTime(ctx, v) if err != nil { @@ -36448,8 +36121,6 @@ func (ec *executionContext) unmarshalInputUnpublishItemInput(ctx context.Context } switch k { case "itemIds": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemIds")) data, err := ec.unmarshalNID2ᚕgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐIDᚄ(ctx, v) if err != nil { @@ -36477,8 +36148,6 @@ func (ec *executionContext) unmarshalInputUpdateAssetInput(ctx context.Context, } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36486,8 +36155,6 @@ func (ec *executionContext) unmarshalInputUpdateAssetInput(ctx context.Context, } it.ID = data case "previewType": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("previewType")) data, err := ec.unmarshalOPreviewType2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐPreviewType(ctx, v) if err != nil { @@ -36515,8 +36182,6 @@ func (ec *executionContext) unmarshalInputUpdateCommentInput(ctx context.Context } switch k { case "threadId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("threadId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36524,8 +36189,6 @@ func (ec *executionContext) unmarshalInputUpdateCommentInput(ctx context.Context } it.ThreadID = data case "commentId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("commentId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36533,8 +36196,6 @@ func (ec *executionContext) unmarshalInputUpdateCommentInput(ctx context.Context } it.CommentID = data case "content": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -36562,8 +36223,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } switch k { case "modelId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36571,8 +36230,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.ModelID = data case "groupId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36580,8 +36237,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.GroupID = data case "fieldId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36589,8 +36244,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.FieldID = data case "title": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36598,8 +36251,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.Title = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36607,8 +36258,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.Description = data case "order": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("order")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -36616,8 +36265,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.Order = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -36625,8 +36272,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.Metadata = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36634,8 +36279,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.Key = data case "required": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("required")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -36643,8 +36286,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.Required = data case "unique": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("unique")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -36652,8 +36293,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.Unique = data case "multiple": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("multiple")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -36661,8 +36300,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.Multiple = data case "isTitle": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTitle")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -36670,8 +36307,6 @@ func (ec *executionContext) unmarshalInputUpdateFieldInput(ctx context.Context, } it.IsTitle = data case "typeProperty": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeProperty")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOSchemaFieldTypePropertyInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐSchemaFieldTypePropertyInput(ctx, v) @@ -36716,8 +36351,6 @@ func (ec *executionContext) unmarshalInputUpdateGroupInput(ctx context.Context, } switch k { case "groupId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36725,8 +36358,6 @@ func (ec *executionContext) unmarshalInputUpdateGroupInput(ctx context.Context, } it.GroupID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36734,8 +36365,6 @@ func (ec *executionContext) unmarshalInputUpdateGroupInput(ctx context.Context, } it.Name = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36743,8 +36372,6 @@ func (ec *executionContext) unmarshalInputUpdateGroupInput(ctx context.Context, } it.Description = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36772,8 +36399,6 @@ func (ec *executionContext) unmarshalInputUpdateIntegrationInput(ctx context.Con } switch k { case "integrationId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36781,8 +36406,6 @@ func (ec *executionContext) unmarshalInputUpdateIntegrationInput(ctx context.Con } it.IntegrationID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36790,8 +36413,6 @@ func (ec *executionContext) unmarshalInputUpdateIntegrationInput(ctx context.Con } it.Name = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36799,8 +36420,6 @@ func (ec *executionContext) unmarshalInputUpdateIntegrationInput(ctx context.Con } it.Description = data case "logoUrl": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoUrl")) data, err := ec.unmarshalOURL2ᚖnetᚋurlᚐURL(ctx, v) if err != nil { @@ -36828,8 +36447,6 @@ func (ec *executionContext) unmarshalInputUpdateIntegrationOfWorkspaceInput(ctx } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36837,8 +36454,6 @@ func (ec *executionContext) unmarshalInputUpdateIntegrationOfWorkspaceInput(ctx } it.WorkspaceID = data case "integrationId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36846,8 +36461,6 @@ func (ec *executionContext) unmarshalInputUpdateIntegrationOfWorkspaceInput(ctx } it.IntegrationID = data case "role": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) data, err := ec.unmarshalNRole2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRole(ctx, v) if err != nil { @@ -36875,8 +36488,6 @@ func (ec *executionContext) unmarshalInputUpdateItemInput(ctx context.Context, o } switch k { case "itemId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36884,8 +36495,6 @@ func (ec *executionContext) unmarshalInputUpdateItemInput(ctx context.Context, o } it.ItemID = data case "metadataId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadataId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36893,8 +36502,6 @@ func (ec *executionContext) unmarshalInputUpdateItemInput(ctx context.Context, o } it.MetadataID = data case "originalId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("originalId")) data, err := ec.unmarshalOID2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -36902,8 +36509,6 @@ func (ec *executionContext) unmarshalInputUpdateItemInput(ctx context.Context, o } it.OriginalID = data case "fields": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fields")) data, err := ec.unmarshalNItemFieldInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItemFieldInputᚄ(ctx, v) if err != nil { @@ -36911,8 +36516,6 @@ func (ec *executionContext) unmarshalInputUpdateItemInput(ctx context.Context, o } it.Fields = data case "version": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36940,8 +36543,6 @@ func (ec *executionContext) unmarshalInputUpdateMeInput(ctx context.Context, obj } switch k { case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36949,8 +36550,6 @@ func (ec *executionContext) unmarshalInputUpdateMeInput(ctx context.Context, obj } it.Name = data case "email": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36958,8 +36557,6 @@ func (ec *executionContext) unmarshalInputUpdateMeInput(ctx context.Context, obj } it.Email = data case "lang": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lang")) data, err := ec.unmarshalOLang2ᚖgolangᚗorgᚋxᚋtextᚋlanguageᚐTag(ctx, v) if err != nil { @@ -36967,8 +36564,6 @@ func (ec *executionContext) unmarshalInputUpdateMeInput(ctx context.Context, obj } it.Lang = data case "theme": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("theme")) data, err := ec.unmarshalOTheme2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐTheme(ctx, v) if err != nil { @@ -36976,8 +36571,6 @@ func (ec *executionContext) unmarshalInputUpdateMeInput(ctx context.Context, obj } it.Theme = data case "password": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -36985,8 +36578,6 @@ func (ec *executionContext) unmarshalInputUpdateMeInput(ctx context.Context, obj } it.Password = data case "passwordConfirmation": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("passwordConfirmation")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37014,8 +36605,6 @@ func (ec *executionContext) unmarshalInputUpdateModelInput(ctx context.Context, } switch k { case "modelId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37023,8 +36612,6 @@ func (ec *executionContext) unmarshalInputUpdateModelInput(ctx context.Context, } it.ModelID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37032,8 +36619,6 @@ func (ec *executionContext) unmarshalInputUpdateModelInput(ctx context.Context, } it.Name = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37041,8 +36626,6 @@ func (ec *executionContext) unmarshalInputUpdateModelInput(ctx context.Context, } it.Description = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37050,8 +36633,6 @@ func (ec *executionContext) unmarshalInputUpdateModelInput(ctx context.Context, } it.Key = data case "public": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("public")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -37079,8 +36660,6 @@ func (ec *executionContext) unmarshalInputUpdateModelsOrderInput(ctx context.Con } switch k { case "modelIds": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelIds")) data, err := ec.unmarshalNID2ᚕgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐIDᚄ(ctx, v) if err != nil { @@ -37108,8 +36687,6 @@ func (ec *executionContext) unmarshalInputUpdateProjectInput(ctx context.Context } switch k { case "projectId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("projectId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37117,8 +36694,6 @@ func (ec *executionContext) unmarshalInputUpdateProjectInput(ctx context.Context } it.ProjectID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37126,8 +36701,6 @@ func (ec *executionContext) unmarshalInputUpdateProjectInput(ctx context.Context } it.Name = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37135,8 +36708,6 @@ func (ec *executionContext) unmarshalInputUpdateProjectInput(ctx context.Context } it.Description = data case "alias": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("alias")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37144,8 +36715,6 @@ func (ec *executionContext) unmarshalInputUpdateProjectInput(ctx context.Context } it.Alias = data case "publication": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("publication")) data, err := ec.unmarshalOUpdateProjectPublicationInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐUpdateProjectPublicationInput(ctx, v) if err != nil { @@ -37153,8 +36722,6 @@ func (ec *executionContext) unmarshalInputUpdateProjectInput(ctx context.Context } it.Publication = data case "requestRoles": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestRoles")) data, err := ec.unmarshalORole2ᚕgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRoleᚄ(ctx, v) if err != nil { @@ -37182,8 +36749,6 @@ func (ec *executionContext) unmarshalInputUpdateProjectPublicationInput(ctx cont } switch k { case "scope": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scope")) data, err := ec.unmarshalOProjectPublicationScope2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐProjectPublicationScope(ctx, v) if err != nil { @@ -37191,8 +36756,6 @@ func (ec *executionContext) unmarshalInputUpdateProjectPublicationInput(ctx cont } it.Scope = data case "assetPublic": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetPublic")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37220,8 +36783,6 @@ func (ec *executionContext) unmarshalInputUpdateRequestInput(ctx context.Context } switch k { case "requestId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37229,8 +36790,6 @@ func (ec *executionContext) unmarshalInputUpdateRequestInput(ctx context.Context } it.RequestID = data case "title": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37238,8 +36797,6 @@ func (ec *executionContext) unmarshalInputUpdateRequestInput(ctx context.Context } it.Title = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37247,8 +36804,6 @@ func (ec *executionContext) unmarshalInputUpdateRequestInput(ctx context.Context } it.Description = data case "state": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) data, err := ec.unmarshalORequestState2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRequestState(ctx, v) if err != nil { @@ -37256,8 +36811,6 @@ func (ec *executionContext) unmarshalInputUpdateRequestInput(ctx context.Context } it.State = data case "reviewersId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reviewersId")) data, err := ec.unmarshalOID2ᚕgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐIDᚄ(ctx, v) if err != nil { @@ -37265,8 +36818,6 @@ func (ec *executionContext) unmarshalInputUpdateRequestInput(ctx context.Context } it.ReviewersID = data case "items": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("items")) data, err := ec.unmarshalORequestItemInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRequestItemInputᚄ(ctx, v) if err != nil { @@ -37294,8 +36845,6 @@ func (ec *executionContext) unmarshalInputUpdateUserOfWorkspaceInput(ctx context } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37303,8 +36852,6 @@ func (ec *executionContext) unmarshalInputUpdateUserOfWorkspaceInput(ctx context } it.WorkspaceID = data case "userId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37312,8 +36859,6 @@ func (ec *executionContext) unmarshalInputUpdateUserOfWorkspaceInput(ctx context } it.UserID = data case "role": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) data, err := ec.unmarshalNRole2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐRole(ctx, v) if err != nil { @@ -37341,8 +36886,6 @@ func (ec *executionContext) unmarshalInputUpdateViewInput(ctx context.Context, o } switch k { case "viewId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("viewId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37350,8 +36893,6 @@ func (ec *executionContext) unmarshalInputUpdateViewInput(ctx context.Context, o } it.ViewID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37359,8 +36900,6 @@ func (ec *executionContext) unmarshalInputUpdateViewInput(ctx context.Context, o } it.Name = data case "sort": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) data, err := ec.unmarshalOItemSortInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItemSortInput(ctx, v) if err != nil { @@ -37368,8 +36907,6 @@ func (ec *executionContext) unmarshalInputUpdateViewInput(ctx context.Context, o } it.Sort = data case "filter": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOConditionInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐConditionInput(ctx, v) @@ -37394,8 +36931,6 @@ func (ec *executionContext) unmarshalInputUpdateViewInput(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "columns": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("columns")) data, err := ec.unmarshalOColumnSelectionInput2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐColumnSelectionInputᚄ(ctx, v) if err != nil { @@ -37423,8 +36958,6 @@ func (ec *executionContext) unmarshalInputUpdateWebhookInput(ctx context.Context } switch k { case "integrationId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37432,8 +36965,6 @@ func (ec *executionContext) unmarshalInputUpdateWebhookInput(ctx context.Context } it.IntegrationID = data case "webhookId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37441,8 +36972,6 @@ func (ec *executionContext) unmarshalInputUpdateWebhookInput(ctx context.Context } it.WebhookID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37450,8 +36979,6 @@ func (ec *executionContext) unmarshalInputUpdateWebhookInput(ctx context.Context } it.Name = data case "url": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) data, err := ec.unmarshalOURL2ᚖnetᚋurlᚐURL(ctx, v) if err != nil { @@ -37459,8 +36986,6 @@ func (ec *executionContext) unmarshalInputUpdateWebhookInput(ctx context.Context } it.URL = data case "active": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37468,8 +36993,6 @@ func (ec *executionContext) unmarshalInputUpdateWebhookInput(ctx context.Context } it.Active = data case "trigger": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trigger")) data, err := ec.unmarshalOWebhookTriggerInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐWebhookTriggerInput(ctx, v) if err != nil { @@ -37477,8 +37000,6 @@ func (ec *executionContext) unmarshalInputUpdateWebhookInput(ctx context.Context } it.Trigger = data case "secret": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secret")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37506,8 +37027,6 @@ func (ec *executionContext) unmarshalInputUpdateWorkspaceInput(ctx context.Conte } switch k { case "workspaceId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workspaceId")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37515,8 +37034,6 @@ func (ec *executionContext) unmarshalInputUpdateWorkspaceInput(ctx context.Conte } it.WorkspaceID = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37544,8 +37061,6 @@ func (ec *executionContext) unmarshalInputUpdateWorkspaceSettingsInput(ctx conte } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalNID2githubᚗcomᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐID(ctx, v) if err != nil { @@ -37553,8 +37068,6 @@ func (ec *executionContext) unmarshalInputUpdateWorkspaceSettingsInput(ctx conte } it.ID = data case "tiles": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tiles")) data, err := ec.unmarshalOResourcesListInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐResourcesListInput(ctx, v) if err != nil { @@ -37562,8 +37075,6 @@ func (ec *executionContext) unmarshalInputUpdateWorkspaceSettingsInput(ctx conte } it.Tiles = data case "terrains": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("terrains")) data, err := ec.unmarshalOResourcesListInput2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐResourcesListInput(ctx, v) if err != nil { @@ -37591,8 +37102,6 @@ func (ec *executionContext) unmarshalInputUrlResourcePropsInput(ctx context.Cont } switch k { case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37600,8 +37109,6 @@ func (ec *executionContext) unmarshalInputUrlResourcePropsInput(ctx context.Cont } it.Name = data case "url": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37609,8 +37116,6 @@ func (ec *executionContext) unmarshalInputUrlResourcePropsInput(ctx context.Cont } it.URL = data case "image": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37638,8 +37143,6 @@ func (ec *executionContext) unmarshalInputWebhookTriggerInput(ctx context.Contex } switch k { case "onItemCreate": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onItemCreate")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37647,8 +37150,6 @@ func (ec *executionContext) unmarshalInputWebhookTriggerInput(ctx context.Contex } it.OnItemCreate = data case "onItemUpdate": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onItemUpdate")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37656,8 +37157,6 @@ func (ec *executionContext) unmarshalInputWebhookTriggerInput(ctx context.Contex } it.OnItemUpdate = data case "onItemDelete": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onItemDelete")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37665,8 +37164,6 @@ func (ec *executionContext) unmarshalInputWebhookTriggerInput(ctx context.Contex } it.OnItemDelete = data case "onItemPublish": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onItemPublish")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37674,8 +37171,6 @@ func (ec *executionContext) unmarshalInputWebhookTriggerInput(ctx context.Contex } it.OnItemPublish = data case "onItemUnPublish": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onItemUnPublish")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37683,8 +37178,6 @@ func (ec *executionContext) unmarshalInputWebhookTriggerInput(ctx context.Contex } it.OnItemUnPublish = data case "onAssetUpload": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onAssetUpload")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37692,8 +37185,6 @@ func (ec *executionContext) unmarshalInputWebhookTriggerInput(ctx context.Contex } it.OnAssetUpload = data case "onAssetDecompress": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onAssetDecompress")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37701,8 +37192,6 @@ func (ec *executionContext) unmarshalInputWebhookTriggerInput(ctx context.Contex } it.OnAssetDecompress = data case "onAssetDelete": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("onAssetDelete")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -40382,6 +39871,39 @@ func (ec *executionContext) _Item(ctx context.Context, sel ast.SelectionSet, obj continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "referencedItems": + field := field + + 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)) + } + }() + res = ec._Item_referencedItems(ctx, field, 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(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "createdAt": out.Values[i] = ec._Item_createdAt(ctx, field, obj) @@ -49173,6 +48695,53 @@ func (ec *executionContext) marshalOIntegrationPayload2ᚖgithub.comᚋreearth return ec._IntegrationPayload(ctx, sel, v) } +func (ec *executionContext) marshalOItem2ᚕᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*gqlmodel.Item) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNItem2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItem(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + func (ec *executionContext) marshalOItem2ᚖgithub.comᚋreearthᚋreearthᚑcmsᚋserverᚋinternalᚋadapterᚋgqlᚋgqlmodelᚐItem(ctx context.Context, sel ast.SelectionSet, v *gqlmodel.Item) graphql.Marshaler { if v == nil { return graphql.Null diff --git a/server/internal/adapter/gql/gqlmodel/models_gen.go b/server/internal/adapter/gql/gqlmodel/models_gen.go index 3d2782d298..a13263ad2b 100644 --- a/server/internal/adapter/gql/gqlmodel/models_gen.go +++ b/server/internal/adapter/gql/gqlmodel/models_gen.go @@ -533,6 +533,7 @@ type Item struct { Thread *Thread `json:"thread"` Fields []*ItemField `json:"fields"` Assets []*Asset `json:"assets"` + ReferencedItems []*Item `json:"referencedItems,omitempty"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` UpdatedBy Operator `json:"updatedBy,omitempty"` @@ -669,6 +670,9 @@ type MultipleFieldConditionInput struct { Value []interface{} `json:"value"` } +type Mutation struct { +} + type NullableFieldCondition struct { FieldID *FieldSelector `json:"fieldId"` Operator NullableOperator `json:"operator"` @@ -789,6 +793,9 @@ type PublishModelPayload struct { Status bool `json:"status"` } +type Query struct { +} + type RemoveIntegrationFromWorkspaceInput struct { WorkspaceID ID `json:"workspaceId"` IntegrationID ID `json:"integrationId"` diff --git a/server/internal/adapter/gql/resolver_item.go b/server/internal/adapter/gql/resolver_item.go index f69e838281..1cb58bdebe 100644 --- a/server/internal/adapter/gql/resolver_item.go +++ b/server/internal/adapter/gql/resolver_item.go @@ -61,8 +61,10 @@ func (i itemResolver) Assets(ctx context.Context, obj *gqlmodel.Item) ([]*gqlmod } if ss, ok := f.Value.([]any); ok { return lo.FilterMap(ss, func(i any, _ int) (gqlmodel.ID, bool) { - str, ok := i.(string) - return gqlmodel.ID(str), ok + if str, ok := i.(string); ok { + return gqlmodel.ID(str), ok + } + return "", false }) } return nil @@ -88,3 +90,29 @@ func (i itemResolver) Original(ctx context.Context, obj *gqlmodel.Item) (*gqlmod } return dataloaders(ctx).Item.Load(*obj.OriginalID) } + +func (i itemResolver) ReferencedItems(ctx context.Context, obj *gqlmodel.Item) ([]*gqlmodel.Item, error) { + refIds := lo.FlatMap(obj.Fields, func(f *gqlmodel.ItemField, _ int) []gqlmodel.ID { + if f.Type != gqlmodel.SchemaFieldTypeReference || f.Value == nil { + return nil + } + if s, ok := f.Value.(string); ok { + return []gqlmodel.ID{gqlmodel.ID(s)} + } + if ss, ok := f.Value.([]any); ok { + return lo.FilterMap(ss, func(i any, _ int) (gqlmodel.ID, bool) { + if str, ok := i.(string); ok { + return gqlmodel.ID(str), ok + } + return "", false + }) + } + return nil + }) + + refItems, err := dataloaders(ctx).Item.LoadAll(refIds) + if len(err) > 0 && err[0] != nil { + return nil, err[0] + } + return refItems, nil +} diff --git a/server/internal/usecase/interactor/item.go b/server/internal/usecase/interactor/item.go index 4c4d7d7df2..84bf4142e0 100644 --- a/server/internal/usecase/interactor/item.go +++ b/server/internal/usecase/interactor/item.go @@ -287,6 +287,11 @@ func (i Item) Create(ctx context.Context, param interfaces.CreateItemParam, oper return nil, err } + refItems, err := i.getReferencedItems(ctx, fields) + if err != nil { + return nil, err + } + if err := i.event(ctx, Event{ Project: prj, Workspace: s.Workspace(), @@ -297,7 +302,7 @@ func (i Item) Create(ctx context.Context, param interfaces.CreateItemParam, oper Model: m, Schema: s, GroupSchemas: groupSchemas, - ReferencedItems: i.getReferencedItems(ctx, fields), + ReferencedItems: refItems, }, Operator: operator.Operator(), }); err != nil { @@ -400,6 +405,10 @@ func (i Item) Update(ctx context.Context, param interfaces.UpdateItemParam, oper if err = i.handleReferenceFields(ctx, *s, itm.Value(), oldFields); err != nil { return nil, err } + refItems, err := i.getReferencedItems(ctx, fields) + if err != nil { + return nil, err + } if err := i.event(ctx, Event{ Project: prj, @@ -411,7 +420,7 @@ func (i Item) Update(ctx context.Context, param interfaces.UpdateItemParam, oper Model: m, Schema: s, GroupSchemas: groupSchemas, - ReferencedItems: i.getReferencedItems(ctx, fields), + ReferencedItems: refItems, Changes: item.CompareFields(itv.Fields(), oldFields), }, Operator: operator.Operator(), @@ -506,6 +515,10 @@ func (i Item) Unpublish(ctx context.Context, itemIDs id.ItemIDList, operator *us } for _, itm := range items { + refItems, err := i.getReferencedItems(ctx, itm.Value().Fields()) + if err != nil { + return nil, err + } if err := i.event(ctx, Event{ Project: prj, Workspace: prj.Workspace(), @@ -515,7 +528,7 @@ func (i Item) Unpublish(ctx context.Context, itemIDs id.ItemIDList, operator *us Item: itm.Value(), Model: m, Schema: sch, - ReferencedItems: i.getReferencedItems(ctx, itm.Value().Fields()), + ReferencedItems: refItems, }, Operator: operator.Operator(), }); err != nil { @@ -569,6 +582,11 @@ func (i Item) Publish(ctx context.Context, itemIDs id.ItemIDList, operator *usec } for _, itm := range items { + refItems, err := i.getReferencedItems(ctx, itm.Value().Fields()) + if err != nil { + return nil, err + } + if err := i.event(ctx, Event{ Project: prj, Workspace: prj.Workspace(), @@ -578,7 +596,7 @@ func (i Item) Publish(ctx context.Context, itemIDs id.ItemIDList, operator *usec Item: itm.Value(), Model: m, Schema: sch, - ReferencedItems: i.getReferencedItems(ctx, itm.Value().Fields()), + ReferencedItems: refItems, }, Operator: operator.Operator(), }); err != nil { @@ -823,8 +841,8 @@ func (i Item) event(ctx context.Context, e Event) error { return err } -func (i Item) getReferencedItems(ctx context.Context, fields []*item.Field) []item.Versioned { - var vil []item.Versioned +func (i Item) getReferencedItems(ctx context.Context, fields []*item.Field) ([]item.Versioned, error) { + var ids id.ItemIDList for _, f := range fields { if f.Type() != value.TypeReference { continue @@ -834,12 +852,8 @@ func (i Item) getReferencedItems(ctx context.Context, fields []*item.Field) []it if !ok { continue } - ii, err := i.repos.Item.FindByID(ctx, iid, nil) - if err != nil { - continue - } - vil = append(vil, ii) + ids = ids.Add(iid) } } - return vil + return i.repos.Item.FindByIDs(ctx, ids, nil) } diff --git a/server/schemas/item.graphql b/server/schemas/item.graphql index 002dfbb556..3b0c6a7795 100644 --- a/server/schemas/item.graphql +++ b/server/schemas/item.graphql @@ -19,6 +19,7 @@ type Item implements Node { thread: Thread! fields: [ItemField!]! assets: [Asset]! + referencedItems:[Item!] createdAt: DateTime! updatedAt: DateTime! updatedBy: Operator From da7776d49efa72e75c05eec2d38101551b691ead Mon Sep 17 00:00:00 2001 From: Nour Balaha Date: Wed, 7 Feb 2024 18:11:44 +0900 Subject: [PATCH 3/3] feat(web): implement referenced items resolver (#1059) * feat: implement referenced items resolver --- web/src/components/molecules/Content/types.ts | 1 + .../Project/Content/ContentDetails/hooks.ts | 23 +-- .../Project/Content/ContentList/hooks.ts | 34 +--- .../organisms/Project/Content/utils.ts | 10 + web/src/gql/graphql-client-api.tsx | 176 ++++++++++++------ web/src/gql/graphql.schema.json | 20 ++ web/src/gql/queries/item.ts | 127 +++++++++++-- 7 files changed, 272 insertions(+), 119 deletions(-) diff --git a/web/src/components/molecules/Content/types.ts b/web/src/components/molecules/Content/types.ts index 412dc10f96..ee19cc46af 100644 --- a/web/src/components/molecules/Content/types.ts +++ b/web/src/components/molecules/Content/types.ts @@ -20,6 +20,7 @@ export type Item = { createdAt: Date; updatedAt: Date; status: ItemStatus; + referencedItems?: FormItem[]; fields: ItemField[] | undefined | null; metadata: { id?: string; diff --git a/web/src/components/organisms/Project/Content/ContentDetails/hooks.ts b/web/src/components/organisms/Project/Content/ContentDetails/hooks.ts index ad159f50a6..215891db6b 100644 --- a/web/src/components/organisms/Project/Content/ContentDetails/hooks.ts +++ b/web/src/components/organisms/Project/Content/ContentDetails/hooks.ts @@ -33,7 +33,6 @@ import { useUpdateItemMutation, useUpdateRequestMutation, useSearchItemQuery, - useGetItemsByIdsQuery, useGetGroupsQuery, FieldType as GQLFieldType, StringOperator, @@ -188,27 +187,9 @@ export default () => { [data?.node], ); - const formReferenceItemsIds = useMemo( - () => - (currentItem?.fields - ?.filter( - field => field.type === "Reference" && field.value && typeof field.value === "string", - ) - .map(field => field.value) as string[]) ?? [], - [currentItem?.fields], - ); - - const { data: gqlFormItemsData } = useGetItemsByIdsQuery({ - fetchPolicy: "no-cache", - variables: { - id: formReferenceItemsIds, - }, - skip: formReferenceItemsIds.length === 0, - }); - const formItemsData: FormItem[] | undefined = useMemo( - () => gqlFormItemsData?.nodes as FormItem[], - [gqlFormItemsData?.nodes], + () => currentItem?.referencedItems as FormItem[], + [currentItem?.referencedItems], ); const { data: groupData } = useGetGroupsQuery({ diff --git a/web/src/components/organisms/Project/Content/ContentList/hooks.ts b/web/src/components/organisms/Project/Content/ContentList/hooks.ts index 1bab3d6f21..2fb957df0e 100644 --- a/web/src/components/organisms/Project/Content/ContentList/hooks.ts +++ b/web/src/components/organisms/Project/Content/ContentList/hooks.ts @@ -23,7 +23,6 @@ import { Comment as GQLComment, useSearchItemQuery, Asset as GQLAsset, - useGetItemsByIdsQuery, useUpdateItemMutation, useCreateItemMutation, SchemaFieldType, @@ -113,34 +112,15 @@ export default () => { selectedRowKeys: [], }); - const referencedItemsIds = useMemo( - () => - data?.searchItem?.nodes - ? data.searchItem.nodes - .filter(item => item?.fields && item?.fields.length > 0) - .flatMap( - item => - item?.fields - .filter(field => field.type === "Reference" && field.value) - .map(field => field.value), - ) - : [], - [data], - ); - - const { data: referencedItems } = useGetItemsByIdsQuery({ - fetchPolicy: "no-cache", - variables: { - id: referencedItemsIds, - }, - skip: !referencedItemsIds.length, - }); - // eslint-disable-next-line react-hooks/exhaustive-deps const referencedItemsMap = new Map(); - (referencedItems?.nodes ?? []).forEach(item => { - if (item && item.__typename === "Item") { - referencedItemsMap.set(item.id, item); + data?.searchItem.nodes?.forEach(item => { + if (item?.referencedItems && item.referencedItems.length > 0) { + item.referencedItems.forEach(reference => { + if (!referencedItemsMap.has(reference.id)) { + referencedItemsMap.set(reference.id, reference); + } + }); } }); diff --git a/web/src/components/organisms/Project/Content/utils.ts b/web/src/components/organisms/Project/Content/utils.ts index 62ceadf023..647eee0835 100644 --- a/web/src/components/organisms/Project/Content/utils.ts +++ b/web/src/components/organisms/Project/Content/utils.ts @@ -16,6 +16,16 @@ export const convertItem = (GQLItem: GQLItem | undefined): Item | undefined => { }) as ItemField, ), status: GQLItem.status, + referencedItems: + GQLItem.referencedItems?.map(item => ({ + id: item.id, + title: item.title ?? "", + schemaId: item.schemaId, + createdBy: item.createdBy?.name ?? "", + status: item.status, + createdAt: item.createdAt, + updatedAt: item.updatedAt, + })) ?? [], createdBy: GQLItem.createdBy?.name, updatedBy: GQLItem.updatedBy?.name, createdAt: GQLItem.createdAt, diff --git a/web/src/gql/graphql-client-api.tsx b/web/src/gql/graphql-client-api.tsx index 4857954331..7b1ebaaec8 100644 --- a/web/src/gql/graphql-client-api.tsx +++ b/web/src/gql/graphql-client-api.tsx @@ -575,6 +575,7 @@ export type Item = Node & { originalId?: Maybe; project: Project; projectId: Scalars['ID']; + referencedItems?: Maybe>; schema: Schema; schemaId: Scalars['ID']; status: ItemStatus; @@ -2394,14 +2395,14 @@ export type GetItemsQueryVariables = Exact<{ }>; -export type GetItemsQuery = { __typename?: 'Query', searchItem: { __typename?: 'ItemConnection', totalCount: number, nodes: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, createdAt: Date, updatedAt: Date, status: ItemStatus, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, itemGroupId?: string | null, type: SchemaFieldType, value?: any | null }>, thread: { __typename?: 'Thread', id: string, workspaceId: string, comments: Array<{ __typename?: 'Comment', id: string, authorId: string, content: string, createdAt: Date, author?: { __typename?: 'Integration', id: string, name: string } | { __typename?: 'User', id: string, name: string, email: string } | null }> }, metadata?: { __typename?: 'Item', id: string, version: string, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, itemGroupId?: string | null, type: SchemaFieldType, value?: any | null }> } | null } | null> } }; +export type GetItemsQuery = { __typename?: 'Query', searchItem: { __typename?: 'ItemConnection', totalCount: number, nodes: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, createdAt: Date, updatedAt: Date, status: ItemStatus, referencedItems?: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, status: ItemStatus, createdAt: Date, updatedAt: Date, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null }> | null, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, itemGroupId?: string | null, type: SchemaFieldType, value?: any | null }>, thread: { __typename?: 'Thread', id: string, workspaceId: string, comments: Array<{ __typename?: 'Comment', id: string, authorId: string, content: string, createdAt: Date, author?: { __typename?: 'Integration', id: string, name: string } | { __typename?: 'User', id: string, name: string, email: string } | null }> }, metadata?: { __typename?: 'Item', id: string, version: string, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, itemGroupId?: string | null, type: SchemaFieldType, value?: any | null }> } | null } | null> } }; export type GetItemQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetItemQuery = { __typename?: 'Query', node?: { __typename?: 'Asset' } | { __typename?: 'Group' } | { __typename?: 'Integration' } | { __typename?: 'Item', id: string, title?: string | null, schemaId: string, createdAt: Date, updatedAt: Date, status: ItemStatus, version: string, assets: Array<{ __typename?: 'Asset', id: string, url: string } | null>, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null, updatedBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, itemGroupId?: string | null, type: SchemaFieldType, value?: any | null }>, metadata?: { __typename?: 'Item', id: string, version: string, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, type: SchemaFieldType, value?: any | null }> } | null, thread: { __typename?: 'Thread', id: string, workspaceId: string, comments: Array<{ __typename?: 'Comment', id: string, authorId: string, content: string, createdAt: Date, author?: { __typename?: 'Integration', id: string, name: string } | { __typename?: 'User', id: string, name: string, email: string } | null }> } } | { __typename?: 'Model' } | { __typename?: 'Project' } | { __typename?: 'Request' } | { __typename?: 'Schema' } | { __typename?: 'User' } | { __typename?: 'View' } | { __typename?: 'Workspace' } | { __typename?: 'WorkspaceSettings' } | null }; +export type GetItemQuery = { __typename?: 'Query', node?: { __typename?: 'Asset' } | { __typename?: 'Group' } | { __typename?: 'Integration' } | { __typename?: 'Item', id: string, title?: string | null, schemaId: string, createdAt: Date, updatedAt: Date, status: ItemStatus, version: string, referencedItems?: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, status: ItemStatus, createdAt: Date, updatedAt: Date, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null }> | null, assets: Array<{ __typename?: 'Asset', id: string, url: string } | null>, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null, updatedBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, itemGroupId?: string | null, type: SchemaFieldType, value?: any | null }>, metadata?: { __typename?: 'Item', id: string, version: string, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, type: SchemaFieldType, value?: any | null }> } | null, thread: { __typename?: 'Thread', id: string, workspaceId: string, comments: Array<{ __typename?: 'Comment', id: string, authorId: string, content: string, createdAt: Date, author?: { __typename?: 'Integration', id: string, name: string } | { __typename?: 'User', id: string, name: string, email: string } | null }> } } | { __typename?: 'Model' } | { __typename?: 'Project' } | { __typename?: 'Request' } | { __typename?: 'Schema' } | { __typename?: 'User' } | { __typename?: 'View' } | { __typename?: 'Workspace' } | { __typename?: 'WorkspaceSettings' } | null }; export type IsItemReferencedQueryVariables = Exact<{ itemId: Scalars['ID']; @@ -2411,19 +2412,12 @@ export type IsItemReferencedQueryVariables = Exact<{ export type IsItemReferencedQuery = { __typename?: 'Query', isItemReferenced: boolean }; -export type GetItemsByIdsQueryVariables = Exact<{ - id: Array | Scalars['ID']; -}>; - - -export type GetItemsByIdsQuery = { __typename?: 'Query', nodes: Array<{ __typename?: 'Asset' } | { __typename?: 'Group' } | { __typename?: 'Integration' } | { __typename?: 'Item', id: string, title?: string | null, schemaId: string, createdAt: Date, updatedAt: Date, status: ItemStatus } | { __typename?: 'Model' } | { __typename?: 'Project' } | { __typename?: 'Request' } | { __typename?: 'Schema' } | { __typename?: 'User' } | { __typename?: 'View' } | { __typename?: 'Workspace' } | { __typename?: 'WorkspaceSettings' } | null> }; - export type SearchItemQueryVariables = Exact<{ searchItemInput: SearchItemInput; }>; -export type SearchItemQuery = { __typename?: 'Query', searchItem: { __typename?: 'ItemConnection', totalCount: number, nodes: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, createdAt: Date, updatedAt: Date, status: ItemStatus, version: string, assets: Array<{ __typename?: 'Asset', id: string, url: string } | null>, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, itemGroupId?: string | null, type: SchemaFieldType, value?: any | null }>, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null, updatedBy?: { __typename: 'Integration', name: string } | { __typename: 'User', name: string } | null, metadata?: { __typename?: 'Item', id: string, version: string, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, type: SchemaFieldType, value?: any | null }> } | null, thread: { __typename?: 'Thread', id: string, workspaceId: string, comments: Array<{ __typename?: 'Comment', id: string, authorId: string, content: string, createdAt: Date, author?: { __typename?: 'Integration', id: string, name: string } | { __typename?: 'User', id: string, name: string, email: string } | null }> } } | null>, pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null, endCursor?: string | null } } }; +export type SearchItemQuery = { __typename?: 'Query', searchItem: { __typename?: 'ItemConnection', totalCount: number, nodes: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, createdAt: Date, updatedAt: Date, status: ItemStatus, version: string, referencedItems?: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, status: ItemStatus, createdAt: Date, updatedAt: Date, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null }> | null, assets: Array<{ __typename?: 'Asset', id: string, url: string } | null>, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, itemGroupId?: string | null, type: SchemaFieldType, value?: any | null }>, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null, updatedBy?: { __typename: 'Integration', name: string } | { __typename: 'User', name: string } | null, metadata?: { __typename?: 'Item', id: string, version: string, fields: Array<{ __typename?: 'ItemField', schemaFieldId: string, type: SchemaFieldType, value?: any | null }> } | null, thread: { __typename?: 'Thread', id: string, workspaceId: string, comments: Array<{ __typename?: 'Comment', id: string, authorId: string, content: string, createdAt: Date, author?: { __typename?: 'Integration', id: string, name: string } | { __typename?: 'User', id: string, name: string, email: string } | null }> } } | null>, pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null, endCursor?: string | null } } }; export type CreateItemMutationVariables = Exact<{ modelId: Scalars['ID']; @@ -2433,7 +2427,7 @@ export type CreateItemMutationVariables = Exact<{ }>; -export type CreateItemMutation = { __typename?: 'Mutation', createItem?: { __typename?: 'ItemPayload', item: { __typename?: 'Item', id: string, schemaId: string, fields: Array<{ __typename?: 'ItemField', value?: any | null, type: SchemaFieldType, schemaFieldId: string, itemGroupId?: string | null }> } } | null }; +export type CreateItemMutation = { __typename?: 'Mutation', createItem?: { __typename?: 'ItemPayload', item: { __typename?: 'Item', id: string, schemaId: string, fields: Array<{ __typename?: 'ItemField', value?: any | null, type: SchemaFieldType, schemaFieldId: string, itemGroupId?: string | null }>, referencedItems?: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, status: ItemStatus, createdAt: Date, updatedAt: Date, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null }> | null } } | null }; export type DeleteItemMutationVariables = Exact<{ itemId: Scalars['ID']; @@ -2450,21 +2444,21 @@ export type UpdateItemMutationVariables = Exact<{ }>; -export type UpdateItemMutation = { __typename?: 'Mutation', updateItem?: { __typename?: 'ItemPayload', item: { __typename?: 'Item', id: string, schemaId: string, fields: Array<{ __typename?: 'ItemField', value?: any | null, type: SchemaFieldType, schemaFieldId: string, itemGroupId?: string | null }> } } | null }; +export type UpdateItemMutation = { __typename?: 'Mutation', updateItem?: { __typename?: 'ItemPayload', item: { __typename?: 'Item', id: string, schemaId: string, fields: Array<{ __typename?: 'ItemField', value?: any | null, type: SchemaFieldType, schemaFieldId: string, itemGroupId?: string | null }>, referencedItems?: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, status: ItemStatus, createdAt: Date, updatedAt: Date, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null }> | null } } | null }; export type UnpublishItemMutationVariables = Exact<{ itemIds: Array | Scalars['ID']; }>; -export type UnpublishItemMutation = { __typename?: 'Mutation', unpublishItem?: { __typename?: 'UnpublishItemPayload', items: Array<{ __typename?: 'Item', id: string }> } | null }; +export type UnpublishItemMutation = { __typename?: 'Mutation', unpublishItem?: { __typename?: 'UnpublishItemPayload', items: Array<{ __typename?: 'Item', id: string, referencedItems?: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, status: ItemStatus, createdAt: Date, updatedAt: Date, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null }> | null }> } | null }; export type PublishItemMutationVariables = Exact<{ itemIds: Array | Scalars['ID']; }>; -export type PublishItemMutation = { __typename?: 'Mutation', publishItem?: { __typename?: 'PublishItemPayload', items: Array<{ __typename?: 'Item', id: string }> } | null }; +export type PublishItemMutation = { __typename?: 'Mutation', publishItem?: { __typename?: 'PublishItemPayload', items: Array<{ __typename?: 'Item', id: string, referencedItems?: Array<{ __typename?: 'Item', id: string, title?: string | null, schemaId: string, status: ItemStatus, createdAt: Date, updatedAt: Date, createdBy?: { __typename?: 'Integration', name: string } | { __typename?: 'User', name: string } | null }> | null }> } | null }; export type GetModelsQueryVariables = Exact<{ projectId: Scalars['ID']; @@ -4323,6 +4317,22 @@ export const GetItemsDocument = gql` createdAt updatedAt status + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } createdBy { ... on Integration { name @@ -4394,6 +4404,22 @@ export const GetItemDocument = gql` createdAt updatedAt status + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } version assets { id @@ -4499,48 +4525,6 @@ export function useIsItemReferencedLazyQuery(baseOptions?: Apollo.LazyQueryHookO export type IsItemReferencedQueryHookResult = ReturnType; export type IsItemReferencedLazyQueryHookResult = ReturnType; export type IsItemReferencedQueryResult = Apollo.QueryResult; -export const GetItemsByIdsDocument = gql` - query GetItemsByIds($id: [ID!]!) { - nodes(id: $id, type: Item) { - ... on Item { - id - title - schemaId - createdAt - updatedAt - status - } - } -} - `; - -/** - * __useGetItemsByIdsQuery__ - * - * To run a query within a React component, call `useGetItemsByIdsQuery` and pass it any options that fit your needs. - * When your component renders, `useGetItemsByIdsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetItemsByIdsQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useGetItemsByIdsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetItemsByIdsDocument, options); - } -export function useGetItemsByIdsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetItemsByIdsDocument, options); - } -export type GetItemsByIdsQueryHookResult = ReturnType; -export type GetItemsByIdsLazyQueryHookResult = ReturnType; -export type GetItemsByIdsQueryResult = Apollo.QueryResult; export const SearchItemDocument = gql` query SearchItem($searchItemInput: SearchItemInput!) { searchItem(input: $searchItemInput) { @@ -4551,6 +4535,22 @@ export const SearchItemDocument = gql` createdAt updatedAt status + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } version assets { id @@ -4645,6 +4645,22 @@ export const CreateItemDocument = gql` schemaFieldId itemGroupId } + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } } } } @@ -4725,6 +4741,22 @@ export const UpdateItemDocument = gql` schemaFieldId itemGroupId } + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } } } } @@ -4763,6 +4795,22 @@ export const UnpublishItemDocument = gql` unpublishItem(input: {itemIds: $itemIds}) { items { id + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } } } } @@ -4798,6 +4846,22 @@ export const PublishItemDocument = gql` publishItem(input: {itemIds: $itemIds}) { items { id + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } } } } diff --git a/web/src/gql/graphql.schema.json b/web/src/gql/graphql.schema.json index 9d7e75367c..adf5e87e84 100644 --- a/web/src/gql/graphql.schema.json +++ b/web/src/gql/graphql.schema.json @@ -4915,6 +4915,26 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "referencedItems", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Item", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "schema", "description": null, diff --git a/web/src/gql/queries/item.ts b/web/src/gql/queries/item.ts index 8c71938bdd..b4a99f47b2 100644 --- a/web/src/gql/queries/item.ts +++ b/web/src/gql/queries/item.ts @@ -12,6 +12,22 @@ export const GET_ITEMS = gql` createdAt updatedAt status + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } createdBy { ... on Integration { name @@ -57,6 +73,22 @@ export const GET_ITEM_NODE = gql` createdAt updatedAt status + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } version assets { id @@ -107,21 +139,6 @@ export const IS_ITEM_REFERENCED = gql` } `; -export const GET_ITEMS_BY_IDS = gql` - query GetItemsByIds($id: [ID!]!) { - nodes(id: $id, type: Item) { - ... on Item { - id - title - schemaId - createdAt - updatedAt - status - } - } - } -`; - export const SEARCH_ITEM = gql` query SearchItem($searchItemInput: SearchItemInput!) { searchItem(input: $searchItemInput) { @@ -132,6 +149,22 @@ export const SEARCH_ITEM = gql` createdAt updatedAt status + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } version assets { id @@ -201,6 +234,22 @@ export const CREATE_ITEM = gql` schemaFieldId itemGroupId } + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } } } } @@ -233,6 +282,22 @@ export const UPDATE_ITEM = gql` schemaFieldId itemGroupId } + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } } } } @@ -243,6 +308,22 @@ export const UNPUBLISH_ITEM = gql` unpublishItem(input: { itemIds: $itemIds }) { items { id + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } } } } @@ -253,6 +334,22 @@ export const PUBLISH_ITEM = gql` publishItem(input: { itemIds: $itemIds }) { items { id + referencedItems { + id + title + schemaId + createdBy { + ... on Integration { + name + } + ... on User { + name + } + } + status + createdAt + updatedAt + } } } }