garbles / garbles/kitimat

GraphQL bindings.

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
68
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Inspired by `mockServer` in [GraphQL tools](https://github.com/apollographql/graphql-tools), create GraphQL bindings for Kitimat. Given a `schema.json` and a query, I should create a generator.

```ts
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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the GraphQL tools `mockServer` reference and inspect the planned `packages` area for `kitimat-graphql`. Trace the proposed `fromGraphQL(schema)` entry point and its query-generator usage with `schema.json`. Done means a schema and query can produce the generator shown in the example, with the component check receiving the generated result.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.