---
# System prepended metadata

title: Untitled

---




J’avais demander a @Anonymous de faire un call sur les categories pour récupérer leurs ids

query
```graphql
query CATEGORIES($page: PageInput) {
  categories(page: $page) {
    __typename
    ... on CategoryConnection {
      edges {
        cursor
        node {
          id
          title
          color
          image
          __typename
        }
        __typename
      }
      __typename
    }
    ... on ValidationError {
      fieldErrors {
        field
        messages
        __typename
      }
      __typename
    }
    ... on AuthenticationError {
      message
      __typename
    }
    ... on PermissionError {
      message
      __typename
    }
  }
}
```
response
```json
{
  "data": {
    "categories": {
      "__typename": "CategoryConnection",
      "edges": [
        {
          "cursor": "MTg=",
          "node": {
            "id": "18",
            "title": "One-shot quests",
            "color": "#FF6B00",
            "image": null,
            "__typename": "CategoryNode"
          },
          "__typename": "CategoryEdge"
        },
        {
          "cursor": "MTk=",
          "node": {
            "id": "19",
            "title": "Season quests",
            "color": "#A695F7",
            "image": null,
            "__typename": "CategoryNode"
          },
          "__typename": "CategoryEdge"
        },
        {
          "cursor": "MjA=",
          "node": {
            "id": "20",
            "title": "Shadow quests",
            "color": "#94D19C",
            "image": null,
            "__typename": "CategoryNode"
          },
          "__typename": "CategoryEdge"
        },
        {
          "cursor": "MjE=",
          "node": {
            "id": "21",
            "title": "Get your avatar",
            "color": "#00B8FF",
            "image": null,
            "__typename": "CategoryNode"
          },
          "__typename": "CategoryEdge"
        },
        {
          "cursor": "MjI=",
          "node": {
            "id": "22",
            "title": "To-start",
            "color": "#EC8C8C",
            "image": null,
            "__typename": "CategoryNode"
          },
          "__typename": "CategoryEdge"
        },
        {
          "cursor": "Mjc=",
          "node": {
            "id": "27",
            "title": "Season 1 rewards",
            "color": "#FFC800",
            "image": null,
            "__typename": "CategoryNode"
          },
          "__typename": "CategoryEdge"
        },
        {
          "cursor": "MzI=",
          "node": {
            "id": "32",
            "title": "Season quests 1",
            "color": "",
            "image": null,
            "__typename": "CategoryNode"
          },
          "__typename": "CategoryEdge"
        }
      ]
    }
  }
}
```
—-
pour finalement les joindre a consumptionHistory


query
```graphql
query CONSUMPTION_HISTORY($filter: ConsumptionHistoryFilter, $page: PageInput) {
  consumptionHistory(filter: $filter, page: $page) {
    ... on ConsumptionHistoryConnection {
      __typename
      pageInfo {
        hasNextPage
        hasPreviousPage
        startCursor
        endCursor
        count
        __typename
      }
      edges {
        node {
          id
          tokens
          eventDate
          consumable {
            id
            creationDate
            title
            category
            tags
            requirements {
              action {
                subjectLabel
                __typename
              }
              __typename
            }
            __typename
          }
          __typename
        }
        __typename
      }
    }
    ... on AuthenticationError {
      __typename
      message
    }
    ... on ValidationError {
      fieldErrors {
        field
        messages
        __typename
      }
      __typename
    }
    ... on PermissionError {
      __typename
      message
    }
    __typename
  }
}
```

variables
```json
{
    "filter": {
        "ordering": [
            "-event_date"
        ],
        "company_categories": [
            1,
            2
        ]
    },
    "page": {
        "first": 200
    }
}
```

