-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f95b257
commit bd96d8b
Showing
3 changed files
with
101 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
test/src/test/resources/fixtures/scalars/long-scalar-argument-with-default-values.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "long scalar argument with default values" | ||
enabled: true | ||
# language=GraphQL | ||
overallSchema: | ||
service: | | ||
type Query { | ||
getFoo(arg: Long = 123): String | ||
} | ||
scalar Long | ||
# language=GraphQL | ||
underlyingSchema: | ||
service: | | ||
type Query { | ||
getFoo(arg: Long = 123): String | ||
} | ||
scalar Long | ||
query: | | ||
query { | ||
getFoo(arg: 15) | ||
} | ||
variables: { } | ||
serviceCalls: | ||
- serviceName: "service" | ||
request: | ||
# language=GraphQL | ||
query: | | ||
query { | ||
getFoo(arg: 15) | ||
} | ||
variables: { } | ||
# language=JSON | ||
response: |- | ||
{ | ||
"data": { | ||
"getFoo": "KFC Good" | ||
}, | ||
"extensions": {} | ||
} | ||
# language=JSON | ||
response: |- | ||
{ | ||
"data": { | ||
"getFoo": "KFC Good" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters