# @pql/observable

> A lightweight observable implementation

Latest version **0.2.0-alpha.19** (published 2019-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pql/observable
pnpm add @pql/observable
yarn add @pql/observable
bun add @pql/observable
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0-alpha.19 |
| Published | 2019-10-23 |
| First published | 2018-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 163.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Leah |
| Maintainers | harmony |

## Links

- npm: https://www.npmjs.com/package/@pql/observable
- Repository: https://github.com/ForsakenHarmony/pql
- Homepage: https://github.com/ForsakenHarmony/pql#readme
- Issues: https://github.com/ForsakenHarmony/pql/issues
- npm.io page: https://npm.io/package/@pql/observable

## Recent versions

- 0.2.0-alpha.19 (latest) — 2019-10-23
- 0.2.0-alpha.9 — 2019-03-27
- 0.2.0-alpha.7 — 2019-03-21
- 0.2.0-alpha.6 — 2019-03-18
- 0.2.0-alpha.3 — 2019-01-14
- 0.2.0-alpha.2 — 2019-01-09
- 0.2.0-alpha.1 — 2019-01-07
- 0.2.0-alpha.0 — 2018-12-19

## README

# pql

A lightweight™ modular™ graphql client

## Basic Usage

```js
import { Client, gql } from '@pql/client';
// could also use the websocket transport for subscription support
import { FetchTransport } from '@pql/fetch';

const transport = new FetchTransport({ url: 'https://graphql-pokemon.now.sh' });

const client = new Client(transport);

const query = gql`
  query {
    pokemon(name: "Pikachu") {
      number
      name
      attacks {
        special {
          name
          type
          damage
        }
      }
    }
  }
`;

client.query(query).then(res => {
  const pikachu = res.data.pokemon;
  console.log(pikachu);
});
```

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