relaycompmul

package module
v0.0.0-...-b94d1a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 4 Imported by: 0

README

relaycompmul

The relaycompmul is a linter for GraphQL schemas. This linter outout errors when fields that follow relay cursor connections specificaiton and do not have @complexity directive or lack mul arguments of @complexity.

Quick Start

installation
$ go install github.com/Warashi/compgen/linter/relaycompmul/cmd/relaycompmul@latest

The relaycompmul command has two flags, schema and query which will be parsed and analyzed by relaycompmul's Analyzer.

Usage
$ relaycompmul -schema="server/graphql/schema/**/*.graphql" -query="client/**/*.graphql"

The default value of schema is "schema//**.graphql" and query is query//**.graphql.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &gqlanalysis.Analyzer{
	Name: "relaycompmul",
	Doc:  "relaycompmul finds a relay cursor connection fields which not have @complexity directive or its mul argument.",
	Run:  run,
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL