@genql/test-cartql-september20

Graphql client

Usage no npm install needed!

<script type="module">
  import genqlTestCartqlSeptember20 from 'https://cdn.skypack.dev/@genql/test-cartql-september20';
</script>

README

@genql/test-cartql-september20

Your awesome graphql client ❤️

Example usage

import { createClient } from '@genql/test-cartql-september20'
const client = createClient()



// variables
var cart__id

client
  .query({
    cart: [
      {
        id: cart__id,
      },
      {
        shippingTotal: {
          formatted: true,
        },
        currency: {
          symbol: true,
          thousandsSeparator: true,
          decimalSeparator: true,
        },
        grandTotal: {
          amount: true,
          formatted: true,
        },
        createdAt: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var cart__id

client
  .query({
    cart: [
      {
        id: cart__id,
      },
      {
        taxTotal: {
          currency: {
            symbol: true,
          },
          amount: true,
          formatted: true,
        },
        currency: {
          code: true,
          decimalSeparator: true,
        },
        grandTotal: {
          currency: {
            thousandsSeparator: true,
          },
        },
        totalItems: true,
        notes: true,
        updatedAt: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var cart__id

client
  .query({
    cart: [
      {
        id: cart__id,
      },
      {
        taxTotal: {
          formatted: true,
        },
        currency: {
          thousandsSeparator: true,
          decimalSeparator: true,
        },
        subTotal: {
          currency: {
            code: true,
            thousandsSeparator: true,
          },
        },
        grandTotal: {
          amount: true,
          formatted: true,
        },
        attributes: {
          key: true,
        },
        id: true,
        email: true,
        totalItems: true,
        totalUniqueItems: true,
        abandoned: true,
        notes: true,
        updatedAt: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var cart__id

client
  .query({
    cart: [
      {
        id: cart__id,
      },
      {
        attributes: {
          value: true,
        },
        currency: {
          symbol: true,
          thousandsSeparator: true,
          decimalDigits: true,
        },
        items: {
          lineTotal: {
            amount: true,
          },
          unitTotal: {
            amount: true,
            formatted: true,
          },
          attributes: {
            key: true,
          },
          id: true,
          description: true,
        },
        subTotal: {
          formatted: true,
        },
        shippingTotal: {
          amount: true,
        },
        grandTotal: {
          amount: true,
          formatted: true,
        },
        email: true,
        isEmpty: true,
        abandoned: true,
        notes: true,
        createdAt: true,
        updatedAt: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))