@portkey/graphql
TypeScript icon, indicating that this package has built-in type declarations

2.5.6 • Public • Published

@portkey/graphql

ES Version Node Version NPM Package Version

It is already possible to follow the standard apollo tutorial to add apollo client to your application. However, Portkey provides graphql integration packages those simplify the integration and usage.

Installation

Using NPM

npm install @portkey/graphql

Using Yarn

yarn add @portkey/graphql

Prerequisites

Package.json Scripts

Script Description
clean Uses rm to remove dist/
build Uses tsc to build package and dependent packages
lint Uses eslint to lint package
lint:fix Uses eslint to check and fix any warnings
format Uses prettier to format the code
generate generate files with the following

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.

Links

For more configuration and functions, see docs page

Online web tool

You can do this online through a web page

the-guild.dev/graphql/codegen

Readme

Keywords

none

Package Sidebar

Install

npm i @portkey/graphql

Weekly Downloads

3,384

Version

2.5.6

License

ISC

Unpacked Size

312 kB

Total Files

132

Last publish

Collaborators

  • carbon-lv
  • aurora_v5_ptk
  • frankportkey
  • codingwizard-portkey
  • portkey-david
  • potterp
  • yellow.m