Skip to content

GraphQL bindings. #3

@garbles

Description

@garbles

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions