+ <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":apollo-ast/commonMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="index.html">IncompatibleDefinition</a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">name<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token punctuation">, </span></span><span class="parameter ">expectedDefinition<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token punctuation">, </span></span><span class="parameter "><span class="token keyword">val </span>sourceLocation<span class="token operator">: </span><a href="../-source-location/index.html">SourceLocation</a><span class="token operator">?</span></span></span><span class="token punctuation">)</span> : <a href="../-graph-q-l-validation-issue/index.html">GraphQLValidationIssue</a></div><p class="paragraph">The provided schema contains a definition that doesn't match the GraphQL specification.</p><p class="paragraph">This may happen in particular for directive that are in the process of being specified like <code class="lang-kotlin">@defer</code> (as of Jul 2025).</p><p class="paragraph">Because the Apollo compiler expects a certain shape of directive and arguments, anything else may trigger a crash in the compiler. By validating explicitly, the error is more explicit.</p></div></div>
0 commit comments