# @cloudcycle/postgraphile-graphql-schema-utils

> Utilities for extracting information from GraphQL schemas generated by Postgraphile

Latest version **0.1.1** (published 2022-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cloudcycle/postgraphile-graphql-schema-utils
pnpm add @cloudcycle/postgraphile-graphql-schema-utils
yarn add @cloudcycle/postgraphile-graphql-schema-utils
bun add @cloudcycle/postgraphile-graphql-schema-utils
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2022-10-22 |
| First published | 2022-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 24.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Isac Casapu |
| Maintainers | yitzikc |
| Keywords | Postgraphile, GraphQL, Schema, Resolvers |

## Links

- npm: https://www.npmjs.com/package/@cloudcycle/postgraphile-graphql-schema-utils
- Repository: https://github.com/CloudCycle/postgraphile-graphql-schema-utils
- Homepage: https://github.com/CloudCycle/postgraphile-graphql-schema-utils#readme
- Issues: https://github.com/CloudCycle/postgraphile-graphql-schema-utils/issues
- npm.io page: https://npm.io/package/@cloudcycle/postgraphile-graphql-schema-utils

## Dependencies (2)

- [@graphql-tools/load](https://npm.io/package/@graphql-tools/load.md) ^7.7.7
- [@graphql-tools/graphql-file-loader](https://npm.io/package/@graphql-tools/graphql-file-loader.md) ^7.5.5

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2022-10-22
- 0.1.0 — 2022-10-17
- 0.0.2 — 2022-09-28

## README

# postgraphile-graphql-schema-utils
Utilities for extracting information from GraphQL schemas generated by Postgraphile

## Example Usage

The code below demonstrates the usage of this library:

```typescript
import { resolverNamesInSchema, loadSchemaFromFileSync } from '@cloudcycle/postgraphile-graphql-schema-utils';

const schema = loadSchemaFromFileSync('schema.graphql');
const {query, mutation} = resolverNamesInSchema(schema);
console.log(JSON.stringify('List of queries': query));
console.log(JSON.stringify('List of mutations': mutation));
```

An async API for loading the schema also available as _loadSchemaFromFile_.

## Roadmap

* Add unit tests.
* Additional data-sources.

---
_Source: https://npm.io/package/@cloudcycle/postgraphile-graphql-schema-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
