SchemaValidationOptions
constructor(addKotlinLabsDefinitions: Boolean, foreignSchemas: List<ForeignSchema>, excludeCacheDirectives: Boolean, computeKeyFields: Boolean)
Parameters
addKotlinLabsDefinitions
automatically import the kotlin_labs definitions, even if no @link is present. If excludeCacheDirectives is true, cache related directives are excluded.
foreignSchemas
a list of known ForeignSchema that may or may not be imported depending on the @link directives
excludeCacheDirectives
whether to exclude cache related directives when auto-importing the kotlin_labs definitions. Has no effect if addKotlinLabsDefinitions is false.
computeKeyFields
whether to compute cache key fields. Can be false when using the Apollo Cache compiler plugin to avoid unneeded computation.
constructor(addKotlinLabsDefinitions: Boolean, foreignSchemas: List<ForeignSchema>, excludeCacheDirectives: Boolean)