0.0.5 • Published 2 years ago

ohmygraphql v0.0.5

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

ohmygraphql

A GraphQL hook to generate query string for client in Javascript / Typescript.

It just generates query string, but not depends on .gql or .graphql.

:cry: It's too hard for me to make it more friendly with typescript.

use

import { useGraphql } from "ohmygraphql"

const query = useGraphql({
  operation: "query",
  scope: {
    name: "user",
    // args: {}, // if use mutation, args are required
    body: ["id", "name" /** { ... } another scope */],
  },
})

// result: query{user{id,name}}

license

MIT

0.0.3

2 years ago

0.0.2

2 years ago

0.0.5

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago