Skip to main content

@portkey/graphql

Introduction

Installation

npm install @portkey/graphql

Usage

GraphQL Code Generator is a tool that generates code out of your GraphQL schema. Whether you are developing a frontend or backend, you can utilize GraphQL Code Generator to generate output from your GraphQL Schema and GraphQL Documents (query/mutation/subscription/fragment).

Command to generate files

you can generate files with the following command.

yarn generate

Configuration

GraphQL Code Generator relies on a [configuration file] named codegen.config.ts to manage all possible options, input, and output document types.

For more configuration and functions, see [docs page]

Online web tool

You can do this online through a web page

Home - GraphQL Code Generator

Visual Example Links