Beispiel #1
0
    public async Task Multiple_nested_AddQueryField()
    {
        var query  = @"
{
  queryFieldWithInclude
  {
    includeNonQueryableB
    {
      id
    }
  }
}";
        var level2 = new IncludeNonQueryableA();
        var level1 = new IncludeNonQueryableB
        {
            IncludeNonQueryableA = level2,
        };

        level1.IncludeNonQueryableA = level2;

        await using var database = await sqlInstance.Build();

        var result = await RunQuery(database, query, null, null, level1, level2);

        await Verifier.Verify(result);
    }
Beispiel #2
0
    public async Task Multiple_nested_AddQueryField()
    {
        var query  = @"
{
  queryFieldWithInclude
  {
    includeNonQueryableB
    {
      id
    }
  }
}";
        var level2 = new IncludeNonQueryableA();
        var level1 = new IncludeNonQueryableB
        {
            IncludeNonQueryableA = level2,
        };

        level1.IncludeNonQueryableA = level2;

        await using var database = await sqlInstance.Build();
        await RunQuery(database, query, null, null, false, new object[] { level1, level2 });
    }