cope-client-utils
TypeScript icon, indicating that this package has built-in type declarations

0.2.50 • Public • Published

COPE Client Utils

JavaScript utilities for using the COPE CMS

Getting Started

Installation

npm i cope-client-utils

Configuration

import { configureWith } from "cope-client-utils"
import aws_exports from "./aws-exports"

configureWith(aws_exports)

Using the Utilities

Most of the utilities are for sending CRUD operations to the graphql API

Nodes

import { node, API } from "cope-client-utils"

const node = async ({ id, status, type, createdAt, owner, updatedAt }: API.CreateNodeInput) => {
    const new_node = await node.create({ id, status, type, createdAt, owner, updatedAt })
    return new_node
}

Readme

Keywords

none

Package Sidebar

Install

npm i cope-client-utils

Weekly Downloads

9

Version

0.2.50

License

MIT

Unpacked Size

184 kB

Total Files

58

Last publish

Collaborators

  • loganpowell