title: ASP.NET 6 HotChocolate SchemaStitching failure on remote schema fields
body: <p>I'm trying to change the example of <a href="https://github.com/ChilliCream/hotchocolate-examples/tree/master/misc/Stitching/centralized" rel="nofollow noreferrer">SchemStitching on GitHub</a> to use it from a products service instead of a gateway service.</p>
  <p>The idea is to extend schema of the product and include information from inventory &amp; reviews.</p>
  <p>The changes I make in the products service:</p>
  <p>add <code>stitiching.graphql</code> file with product type extension</p>
  <pre><code>extend type Product {
    inStock: Boolean
      @delegate(
        schema: &quot;inventory&quot;,
        path: &quot;inventoryInfo(upc: $fields:upc).isInStock&quot;)
    shippingEstimate: Int
      @delegate(
        schema: &quot;inventory&quot;
        path: &quot;shippingEstimate(weight: $fields:weight price: $fields:price)&quot;)
    reviews: [Review] @delegate(schema: &quot;reviews&quot; path:&quot;reviewsByProduct(upc: $fields:upc)&quot;)
  }
  </code></pre>
  <p>Change <code>Startup.cs</code> to register remote schemas for inventory &amp; reviews.</p>
  <pre><code>const string Inventory = &quot;inventory&quot;;
  const string Reviews = &quot;reviews&quot;;
  
  builder.Services.AddHttpClient(Inventory, 
      c =&gt; c.BaseAddress = new Uri(&quot;http://localhost:64309/graphql&quot;));
  builder.Services.AddHttpClient(Reviews, 
      c =&gt; c.BaseAddress = new Uri(&quot;http://localhost:64317/graphql&quot;));
  
  builder.Services
      .AddSingleton&lt;ProductRepository&gt;()
      .AddGraphQLServer()
      .AddQueryType&lt;Query&gt;()
      .AddRemoteSchema(Inventory, ignoreRootTypes: true)
      .AddRemoteSchema(Reviews, ignoreRootTypes: true)
      .AddTypeExtensionsFromFile(&quot;./Stitching.graphql&quot;);
  </code></pre>
  <p>When I run the application (running products, inventory, reviews services) in the hotchocolate playground running the following query</p>
  <pre><code>query {
    product(upc: 3) {
      name
      inStock
    }
  }
  </code></pre>
  <p>I get back error for <code>inStock</code></p>
  <pre><code>{
    &quot;errors&quot;: [
      {
        &quot;message&quot;: &quot;Variable `__fields_upc` is required.&quot;,
        &quot;extensions&quot;: {
          &quot;code&quot;: &quot;HC0018&quot;,
          &quot;variable&quot;: &quot;__fields_upc&quot;,
          &quot;remote&quot;: {
            &quot;message&quot;: &quot;Variable `__fields_upc` is required.&quot;,
            &quot;extensions&quot;: {
              &quot;code&quot;: &quot;HC0018&quot;,
              &quot;variable&quot;: &quot;__fields_upc&quot;
            }
          },
          &quot;schemaName&quot;: &quot;inventory&quot;
        }
      }
    ],
    &quot;data&quot;: {
      &quot;product&quot;: {
        &quot;name&quot;: &quot;Chair&quot;,
        &quot;inStock&quot;: null
      }
    }
  }
  </code></pre>
  <p>I can't figure out why upc field is not passed. It seems that validation fails on product service as I don't see any calls going out to inventory service.</p>
  <p>Any clue what the issue is ?</p>
  <p>I'm using ASP.NET 6 with</p>
  <pre><code>&lt;PackageReference Include=&quot;HotChocolate.AspNetCore&quot; Version=&quot;12.9.0&quot; /&gt;
  &lt;PackageReference Include=&quot;HotChocolate.Stitching&quot; Version=&quot;12.9.0&quot; /&gt;
  </code></pre>
  <p><strong>EDIT</strong></p>
  <p>It seems that <code>$fields:upc</code> is not getting resolved for inventory schema, because if I update the stitching schema with hard coded upc of 3</p>
  <pre><code>extend type Product {
    inStock: Boolean
      @delegate(
        schema: &quot;inventory&quot;,
        path: &quot;inventoryInfo(upc: 3).isInStock&quot;)
  }
  </code></pre>
  <p>And query the data</p>
  <pre><code>query {
    product(upc: 3) {
      upc
      name
      inStock
    }
  }
  </code></pre>
  <p>I get back results as expected</p>
  <pre><code>{
    &quot;data&quot;: {
      &quot;product&quot;: {
        &quot;upc&quot;: 3,
        &quot;name&quot;: &quot;Chair&quot;,
        &quot;inStock&quot;: true
      }
    }
  }
  </code></pre>