Skip to content

Instantly share code, notes, and snippets.

@llirikkcoder
Created October 20, 2023 15:42

Revisions

  1. llirikkcoder created this gist Oct 20, 2023.
    151 changes: 151 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,151 @@
    request:
    {
    "query": "mutation QuestChange($input: QuestChangeReq!) {\n questChange(in: $input) {\n ...QuestRespAll\n __typename\n }\n}\nfragment QuestRespAll on QuestModel {\n id\n numberOfPasses\n bindingType\n bindingTime\n priceCurrency\n priceAmount\n locationId\n revisions {\n ...QuestRevisionRespAll\n __typename\n }\n location {\n ...LocationModelRes\n __typename\n }\n createdAt\n updatedAt\n type\n createdBy\n autoStart\n autoComplete\n star\n reward {\n ...RewardRespAll\n __typename\n }\n entryCondition\n pointers {\n ...PointerRespAll\n __typename\n }\n questType\n codeWords\n file3D\n}\nfragment QuestRevisionRespAll on QuestRevisionModel {\n id\n status\n title\n shortDescription\n description\n geolocation {\n country\n region\n __typename\n }\n image\n questId\n attachments\n contactIds\n createdAt\n updatedAt\n completing\n}\nfragment LocationModelRes on LocationModel {\n id\n createdAt\n logo\n image\n cardImage\n name\n description\n createdAt\n type\n geolocation {\n country\n region\n __typename\n }\n youtube\n facebook\n instagram\n telegram\n twitter\n diskord\n costCurrency\n costValue\n status\n createdBy\n accessByStatus\n enableAward\n entryCondition\n legend\n attachments\n site\n shortDescription\n isAR\n}\nfragment RewardRespAll on RewardModel {\n type\n rewardCurrency\n price\n awardId\n}\nfragment PointerRespAll on PointerModel {\n id\n questId\n lat\n lng\n award {\n ...AwardRespAll\n __typename\n }\n attachments\n radius\n awardId\n createdAt\n}\nfragment AwardRespAll on AwardModel {\n id\n title\n description\n image\n locationId\n lifeTime\n price\n token\n}",
    "operationName": "QuestChange",
    "variables": {
    "input": {
    "quest": {
    "bindingTime": 0,
    "bindingType": 0,
    "createdAt": 1696932652,
    "createdBy": 86,
    "id": 416,
    "locationId": 57,
    "numberOfPasses": 1,
    "priceAmount": 0,
    "priceCurrency": "FD",
    "type": 0,
    "updatedAt": 1696932652,
    "star": false,
    "entryCondition": [],
    "autoStart": false,
    "autoComplete": false,
    "questType": "3d-assets",
    "codeWords": null,
    "file3D": "fb64e5843b8ade34fe7a98368c13822d3eb5f679f2fc4ea577ef1b180ad97f59",
    "reward": [
    {
    "type": "Asset"
    }
    ],
    "pointers": []
    },
    "revision": {
    "attachments": [
    "b4f632549b43066db64ee0c299e5d5162530edc06d27bcf4f0afb65d59e7dd80"
    ],
    "completing": "revision.completing.ec4b5e70-1b53-48e6-b222-707cbcc97cf5",
    "contactIds": null,
    "createdAt": 1696932652,
    "description": "revision.description.e58a583f-a8a0-406b-829e-2abda080d946",
    "geolocation": {
    "country": "Azerbaijan",
    "region": "Culfa",
    "__typename": "Geolocation"
    },
    "id": 416,
    "image": "f66cad862e3d433ae7f4ef8ec3fb1d6ef58e2227e7a13e1d59e3f318e9c98821",
    "questId": 416,
    "shortDescription": "revision.shortDescription.030c3499-b161-4f03-aba5-6ada6c177933",
    "status": 1,
    "title": "revision.title.e4b3fc70-5496-434d-8100-73b836b13f1c",
    "updatedAt": 1696932652
    }
    }
    }
    }

    response:
    {
    "data": {
    "questChange": {
    "id": 416,
    "numberOfPasses": 1,
    "bindingType": 0,
    "bindingTime": 0,
    "priceCurrency": "FD",
    "priceAmount": 0,
    "locationId": 57,
    "revisions": [
    {
    "id": 416,
    "status": 0,
    "title": "3d asset test",
    "shortDescription": "revision.shortDescription.030c3499-b161-4f03-aba5-6ada6c177933",
    "description": "revision.description.e58a583f-a8a0-406b-829e-2abda080d946",
    "geolocation": {
    "country": "Azerbaijan",
    "region": "Culfa",
    "__typename": "Geolocation"
    },
    "image": "f66cad862e3d433ae7f4ef8ec3fb1d6ef58e2227e7a13e1d59e3f318e9c98821",
    "questId": 416,
    "attachments": [
    "b4f632549b43066db64ee0c299e5d5162530edc06d27bcf4f0afb65d59e7dd80"
    ],
    "contactIds": null,
    "createdAt": 1696932652,
    "updatedAt": 1696932652,
    "completing": "revision.completing.ec4b5e70-1b53-48e6-b222-707cbcc97cf5",
    "__typename": "QuestRevisionModel"
    }
    ],
    "location": {
    "id": 57,
    "createdAt": 1689366576,
    "logo": "4c5657492d5813859659c1d025714431cbab531ff7db470e18134bb0a5604c38",
    "image": "4c5657492d5813859659c1d025714431cbab531ff7db470e18134bb0a5604c38",
    "cardImage": "4c5657492d5813859659c1d025714431cbab531ff7db470e18134bb0a5604c38",
    "name": "location.name.da5be5b6-d50a-4436-8fb6-8114c5a51fad",
    "description": "location.description.01826ea4-aba0-4d66-bd29-b1eda809ef20",
    "type": 0,
    "geolocation": {
    "country": "Georgia",
    "region": "Tbilisi",
    "__typename": "Geolocation"
    },
    "youtube": "https://www.youtube.com/watch?v=gAHlwhAtub8",
    "facebook": "https://www.youtube.com/watch?v=gAHlwhAtub8",
    "instagram": "https://www.youtube.com/watch?v=gAHlwhAtub8",
    "telegram": "https://www.youtube.com/watch?v=gAHlwhAtub8",
    "twitter": "https://www.youtube.com/watch?v=gAHlwhAtub8",
    "diskord": "https://www.youtube.com/watch?v=gAHlwhAtub8",
    "costCurrency": "FD",
    "costValue": 0,
    "status": 2,
    "createdBy": 1,
    "accessByStatus": 1,
    "enableAward": true,
    "entryCondition": null,
    "legend": "location.legend.2b85ed6e-cf80-442b-ad03-01fa39f1f7bf",
    "attachments": null,
    "site": null,
    "shortDescription": "location.short-description.67130ef8-310e-48c1-ac15-a05d8c952b7b",
    "isAR": true,
    "__typename": "LocationModel"
    },
    "createdAt": 1696932652,
    "updatedAt": 1696932652,
    "type": 0,
    "createdBy": 86,
    "autoStart": null,
    "autoComplete": null,
    "star": false,
    "reward": [
    {
    "type": "Asset",
    "rewardCurrency": null,
    "price": null,
    "awardId": null,
    "__typename": "RewardModel"
    }
    ],
    "entryCondition": null,
    "pointers": null,
    "questType": "3d-assets",
    "codeWords": null,
    "file3D": "ca865cf2466b49d0774d03b00924eb4890c61f5f5a3f3f69c5a1f825e6dfa2e4",
    "__typename": "QuestModel"
    }
    }
    }