command

package
v0.0.0-...-92be286 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenTestSnapshots

func GenTestSnapshots(args *GenTestSnapshotArguments) error

GenTestSnapshots generates test snapshots from NDC schema

Types

type GenTestSnapshotArguments

type GenTestSnapshotArguments struct {
	Schema   string                     `help:"NDC schema file path. Use either endpoint or schema path"`
	Endpoint string                     `help:"The endpoint of the connector. Use either endpoint or schema path"`
	Dir      string                     `help:"The directory of test snapshots."`
	Depth    uint                       `help:"The selection depth of nested fields in result types." default:"10"`
	Query    []string                   `help:"Specify individual queries to be generated. Separated by commas, or 'all' for all queries"`
	Mutation []string                   `help:"Specify individual mutations to be generated. Separated by commas, or 'all' for all mutations"`
	Strategy internal.WriteFileStrategy `help:"Decide the strategy to do when the snapshot file exists. Accept: none, override" enum:"none,override" default:"none"`
}

GenTestSnapshotArguments represents arguments for test snapshot generation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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