Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sibelius/graphql-draftjs

GraphQL Draftjs types
https://github.com/sibelius/graphql-draftjs

draftjs graphql

Last synced: 25 days ago
JSON representation

GraphQL Draftjs types

Awesome Lists containing this project

README

        

# GraphQL Draftjs

GraphQL types for DraftJS

## Install

```sh
yarn install graphql-draftjs
```

## Usage
```jsx
import {
DraftContentStateType,
DraftContentStateInput,
DraftBlock,
DraftBlockInput,
DraftEntity,
DraftEntityInput,
DraftData,
DraftDataInput,
DraftEntityRange,
DraftEntityRangeInput,
DraftInlineStyleRange,
DraftInlineStyleRangeInput,
} from 'draftjs-graphql'
```

Based on https://medium.com/@wonderboymusic/using-draftjs-with-graphql-ec2ea55a7f8b