kitimat icon indicating copy to clipboard operation
kitimat copied to clipboard

GraphQL bindings.

Open garbles opened this issue 7 years ago • 0 comments

Inspired by mockServer in GraphQL tools, create GraphQL bindings for Kitimat. Given a schema.json and a query, I should create a generator.

import { fromGraphQL } from 'kitimat-graphql';
improt schema from './schema.json';

const server = fromGraphQL(schema);

const queryGen = server(`query {
  me {
    id
    name
  }
}`);

check('my component renders', queryGen, result => {
  // ...
});

I'm already squating kitimat-graphql in packages.

garbles avatar Mar 20 '18 03:03 garbles