Skip to content

Commit 1a8a4b9

Browse files
authored
[Fusion] Included subdirectories when reading source schemas (#8495)
1 parent a4fecef commit 1a8a4b9

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/HotChocolate/Fusion-vnext/src/Fusion.CommandLine/Commands/ComposeCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ private static async Task<IEnumerable<string>> ReadSourceSchemasAsync(
484484
{
485485
sourceSchemaFilePaths =
486486
new DirectoryInfo(workingDirectory)
487-
.GetFiles("*.graphql*")
487+
.GetFiles("*.graphql*", SearchOption.AllDirectories)
488488
.Where(f => IsGraphQLSchemaFile(f.Name))
489489
.Select(i => i.FullName)
490490
.ToImmutableSortedSet();

src/HotChocolate/Fusion-vnext/test/Fusion.CommandLine.Tests/ComposeCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ namespace HotChocolate.Fusion;
88
public sealed class ComposeCommandTests
99
{
1010
private static readonly string s_validExample1CompositeSchema =
11-
File.ReadAllText("__resources__/valid-example-1/result/composite-schema.graphqls");
11+
File.ReadAllText("__resources__/valid-example-1-result/composite-schema.graphqls");
1212

1313
private static readonly string s_invalidExample1CompositeSchema =
14-
File.ReadAllText("__resources__/invalid-example-1/result/composite-schema.graphqls");
14+
File.ReadAllText("__resources__/invalid-example-1-result/composite-schema.graphqls");
1515

1616
[Fact]
1717
public async Task Compose_ValidExample1_FromSpecified_ToStdOut()

0 commit comments

Comments
 (0)