# fgraphql

> a functional wrapper around GraphQl types

Latest version **1.0.2** (published 2016-10-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install fgraphql
pnpm add fgraphql
yarn add fgraphql
bun add fgraphql
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-10-03 |
| First published | 2016-09-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dustin Sanders |
| Maintainers | dustinsanders |
| Keywords | functional, gra, graphql, types |

## Links

- npm: https://www.npmjs.com/package/fgraphql
- Repository: https://github.com/dustinsanders/fgraphql
- Homepage: https://github.com/dustinsanders/fgraphql#readme
- Issues: https://github.com/dustinsanders/fgraphql/issues
- npm.io page: https://npm.io/package/fgraphql

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-10-03
- 1.0.1 — 2016-09-30

## README

# fGraphQL
[![Build Status][travis-image]][travis-url]

fGraphQL is a functional wrapper around GraphQL that allows all types to be used as functions, more information about GraphQL types can be found [here](http://graphql.org/graphql-js/type/).

## Installation
`$ npm install fgraphql graphql`

## API
Exposes functions that returns GraphQL types, all types are individually exported as well as being attached to default export.
* **Scalar**: returns GraphQL type
  * `boolean` or `gqlBoolean`
  * `float` or `gqlFloat`
  * `id` or `gqlId`
  * `int` or `gqlInt`
  * `string` or `gqlString`

* **Definition**: passes along arguments and returns a new instance of the GraphQL class
  * `enumerable` or `gqlEnum` (additionally `enum` is available on the default export)
  * `inputObject` or `gqlInputObject`
  * `interfaceType` or `gqlInterfaceType` (additionally `interface` is available on default export)
  * `list` or `gqlList`
  * `nonNull` or `gqlNonNull`
  * `object` or `gqlObject`
  * `scalar` or `gqlScalar`
  * `union` or `gqlUnion`

* **Schema**: passes along arguments and returns a new instance of the GraphQL schema
  * `schema` or `gqlSchema`

## Support
tested with `"graphql": "^0.7.1"`, graphql is a peer dependency

## [Repo](https://github.com/dustinsanders/fgraphql)

## TODO
* Examples

[travis-image]: https://img.shields.io/travis/dustinsanders/fgraphql.svg?style=flat-square
[travis-url]: https://travis-ci.org/dustinsanders/fgraphql

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