iven a schema in which different fields have different costs to execute, either because they require additional network or computing resources, or database access, or they
have some other dependency that makes them expensive to compute. You can add the <code>CostDirective</code> to your resolver like so:</p> <div class="language-scala mdoc:silent extra-class"><pre class="language-scala"><code><span class="token keyword">import</span> <span class="token namespace">caliban<span class="token punctuation">.</sp