ForeignSchema

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

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"