Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed upload scalar on SS #5333

Merged
merged 2 commits into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ public static class OperationDescriptorMapper
{
public static void Map(ClientModel model, IMapperContext context)
{
var hasUpload = false;
foreach (OperationModel modelOperation in model.Operations)
{
var hasUpload = false;

var arguments = modelOperation.Arguments.Select(
arg =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,5 +264,26 @@ scalar Upload
",
"extend schema @key(fields: \"id\")");
}

[Fact]
public void MultipleOperations_WithAndWithoutUpload()
{
AssertResult(
@"
query test(
$upload: Upload!
$string: String!) {
foo(string: $string upload: $upload)
}
query GetSomething { foo_bar_baz }
",
@"type Query {
foo_bar_baz: String
foo(string: String! upload: Upload!): String
}
scalar Upload
",
"extend schema @key(fields: \"id\")");
}
}
}
Loading