You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
piq9117 24c4e02edc documentation update (#18) 2 weeks ago
app static binary (#14) 2 weeks ago
nix static binary (#14) 2 weeks ago
src documentation update (#18) 2 weeks ago
test added example (#13) 2 weeks ago
.gitignore static binary (#14) 2 weeks ago
CHANGELOG.md init 1 month ago
LICENSE init 1 month ago
README.md read me update (#17) 2 weeks ago
Setup.hs init 1 month ago
default.nix mutation (#9) 3 weeks ago
graphql-stitch-vomit.cabal static binary (#14) 2 weeks ago
shell.nix static binary (#14) 2 weeks ago
stack.yaml static binary (#14) 2 weeks ago
static.nix static binary (#14) 2 weeks ago

README.md

Graphql Stitch-Vomit

This CLI tool will stitch your schemas if and only if they are organized this way

+--my-schema-dir
   |--person.gql
   |--dog.gql
   |--post.gql
   ( etc.. )

Commands

Graphql Stitch-Vomit: A graphql schema stitcher.

Usage: graphql-stitch-vomit --src-dir ARG --output ARG
  Graphql Stitch-Vomit is a cli tool that will stitch all your schemas and vomit
  them into one file.

Available options:
  -h,--help                Show this help text
  --src-dir ARG            Schema source directory path.
  --output ARG             Output path for the schema stitched result.

In Action

Running this command will result in stitching all the schemas in test/test-schema

graphql-stitch-vomit --src-dir test/test-schema --output my-schema.gql

The result will look like

"""
File generated by Graphql Stitch-Vomit
"""
type Person {
  firstName: String
  lastName: String
}

type Post {
  author: String
  comment: String
}

type Dog {
  name: String
}

type Query {
  dog: String
  posts: [Post]
  getPerson(name: String): Person
}

type Mutation {
  addPost(author: String, comment: String): Post
  setDogName(name: String): Dog
  setPersonName(name: String): Person
}

type Subscription {
  postAdded: Post
}

schema {
  query: Query
  mutation: Mutation
  subscription: Subscription
}

Building it yourself

With Nix

nix-shell

Once you are in a nix shell

cabal build
cabal install # installs in .cabal/bin

If you want to build the static binary yourself

Without going into a nix-shell

nix-build static.nix