Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL bindings. #3

Open
garbles opened this issue Mar 20, 2018 · 0 comments
Open

GraphQL bindings. #3

garbles opened this issue Mar 20, 2018 · 0 comments

Comments

@garbles
Copy link
Owner

garbles commented Mar 20, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant