Graphqlator CLI
This project is a WIP.
Master branch is currently unstable.
Graphqlator takes your existing database schema and generates code for a GraphQL-Go server. Type 'graphqlator help' to see usage.
Status
Build | Report card |
---|---|
Supported Data Stores:
- mysql
- mariadb
- postgres
Installation:
go get github.com/ahmedalhulaibi/graphqlator
Or Download prebuilt binaries from the releases page
Prerequisites
grahpql-go - Generated code uses graphql-go
GORM - Generated code uses GORM
Usage
graphqlator [flags]
graphqlator [command]
Available Commands:
init Create a graphqlator-pkg.json file.
describe Describe database or table
generate Generate GraphQL-Go API implementation using grapqhlator-pkg.json.
help Help about any command
version Print the version number of Graphqlator
Flags: -h, --help help for graphqlator
Use "graphqlator [command] --help" for more information about a command.
Example Usage:
Please visit the graphqlator website for a short tutorial.
External Libraries Used
goreturns - Generator uses goreturns to remove unnecessary generated imports
Substance - This library is used to introspect on the database information schema and generate the graphql-go code.
grahpql-go - The generated code is using this implementation of GraphQL in Go.
GORM - The generated code is using GORM.