graphql-draftjs
graphql-draftjs copied to clipboard
GraphQL Draftjs types
GraphQL Draftjs
GraphQL types for DraftJS
Install
yarn install graphql-draftjs
Usage
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