Skip to content

Commit

Permalink
auto relationship forms
Browse files Browse the repository at this point in the history
  • Loading branch information
infiton committed Nov 6, 2024
1 parent 798fe22 commit bddb8d0
Show file tree
Hide file tree
Showing 60 changed files with 2,657 additions and 984 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@gadget-client/app-with-no-user-model": "^1.10.0",
"@gadget-client/bulk-actions-test": "^1.113.0",
"@gadget-client/full-auth": "^1.9.0",
"@gadget-client/js-clients-test": "1.499.0-development.2005",
"@gadget-client/js-clients-test": "1.507.0",
"@gadget-client/kitchen-sink": "1.5.0-development.200",
"@gadget-client/related-products-example": "^1.865.0",
"@gadget-client/zxcv-deeply-nested": "^1.212.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@
"encoding": "base64",
"mimeType": "application/json; charset=utf-8",
"size": 384,
"text": "[\"H4sIAAAAAAAAA4SQzW7CMBCEX6XasyG2IT/4hlqp6qGHVpx6QZa9CREmCfZagqK8e5WEUpULx13NzLezF7CaNKgLGI+a8CPW38MUojEYAijyERmg960PoJroHIPjVbTd0rnDRh8QFIxOBrUFBSIVEtg10q4JFEgulzO+msnlRhRKCiXSOS/kFzAgPA0KwkBPxykldvaxs2f/L3i+NfjEEB0NgkrbCukdp467s/Wa6rYJf40nyIsm3NQHvGPf1ves1zF33XWuNmPiiOh7BngibMIvw7VVAAU7oi6oJKkqmru62SfDPhEpz3iRmFWGpV2YwqLURiyMzIu85DYvC4tZxocXeW3wbXjtQ3Hf/wAAAP//AwDsVySX1AEAAA==\"]"
"text": "[\"H4sIAAAAAAAAA4SQzW7CMBCEX6XasyF24vzUN9RKVQ89tOLUC7LsJVg1SbA3EhTl3asklKpcOO5qZr6dPYPVpEGdwQTUhO+9+x6n2BuDMYKi0CMDDKENEVTTe8/gcBFtNnTqsNF7BAWTk4GzoEDkQgK7RNoVgYKUp3IhxILnayGVSJWQy7IqPoEB4XFUEEZ6OMwpfWfvOwf2/4Kna4MPjL2nUVBrWyO94dxxd7JBk2ub+Nd4hjxrwrXb4w37ur5lvUy5q67zzkyJE2IYGOCRsIm/DN/WERTsiLqokqSuaeld85WM+0TkvOBVkkmzFWWaZkXJs9JksuBFYapHXtnUyK0YXxS0wdfxtXfFw/ADAAD//wMAtVuwH9QBAAA=\"]"
},
"cookies": [],
"headers": [
{
"name": "date",
"value": "Tue, 24 Sep 2024 18:21:15 GMT"
"value": "Tue, 05 Nov 2024 14:12:14 GMT"
},
{
"name": "content-type",
Expand All @@ -242,7 +242,7 @@
},
{
"name": "connection",
"value": "close"
"value": "keep-alive"
},
{
"name": "vary",
Expand All @@ -262,11 +262,11 @@
},
{
"name": "x-request-id",
"value": "620a828194efb1deac0a77ce0dddd1d8"
"value": "72590a63709645a9f5a0ba10ebae9603"
},
{
"name": "x-trace-id",
"value": "c96efd3c8de2ac13c2787f0d7f8de660"
"value": "34cf1722367037c346066c8908d2c4f1"
},
{
"name": "strict-transport-security",
Expand All @@ -286,29 +286,33 @@
},
{
"name": "cf-ray",
"value": "8c84cb087e79a1fe-YYZ"
"value": "8ddd7001495d61e3-YVR"
},
{
"name": "content-encoding",
"value": "gzip"
},
{
"name": "alt-svc",
"value": "h3=\":443\"; ma=86400"
}
],
"headersSize": 582,
"headersSize": 617,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-09-24T18:21:14.898Z",
"time": 229,
"startedDateTime": "2024-11-05T14:12:13.516Z",
"time": 1399,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 229
"wait": 1399
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@
}
},
{
"_id": "bfe6b6207171d4656fa045c5fe154cc2",
"_id": "d95d40ddd3613a06501477df512347d1",
"_order": 0,
"cache": {},
"request": {
"bodySize": 847,
"bodySize": 855,
"cookies": [],
"headers": [
{
Expand All @@ -185,7 +185,7 @@
{
"_fromType": "array",
"name": "content-length",
"value": "847"
"value": "855"
},
{
"_fromType": "array",
Expand All @@ -208,7 +208,7 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"operationName\":\"createQuiz\",\"query\":\"mutation createQuiz($quiz: CreateQuizInput) {\\n createQuiz(quiz: $quiz) {\\n success\\n errors {\\n message\\n code\\n ... on InvalidRecordError {\\n model {\\n apiIdentifier\\n __typename\\n }\\n validationErrors {\\n message\\n apiIdentifier\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n quiz {\\n __typename\\n id\\n createdAt\\n text\\n updatedAt\\n }\\n __typename\\n }\\n gadgetMeta {\\n hydrations(modelName: \\n\\\"quiz\\\")\\n __typename\\n }\\n}\",\"variables\":{\"quiz\":{\"questions\":[{\"create\":{\"answers\":[{\"create\":{\"recommendedProduct\":{\"create\":{\"productSuggestion\":{\"_link\":\"123\"}}},\"text\":\"test answer - 1\"}}],\"text\":\"test question - 1\"}}],\"text\":\"test quiz\"}}}"
"text": "{\"operationName\":\"createQuiz\",\"query\":\"mutation createQuiz($quiz: CreateQuizInput) {\\n createQuiz(quiz: $quiz) {\\n success\\n errors {\\n message\\n code\\n ... on InvalidRecordError {\\n model {\\n apiIdentifier\\n __typename\\n }\\n validationErrors {\\n message\\n apiIdentifier\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n quiz {\\n __typename\\n id\\n createdAt\\n text\\n updatedAt\\n }\\n __typename\\n }\\n gadgetMeta {\\n hydrations(modelName: \\n\\\"quiz\\\")\\n __typename\\n }\\n}\",\"variables\":{\"quiz\":{\"questions\":[{\"create\":{\"answers\":[{\"create\":{\"recommendedProduct\":{\"create\":{\"productSuggestion\":{\"update\":{\"id\":\"123\"}}}},\"text\":\"test answer - 1\"}}],\"text\":\"test question - 1\"}}],\"text\":\"test quiz\"}}}"
},
"queryString": [
{
Expand All @@ -219,30 +219,29 @@
"url": "https://zxcv-deeply-nested--development.gadget.app/api/graphql?operation=createQuiz"
},
"response": {
"bodySize": 380,
"bodySize": 472,
"content": {
"encoding": "base64",
"mimeType": "application/json; charset=utf-8",
"size": 380,
"text": "[\"H4sIAAAAAAAAA4SQMU/DMBCF/wq62W1sE0extwokxMAA6sRSWfE1jUiT1D5LLVX+O3JSiujS8U7vve/encFZsmDOUHm0hO+x+U5TiFWFIYAhH5EBet/7AKaLbcvgcBFtNnQasLN7BAOTk0HjwIBQggO7RLoVgQHJZb7geiHztSiNFEY8LrkUn8CA8JgUhIEeDnNKHNx958j+X/B0bfCBIbaUBLV1NdIbzh13J+ctNX0X/hrPkGdLuG72eMO+rm9ZL1PuahjappoSJ8Q4MsAjYRd+GW1fBzCwIxqCybK6pmXbdF9Z2mdC8YKXWaF1oeRW8dJpjVoWqLSSAtHyXCih04u8rfA1vfaueBx/AAAA//8DADAt30rUAQAA\"]"
"size": 472,
"text": "{\"errors\":[{\"message\":\"Variable \\\"$quiz\\\" got invalid value { update: { id: \\\"123\\\" } } at \\\"quiz.questions[0].create.answers[0].create.recommendedProduct.create.productSuggestion\\\"; Field \\\"update\\\" is not defined by type \\\"ShopifyShopBelongsToInput\\\".\",\"locations\":[{\"line\":1,\"column\":21}],\"extensions\":{\"fromSandbox\":false}}],\"data\":null,\"extensions\":{\"logs\":\"https://ggt.link/logs/150608/b4d39600492e7ad3276bddb5c9921f4f\",\"traceId\":\"b4d39600492e7ad3276bddb5c9921f4f\"}}"
},
"cookies": [],
"headers": [
{
"name": "date",
"value": "Tue, 24 Sep 2024 18:21:13 GMT"
"value": "Wed, 06 Nov 2024 15:49:18 GMT"
},
{
"name": "content-type",
"value": "application/json; charset=utf-8"
},
{
"name": "transfer-encoding",
"value": "chunked"
"name": "content-length",
"value": "472"
},
{
"name": "connection",
"value": "close"
"value": "keep-alive"
},
{
"name": "vary",
Expand All @@ -262,11 +261,11 @@
},
{
"name": "x-request-id",
"value": "d96757ec8408c5ae704685e38ae247c6"
"value": "a978975c2677c55539a5d8bd751b6ee8"
},
{
"name": "x-trace-id",
"value": "699652f508d99e926e59521eea041519"
"value": "b4d39600492e7ad3276bddb5c9921f4f"
},
{
"name": "strict-transport-security",
Expand All @@ -286,29 +285,29 @@
},
{
"name": "cf-ray",
"value": "8c84cafb2a7e36fe-YYZ"
"value": "8de63b915bae61e2-YVR"
},
{
"name": "content-encoding",
"value": "gzip"
"name": "alt-svc",
"value": "h3=\":443\"; ma=86400"
}
],
"headersSize": 582,
"headersSize": 586,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
"status": 400,
"statusText": "Bad Request"
},
"startedDateTime": "2024-09-24T18:21:12.764Z",
"time": 337,
"startedDateTime": "2024-11-06T15:49:17.510Z",
"time": 516,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 337
"wait": 516
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@
"encoding": "base64",
"mimeType": "application/json; charset=utf-8",
"size": 384,
"text": "[\"H4sIAAAAAAAAA4SQMW/CMBCF/0p1syFxGqfBG2qlqkOHVkxdkLEvwcIkwT5LUJT/XiWhVGVhvNN777t3ZzCKFMgzaI+K8CPa72EKUWsMAST5iAzQ+9YHkE10jsHhIlqv6dRho/YIEkYnA2tAAhf8Edgl0iwJJGRpls/SxSzLV7yUGZdczAuefQEDwuOgIAz0cJhSYmfuO3v2/4Lna4NPDNHRIKiVqZHeceq4PRmvyLZN+Gs8QV4U4cru8YZ9Xd+yXsfcZdc5q8fEEdH3DPBI2IRfhmvrABK2RF2QSVLXNHe22SXDPuEiLdIyEULkuqqeFtpsSrVRla405oUqsEgFcj28yCuNb8Nr74r7/gcAAP//AwDy9QU11AEAAA==\"]"
"text": "[\"H4sIAAAAAAAAA4SQMW/CMBCF/0p1syG2G6fEG2qlqkOHVkxdkIkvwSIkwT5LUJT/XiWhVGVhvNN777t3Z7CGDOgzFB4N4Ud038MUYlFgCKDJR2SA3rc+gG5iXTM4XETrNZ06bMweQcPoZOAsaBBKKGCXSLsk0CC5TGdCzLhaiVQLqYWaS5F/AQPC46AgDPRwmFJiZ+87e/b/gudrg08MsaZBUBlbIb3j1HF7st6Qa5vw13iCvBjCldvjDfu6vmW9jrnLrqtdMSaOiL5ngEfCJvwy6rYKoGFL1AWdJFVF89o1u2TYJ0LxjC+STaYytcke5aLMn/IsLY1CmRY5l2VpleHDi7wp8G147V1x3/8AAAD//wMA7Td7ANQBAAA=\"]"
},
"cookies": [],
"headers": [
{
"name": "date",
"value": "Tue, 24 Sep 2024 18:21:15 GMT"
"value": "Tue, 05 Nov 2024 14:12:15 GMT"
},
{
"name": "content-type",
Expand All @@ -242,7 +242,7 @@
},
{
"name": "connection",
"value": "close"
"value": "keep-alive"
},
{
"name": "vary",
Expand All @@ -262,11 +262,11 @@
},
{
"name": "x-request-id",
"value": "b1d934b759e311d530260f0495b009af"
"value": "391c3f9b37ee4362987b7940afe29218"
},
{
"name": "x-trace-id",
"value": "5554cff79cdb8abafcfce46a6e605e1c"
"value": "b6565b6328f97964fa5e24c902ffd5a0"
},
{
"name": "strict-transport-security",
Expand All @@ -286,29 +286,33 @@
},
{
"name": "cf-ray",
"value": "8c84cb0b6bb4abc7-YYZ"
"value": "8ddd700a092961e3-YVR"
},
{
"name": "content-encoding",
"value": "gzip"
},
{
"name": "alt-svc",
"value": "h3=\":443\"; ma=86400"
}
],
"headersSize": 582,
"headersSize": 617,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-09-24T18:21:15.359Z",
"time": 288,
"startedDateTime": "2024-11-05T14:12:14.989Z",
"time": 509,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 288
"wait": 509
}
}
],
Expand Down
Loading

0 comments on commit bddb8d0

Please sign in to comment.