Skip to content

Ivan8R/generate-graphql-gql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generate-graphql-gql

Generate queries from graphql schema.

Example

# Sample schema
type Query {
  user(id: Int!): User!
}

type User {
  id: Int!
  username: String!
  email: String!
  createdAt: String!
}
# Sample query generated
query user($id: Int!) {
  user(id: $id) {
    id
    username
    email
    createdAt
  }
}

Usage

# Install
npm install -d https://github.com/Ivan8R/generate-graphql-gql.git

# see the usage
agql --help

# Generate sample queries from schema file
agql -u 'url-to-schem'  -f "./example-folder-output/" -e "extension"
agql -u https://graphql-demo.mead.io/ -f graph -e ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published