Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions kotlin_ignore/v0.1/kotlin_ignore-v0.1.graphql
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions kotlin_ignore/v0.1/kotlin_ignore-v0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# kotlin_ignore v0.1

<h2>Ignore directives that would otherwise clash with Apollo Kotlin</h2>

```raw html
<table class=spec-data>
<tr><td>Status</td><td>Draft</td>
<tr><td>Version</td><td>0.1</td>
</table>
<link rel=stylesheet href=https://specs.apollo.dev/apollo-light.css>
<script type=module async defer src=https://specs.apollo.dev/inject-logo.js></script>
```

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)