stepci / garph

Fullstack GraphQL Framework for TypeScript
https://garph.dev
MIT License
1.31k stars 16 forks source link

Query, Mutation, Subscription convenience methods #22

Open mishushakov opened 1 year ago

mishushakov commented 1 year ago

Before:

const query = g.type('Query', {
  test: g.string()
})

After:

const query = g.query({
  test: g.string()
})