0.2.9 • Published 6 years ago

cat-graphql v0.2.9

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Cat-graphql NPM version Build Status

Use to build schema.graphql for babel-plugin-relay, and other function with graphql. You can see examples.

How to use

front end

RelayTypes
import relayTypes from 'cat-graphql';

groupFields: relayTypes({
  fields: PropTypes.string.isRequired,
})

/*
This will be equal to:
groupFields: PropTypes.shape({
  edges: PropTypes.arrayOf(
    PropTypes.shape({
      node: PropTypes.shape({
        fields: PropTypes.string.isRequired,
      }).isRequired
    })  
  ).isRequired
})
*/

bin

build-graphql

Use to build graphql schema for babel-plugin-relay.

build-graphql [schema path] [arguments]

Arguments:

  • --path, -p: Set the path of the output file.
  • --name, -n: Set the name of the output file.
  • --schema, -s: Set the source schema which is wrote by graphql.js.

License

MIT © hsuting

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago