Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sibelius/graphql-draftjs
- Owner: sibelius
- Created: 2020-06-19T12:25:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-19T12:26:23.000Z (over 4 years ago)
- Last Synced: 2024-10-19T19:54:16.908Z (29 days ago)
- Topics: draftjs, graphql
- Language: TypeScript
- Homepage:
- Size: 49.8 KB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - graphql-draftjs
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