1.2.9 • Published 3 years ago

@slash-graphql/visual-schema-builder v1.2.9

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

@slash-graphql/visual-schema-builder

Visual Schema Builder for Slash GraphQL

NPM JavaScript Style Guide

Install

npm install --save @slash-graphql/visual-schema-builder

Usage

import React, { useRef, Fragment } from 'react'

import { SchemaEditor } from '@slash-graphql/visual-schema-builder'

const App = () => {
  const ref = useRef()

  // dynamically provide schema to the editor
  useEffect(() => ref.current.setSchema(sch), [])

  // dynamically extract schema from the editor
  const onClick = () => console.log(ref.current.getSchema())

  return (
    <Fragment>
      <SchemaEditor placeholder='Enter your schema here...' ref={ref} />
      <Button onClick={onClick}>Submit</Button>
    </Fragment>
  )
}

export default App

License

MIT © dgraph-io

1.2.8

3 years ago

1.2.9

3 years ago

1.2.7

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.0

4 years ago