The Database Hub | Back4App
The Database Hub | Back4App
How it works
  • Log In
  • Sign Up

  1. CubyCode
  2. Shoppy | Ecommerce App Template for Android/iOS
Public

37
67
37
67
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All Carts

This GraphQL query fetches All Carts


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
query allCarts {
      carts (skip: 0, limit: 3) {
        results {
          ACL
          createdAt
          id
          notes
          productPointer {
            id
          }
          qty
          totalAmount
          updatedAt
          userPointer {
            id
          }
        }
      }
    }
{
  "data": {
    "carts": {
      "results": [
        {
          "ACL": null,
          "createdAt": "2018-06-17T12:12:57.031Z",
          "id": "WGxwOdMW9J",
          "notes": null,
          "productPointer": {
            "id": "kX4PUI95To"
          },
          "qty": 1,
          "totalAmount": 90,
          "updatedAt": "2018-06-17T12:14:11.489Z",
          "userPointer": {
            "id": "FemXDgAyXZ"
          }
        },
        {
          "ACL": null,
          "createdAt": "2018-07-03T01:01:24.233Z",
          "id": "jdeOJyHFAs",
          "notes": null,
          "productPointer": {
            "id": "R2shz61OeB"
          },
          "qty": 1,
          "totalAmount": 99.9,
          "updatedAt": "2018-07-03T01:01:24.233Z",
          "userPointer": {
            "id": "eSmyJdYvam"
          }
        },
        {
          "ACL": null,
          "createdAt": "2018-07-03T00:55:50.325Z",
          "id": "AEoCNfGvUF",
          "notes": null,
          "productPointer": {
            "id": "kX4PUI95To"
          },
          "qty": 1,
          "totalAmount": 90,
          "updatedAt": "2018-07-03T01:01:33.616Z",
          "userPointer": {
            "id": "eSmyJdYvam"
          }
        }
      ]
    }
  }
}