**response**
```json
{
   "data":{
      "consumptionHistory":{
         "__typename":"ConsumptionHistoryConnection",
         "pageInfo":{
            "hasNextPage":false,
            "hasPreviousPage":false,
            "startCursor":"MjAyMy0wMi0wNyAxMjoxMjozNS4xMTUwMzIrMDA6MDA=",
            "endCursor":"MjAyMi0xMS0xNiAwOToyOToyNC45MDY4MjMrMDA6MDA=",
            "count":19,
            "__typename":"PageInfo"
         },
         "edges":[
            {
               "node":{
                  "id":"2734079",
                  "tokens":500,
                  "eventDate":"2023-02-07T12:12:35.115032Z",
                  "consumable":{
                     "id":"4057",
                     "creationDate":"2023-02-06T16:36:24.364206Z",
                     "title":"RT l'annonce de la Reine Abeille",
                     "category":"CHALLENGE",
                     "tags":[
                        "COMPLEX",
                        "TWITTER",
                        "SHARE",
                        "TOKEN",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":null,
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"2733941",
                  "tokens":500,
                  "eventDate":"2023-02-07T12:10:40.691762Z",
                  "consumable":{
                     "id":"4059",
                     "creationDate":"2023-02-07T08:52:52.445030Z",
                     "title":"We win you win",
                     "category":"CHALLENGE",
                     "tags":[
                        "TOKEN",
                        "LIKE",
                        "COMPLEX",
                        "TWITTER",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":null,
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"2504696",
                  "tokens":1500,
                  "eventDate":"2023-01-31T11:02:21.015840Z",
                  "consumable":{
                     "id":"3950",
                     "creationDate":"2023-01-16T17:11:23.358319Z",
                     "title":"Twitter - 50 RT",
                     "category":"CHALLENGE",
                     "tags":[
                        "SHARE",
                        "TWITTER",
                        "COMPLEX",
                        "TOKEN",
                        "SEASON_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"2459330",
                  "tokens":1000,
                  "eventDate":"2023-01-30T10:26:46.950476Z",
                  "consumable":{
                     "id":"3949",
                     "creationDate":"2023-01-16T17:09:48.944920Z",
                     "title":"Twitter - 50 Likes",
                     "category":"CHALLENGE",
                     "tags":[
                        "COMPLEX",
                        "LIKE",
                        "TWITTER",
                        "TOKEN",
                        "SEASON_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"2031720",
                  "tokens":300,
                  "eventDate":"2023-01-16T17:13:11.058391Z",
                  "consumable":{
                     "id":"3948",
                     "creationDate":"2023-01-16T14:59:20.062171Z",
                     "title":"Like the new season announcement!",
                     "category":"CHALLENGE",
                     "tags":[
                        "COMPLEX",
                        "LIKE",
                        "TOKEN",
                        "TWITTER",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":null,
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1990664",
                  "tokens":1,
                  "eventDate":"2023-01-12T12:39:59.046076Z",
                  "consumable":{
                     "id":"3926",
                     "creationDate":"2023-01-11T18:18:26.892750Z",
                     "title":"Like l'annonce du nouveau maillot",
                     "category":"CHALLENGE",
                     "tags":[
                        "TWITTER",
                        "LIKE",
                        "TOKEN",
                        "COMPLEX",
                        "NFT",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1596294",
                  "tokens":300,
                  "eventDate":"2022-12-08T13:19:48.723418Z",
                  "consumable":{
                     "id":"3700",
                     "creationDate":"2022-12-03T13:45:58.082706Z",
                     "title":"Retweet le VLOG du Major de Rio",
                     "category":"CHALLENGE",
                     "tags":[
                        "TOKEN",
                        "TWITTER",
                        "SHARE",
                        "COMPLEX",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1383516",
                  "tokens":300,
                  "eventDate":"2022-11-26T14:50:53.639611Z",
                  "consumable":{
                     "id":"3683",
                     "creationDate":"2022-11-25T17:28:17.198875Z",
                     "title":"Retweet pour avoir un nouveau wearable",
                     "category":"CHALLENGE",
                     "tags":[
                        "COMPLEX",
                        "TWITTER",
                        "TOKEN",
                        "NFT",
                        "SHARE",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"VitalityHive",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1309734",
                  "tokens":300,
                  "eventDate":"2022-11-25T11:59:35.378051Z",
                  "consumable":{
                     "id":"3671",
                     "creationDate":"2022-11-24T17:35:26.395484Z",
                     "title":"Retweet Vitality x Naruto",
                     "category":"CHALLENGE",
                     "tags":[
                        "TOKEN",
                        "SHARE",
                        "TWITTER",
                        "COMPLEX",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1309733",
                  "tokens":300,
                  "eventDate":"2022-11-25T11:59:35.243880Z",
                  "consumable":{
                     "id":"3670",
                     "creationDate":"2022-11-24T17:31:50.571591Z",
                     "title":"Retweet Annonce Live CS:GO",
                     "category":"CHALLENGE",
                     "tags":[
                        "SHARE",
                        "TWITTER",
                        "TOKEN",
                        "COMPLEX",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1309732",
                  "tokens":300,
                  "eventDate":"2022-11-25T11:59:35.084053Z",
                  "consumable":{
                     "id":"3661",
                     "creationDate":"2022-11-23T16:57:52.239916Z",
                     "title":"Retweet l\u2019annonce VCT23",
                     "category":"CHALLENGE",
                     "tags":[
                        "COMPLEX",
                        "TWITTER",
                        "SHARE",
                        "TOKEN",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1178547",
                  "tokens":500,
                  "eventDate":"2022-11-21T16:28:43.887999Z",
                  "consumable":{
                     "id":"3626",
                     "creationDate":"2022-11-15T11:23:08.820831Z",
                     "title":"Partage ton avatar !",
                     "category":"CHALLENGE",
                     "tags":[
                        "POST",
                        "COMPLEX",
                        "TOKEN",
                        "TWITTER",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":null,
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1178456",
                  "tokens":300,
                  "eventDate":"2022-11-21T16:27:17.165636Z",
                  "consumable":{
                     "id":"3655",
                     "creationDate":"2022-11-21T16:01:56.717463Z",
                     "title":"Retweet Metality content",
                     "category":"CHALLENGE",
                     "tags":[
                        "TWITTER",
                        "TOKEN",
                        "SHARE",
                        "COMPLEX",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1134446",
                  "tokens":200,
                  "eventDate":"2022-11-20T19:24:04.174239Z",
                  "consumable":{
                     "id":"3647",
                     "creationDate":"2022-11-18T10:17:12.572006Z",
                     "title":"Follow Vitality Hive",
                     "category":"CHALLENGE",
                     "tags":[
                        "TOKEN",
                        "TWITTER",
                        "FOLLOW",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"VitalityHive",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1063257",
                  "tokens":300,
                  "eventDate":"2022-11-19T10:31:30.118562Z",
                  "consumable":{
                     "id":"3650",
                     "creationDate":"2022-11-18T17:22:22.691683Z",
                     "title":"Retweet Black Friday announcement",
                     "category":"CHALLENGE",
                     "tags":[
                        "COMPLEX",
                        "TOKEN",
                        "SHARE",
                        "TWITTER",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"1007773",
                  "tokens":300,
                  "eventDate":"2022-11-17T19:08:10.050618Z",
                  "consumable":{
                     "id":"3644",
                     "creationDate":"2022-11-17T15:31:50.762438Z",
                     "title":"Retweet the V.Hive announcement!",
                     "category":"CHALLENGE",
                     "tags":[
                        "DIGITAL_PRODUCT",
                        "SHARE",
                        "TOKEN",
                        "COMPLEX",
                        "TWITTER",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"982794",
                  "tokens":200,
                  "eventDate":"2022-11-16T09:29:54.283002Z",
                  "consumable":{
                     "id":"3333",
                     "creationDate":"2022-10-20T12:55:21.762068Z",
                     "title":"Suis nous sur Twitch",
                     "category":"CHALLENGE",
                     "tags":[
                        "FOLLOW",
                        "TWITCH",
                        "TOKEN",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"Vitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"982791",
                  "tokens":200,
                  "eventDate":"2022-11-16T09:29:43.260513Z",
                  "consumable":{
                     "id":"3342",
                     "creationDate":"2022-10-20T13:01:10.763931Z",
                     "title":"Suivez-nous sur Twitter",
                     "category":"CHALLENGE",
                     "tags":[
                        "TOKEN",
                        "FOLLOW",
                        "TWITTER",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":"TeamVitality",
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            },
            {
               "node":{
                  "id":"982789",
                  "tokens":1000,
                  "eventDate":"2022-11-16T09:29:24.906823Z",
                  "consumable":{
                     "id":"3321",
                     "creationDate":"2022-10-20T08:46:42.516349Z",
                     "title":"Connectez votre portefeuille",
                     "category":"CHALLENGE",
                     "tags":[
                        "TOKEN",
                        "TEZOS",
                        "LOGIN",
                        "ONE-SHOT_QUESTS"
                     ],
                     "requirements":[
                        {
                           "action":{
                              "subjectLabel":null,
                              "__typename":"Action"
                           },
                           "__typename":"RequirementNode"
                        }
                     ],
                     "__typename":"ConsumableNode"
                  },
                  "__typename":"ConsumptionHistoryNode"
               },
               "__typename":"ConsumptionHistoryEdge"
            }
         ]
      }
   }
}
```