1.0.2 • Published 8 years ago
fgraphql v1.0.2
fGraphQL
fGraphQL is a functional wrapper around GraphQL that allows all types to be used as functions, more information about GraphQL types can be found here.
Installation
$ npm install fgraphql graphql
API
Exposes functions that returns GraphQL types, all types are individually exported as well as being attached to default export.
Scalar: returns GraphQL type
boolean
orgqlBoolean
float
orgqlFloat
id
orgqlId
int
orgqlInt
string
orgqlString
Definition: passes along arguments and returns a new instance of the GraphQL class
enumerable
orgqlEnum
(additionallyenum
is available on the default export)inputObject
orgqlInputObject
interfaceType
orgqlInterfaceType
(additionallyinterface
is available on default export)list
orgqlList
nonNull
orgqlNonNull
object
orgqlObject
scalar
orgqlScalar
union
orgqlUnion
Schema: passes along arguments and returns a new instance of the GraphQL schema
schema
orgqlSchema
Support
tested with "graphql": "^0.7.1"
, graphql is a peer dependency
Repo
TODO
- Examples