gql-queries-generator
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.2 • Public • Published

    gql-queries-autogenerator

    Autogenerate simplest client queries from graphql types. For example:

    type MessageSubType{
      author: String!,
      value: String!
    }
    

    converts to

    export const messageSubType = gql`
        query MessageSubType {
            author,
            value
        }
    `;

    Using:

    cli

    node index.js targetFile.js
    

    programming:

    const createQueries = require('gql-queries-generator').createQueries;
    // or `import {createQueries} from 'gql-queries-generator';`
    createQueries('d.js', {template: './template.js'})

    Installation:

    npm i -D gql-queries-generator
    

    Keywords

    none

    Install

    npm i gql-queries-generator

    DownloadsWeekly Downloads

    0

    Version

    1.1.2

    License

    ISC

    Unpacked Size

    11 kB

    Total Files

    9

    Last publish

    Collaborators

    • sanshain