Skip to content

Getting started: build a GraphQL Form in 5 minutes

Charly POLY edited this page Jun 6, 2018 · 17 revisions

Install the library

  • yarn add react-apollo-form OR
  • npm i react-apollo-form

then, add to your package.json scripts section:

"react-apollo-form": "react-apollo-form fetch-mutations <graphqlEndpoint> <outpurDir>"
  • graphqlEndpoint should be the url of your GraphQL API, ex: "http://localhost:3000/graphql"
  • outpurDir should be the path where files will be generated, ex: "./src/core/forms"

Generating "meta" files

Configuring a "Form component"

Build your first form

Clone this wiki locally