1.0.2 • Published 9 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
booleanorgqlBooleanfloatorgqlFloatidorgqlIdintorgqlIntstringorgqlString
Definition: passes along arguments and returns a new instance of the GraphQL class
enumerableorgqlEnum(additionallyenumis available on the default export)inputObjectorgqlInputObjectinterfaceTypeorgqlInterfaceType(additionallyinterfaceis available on default export)listorgqlListnonNullorgqlNonNullobjectorgqlObjectscalarorgqlScalarunionorgqlUnion
Schema: passes along arguments and returns a new instance of the GraphQL schema
schemaorgqlSchema
Support
tested with "graphql": "^0.7.1", graphql is a peer dependency
Repo
TODO
- Examples