0.2.1 • Published 7 years ago

xenk v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

0.2.0

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago