Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add user totalSales and totalOrders #333

Merged
merged 1 commit into from
Feb 17, 2022
Merged

add user totalSales and totalOrders #333

merged 1 commit into from
Feb 17, 2022

Conversation

alexcos20
Copy link
Member

Closes #311

query{
  users{
    id,
    totalSales,
    totalOrders
  }
}

=>

{
  "data": {
    "users": [
      {
        "id": "0x02354a1f160a3fd7ac8b02ee91f04104440b28e7",
        "totalOrders": "0",
        "totalSales": "0"
      },
      {
        "id": "0x312213d6f6b5fcf9f56b7b8946a6c727bf4bc21f",
        "totalOrders": "2",
        "totalSales": "0"
      },
      {
        "id": "0x91eb42b164664cb28a09b0cf9651b404ee105afa",
        "totalOrders": "0",
        "totalSales": "0"
      },
      {
        "id": "0xa78deb2fa79463945c247991075e2a0e98ba7a09",
        "totalOrders": "0",
        "totalSales": "0"
      },
      {
        "id": "0xbb0911124e680d65358ac46c5404d4df01f03e80",
        "totalOrders": "0",
        "totalSales": "0"
      },
      {
        "id": "0xbe5449a6a97ad46c8558a3356267ee5d2731ab5e",
        "totalOrders": "1",
        "totalSales": "0"
      },
      {
        "id": "0xe2dd09d719da89e5a3d0f2549c7e24566e947260",
        "totalOrders": "0",
        "totalSales": "3"
      }
    ]
  }
}

@alexcos20 alexcos20 added this to the V4 milestone Feb 17, 2022
@alexcos20 alexcos20 requested a review from mihaisc February 17, 2022 15:15
@alexcos20 alexcos20 self-assigned this Feb 17, 2022
@alexcos20 alexcos20 merged commit dfb59ae into v4main Feb 17, 2022
@alexcos20 alexcos20 deleted the feature/totalSales branch February 17, 2022 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User stats
1 participant