ForeignSchema

class ForeignSchema(val name: String, val version: String, val definitions: List<GQLDefinition>, val directivesToStrip: List<String> = definitions.filterIsInstance<GQLDirective>().map { it.name })

A known foreign schema

Parameters

name

the name of the foreign schema as in https://specs.apollo.dev/link/v1.0/#@link.url

version

the version of the foreign schema as in https://specs.apollo.dev/link/v1.0/#@link.url

definitions

the definitions in the foreign schema

directivesToStrip

the name of directives that must be stripped before being sent to the server without the leading '@'. For an example: "catch"

Constructors

Link copied to clipboard
constructor(name: String, version: String, definitions: List<GQLDefinition>, directivesToStrip: List<String> = definitions.filterIsInstance<GQLDirective>().map { it.name })

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard