SchemaValidationOptions

Constructors

Link copied to clipboard
constructor(addKotlinLabsDefinitions: Boolean, foreignSchemas: List<ForeignSchema>, excludeCacheDirectives: Boolean, computeKeyFields: Boolean, mergeOptions: MergeOptions)
constructor(addKotlinLabsDefinitions: Boolean, foreignSchemas: List<ForeignSchema>, excludeCacheDirectives: Boolean)
constructor(addKotlinLabsDefinitions: Boolean, foreignSchemas: List<ForeignSchema>)

Types

Link copied to clipboard
class Builder

Properties

Link copied to clipboard

add the builtin definitions. addBuiltinDefinitions allows validation of source schemas that don't contain builtin definitions. If null (default), only the missing definitions are added. If String is present, the schema is treated as a full schema and now builtin definitions are added.

Link copied to clipboard

import the kotlin_labs definitions, even if no @link is present. If excludeCacheDirectives is true, cache-related directives are excluded.

Link copied to clipboard

whether to compute cache key fields. Can be false when using the Apollo Cache compiler plugin to avoid unneeded computation.

Link copied to clipboard

whether to exclude cache-related directives when auto-importing the kotlin_labs definitions. Has no effect if addKotlinLabsDefinitions is false.

Link copied to clipboard

a list of known ForeignSchema that may or may not be imported depending on the @link directives

Link copied to clipboard

the options to use when merging extensions.