# hasura-casing-layer

> hasura schema wrapper for transforming naming convention

Latest version **1.0.0** (published 2021-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install hasura-casing-layer
pnpm add hasura-casing-layer
yarn add hasura-casing-layer
bun add hasura-casing-layer
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-11-09 |
| First published | 2021-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 31 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ade Yahya |
| Maintainers | adeyahya |

## Links

- npm: https://www.npmjs.com/package/hasura-casing-layer
- npm.io page: https://npm.io/package/hasura-casing-layer

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.1.4
- [is-upper-case](https://npm.io/package/is-upper-case.md) ^2.0.2

## Recent versions

- 1.0.0 (latest) — 2021-11-09

## README

# Hasura Casing Layer

schema builder for adding `naming convention` transformation layer in front of hasura

## Installation

```bash
npm install hasura-casing-layer graphql @graphql-tools/wrap
```

## Usage

### Express

```ts
import express from "express";
import { transformRemoteSchema } from "hasura-casing-layer";
import { graphqlHTTP } from "express-graphql";
import { buildSchema } from "graphql";

const app = express();

const runServer = async () => {
  const hasuraSchema = await transformRemoteSchema({
    uri: "https://yourhasuraendpoint.com",
    // used for instrospection
    hasuraAdminSecret: "supersecret",
  });

  app.use(
    "/graphql",
    graphqlHTTP({
      schema: hasuraSchema,
      graphiql: true,
    })
  );

  app.listen(4000, () => {
    console.log("listeing at localhost:4000 🐐☁");
  });
};

runServer();
```

## License

MIT

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