UnknownDirective

class UnknownDirective(val message: String, val sourceLocation: SourceLocation?) : GraphQLValidationIssue

An unknown directive was found.

In case a user rely on non-introspection schemas (that do not contain directives definitions), the apollo compiler:

  • adds the built-in directives (@include, @skip, ...)

  • adds the kotlin_labs/v3 directives (for legacy reasons, will be removed in a future version)

For anything else, including @defer and @oneOf, a full schema is required so that the compiler can do feature detection and validate operation based on what the server actually supports.

Constructors

Link copied to clipboard
constructor(message: String, sourceLocation: SourceLocation?)

Properties

Link copied to clipboard
open override val message: String
Link copied to clipboard
open override val sourceLocation: SourceLocation?