# @genql/cartql

> Graphql client

Latest version **1.0.0** (published 2020-06-15) · 0 weekly downloads

## Install

```sh
npm install @genql/cartql
pnpm add @genql/cartql
yarn add @genql/cartql
bun add @genql/cartql
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-06-15 |
| First published | 2020-06-15 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 86.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | xmorse |

## Links

- npm: https://www.npmjs.com/package/@genql/cartql
- npm.io page: https://npm.io/package/@genql/cartql

## Dependencies (1)

- [genql-runtime](https://npm.io/package/genql-runtime.md) latest

## Recent versions

- 1.0.0 (latest) — 2020-06-15

## README

# @genql/cartql

Your awesome graphql client ❤️

## Example usage

```js
import { createClient } from '@genql/cartql'
const client = createClient()



// variables
var cart__id

client
  .query({
    orders: {
      cartId: true,
      email: true,
      totalItems: true,
      status: true,
      createdAt: true,
      updatedAt: true,
    },
    cart: [
      {
        id: cart__id,
      },
      {
        id: true,
        email: true,
        totalUniqueItems: true,
        isEmpty: true,
        notes: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




client
  .query({
    orders: {
      id: true,
      cartId: true,
      email: true,
      totalUniqueItems: true,
      notes: true,
      updatedAt: true,
    },
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




client
  .query({
    orders: {
      id: true,
      email: true,
      totalUniqueItems: true,
      notes: true,
      status: true,
      createdAt: true,
      updatedAt: true,
    },
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var cart__id

client
  .query({
    cart: [
      {
        id: cart__id,
      },
      {
        taxTotal: {
          currency: {
            thousandsSeparator: true,
          },
          formatted: true,
        },
        currency: {
          code: true,
          decimalSeparator: true,
          decimalDigits: true,
        },
        items: {
          description: true,
          type: true,
          updatedAt: true,
        },
        shippingTotal: {
          currency: {
            code: true,
            symbol: true,
            decimalSeparator: true,
          },
          formatted: true,
        },
        grandTotal: {
          amount: true,
          formatted: true,
        },
        attributes: {
          key: true,
        },
        email: true,
        createdAt: true,
        updatedAt: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))


```

---
_Source: https://npm.io/package/@genql/cartql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
