diff --git a/kotlin_ignore/v0.1/kotlin_ignore-v0.1.graphql b/kotlin_ignore/v0.1/kotlin_ignore-v0.1.graphql new file mode 100644 index 0000000..675f100 --- /dev/null +++ b/kotlin_ignore/v0.1/kotlin_ignore-v0.1.graphql @@ -0,0 +1,14 @@ +""" +Tell the Apollo compiler to ignore this directive. +This can be used when some servers come with directives that would otherwise clash +with the special Apollo ones. + +```graphql +# Import the Apollo directive under a new name +extend schema @link(url: "https://specs.apollo.dev/kotlin_labs/v0.3/", import: [name: "@nonnull", as: "@apollo_nonnull"]) + +# And do not interpret the @nonnull directive +extend directive @nonnull @ignore +``` +""" +directive @ignore on DIRECTIVE_DEFINITION \ No newline at end of file diff --git a/kotlin_ignore/v0.1/kotlin_ignore-v0.1.md b/kotlin_ignore/v0.1/kotlin_ignore-v0.1.md new file mode 100644 index 0000000..8dd22af --- /dev/null +++ b/kotlin_ignore/v0.1/kotlin_ignore-v0.1.md @@ -0,0 +1,18 @@ +# kotlin_ignore v0.1 + +

Ignore directives that would otherwise clash with Apollo Kotlin

+ +```raw html + + + +
StatusDraft
Version0.1
+ + +``` + +This specification adds the `@ignore` directive. Is is separate from `@kotlin_labs` because it requires [directives on directives](https://github.com/graphql/graphql-spec/pull/567). + +#! @ignore + +:::[definition](kotlin_labs-v0.1.graphql#@ignore)