0.1.2 • Published 4 years ago

graphile-gen-js v0.1.2

Weekly downloads
44
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

graphile-gen-js

Generate JS files for mutations/queries for your Graphile GraphQL projects

npm install graphile-gen-js
import { pg as gen } from 'graphile-gen-js';

gen.crudify(introspection);

will produce

  export const updateProductMutation = gql`
    mutation updateProductMutation($id: UUID!, $ownerId: UUID, $name: String, $rhinoFoot: String, $hiddenFoot: String, $lizardFeet: String) {
      updateProduct(input: {id: $id, patch: {ownerId: $ownerId, name: $name, rhinoFoot: $rhinoFoot, hiddenFoot: $hiddenFoot, lizardFeet: $lizardFeet}}) {
        product {
          id
          ownerId
          name
          rhinoFoot
          hiddenFoot
          lizardFeet
        }
      }
    }`;
0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago