0.2.1 • Published 6 years ago

xenk v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

xenk

GraphQL query builder.

examples

import {createQuery, field, types} from 'xenk'

const queryField = field(
  'post', 
  [
    'id',
    'title',
    'text',
    field('author', ['name', 'email'])
  ], 
  {id: 'postid'}
);

const query = createQuery(queryField, {
  postid: types.id.notNull
});

console.log(query)
/*
query ($postid: ID!) {
  post (id: $postid) {
    id
    title
    text
    author {
      name
      email
    }
  }
}
*/
0.2.1

6 years ago

0.2.0

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago