New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More โ†’
Socket
Sign inDemoInstall
Socket

@portkey/graphql

Package Overview
Dependencies
Maintainers
4
Versions
371
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portkey/graphql

![ES Version](https://img.shields.io/badge/ES-2020-yellow) ![Node Version](https://img.shields.io/badge/node-14.x-green) [![NPM Package Version][npm-image-version]][npm-url]

2.0.0-alpha.5
Source
npm
Version published
Weekly downloads
590
-58.39%
Maintainers
4
Weekly downloads
ย 
Created
Source

@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

  • :gear: NodeJS (LTS/Fermium)
  • :toolbox: Yarn/Lerna

Package.json Scripts

ScriptDescription
cleanUses rm to remove dist/
buildUses tsc to build package and dependent packages
lintUses eslint to lint package
lint:fixUses eslint to check and fix any warnings
formatUses prettier to format the code
generategenerate 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.

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

FAQs

Package last updated on 18 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts