Skip to content

Instantly share code, notes, and snippets.

View jsjaspreet's full-sized avatar

Jaspreet Singh jsjaspreet

View GitHub Profile
@jsjaspreet
jsjaspreet / generateSchema.js
Created March 7, 2018 19:40
Generate GraphQL Schema and Docs programmatically (adopted from Relay github)
import fs from 'fs';
import path from 'path';
import { graphql } from 'graphql';
import { introspectionQuery } from 'graphql/utilities';
import schema from './src/schema/index';
(async () => {
const result = await graphql(schema, introspectionQuery);
if (result.errors) {
console.error(
# ~/.tmuxinator/db-hw4.yml
name: os-proj2
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
pre:
- vagrant halt