You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/server/ktor-server/src/main/kotlin/com/expediagroup/graphql/examples/server/ktor/schema/BookQueryService.kt
Copy file name to clipboardExpand all lines: examples/server/ktor-server/src/main/kotlin/com/expediagroup/graphql/examples/server/ktor/schema/CourseQueryService.kt
Copy file name to clipboardExpand all lines: examples/server/ktor-server/src/main/kotlin/com/expediagroup/graphql/examples/server/ktor/schema/UniversityQueryService.kt
Copy file name to clipboardExpand all lines: examples/server/spring-server/src/main/kotlin/com/expediagroup/graphql/examples/server/spring/query/DataLoaderQuery.kt
Copy file name to clipboardExpand all lines: executions/graphql-kotlin-automatic-persisted-queries/src/test/kotlin/com/expediagroup/graphql/apq/fixture/ProductGraphQL.kt
Copy file name to clipboardExpand all lines: executions/graphql-kotlin-dataloader-instrumentation/src/test/kotlin/com/expediagroup/graphql/dataloader/instrumentation/fixture/AstronautGraphQL.kt
Copy file name to clipboardExpand all lines: executions/graphql-kotlin-dataloader-instrumentation/src/test/kotlin/com/expediagroup/graphql/dataloader/instrumentation/fixture/ProductGraphQL.kt
Copy file name to clipboardExpand all lines: executions/graphql-kotlin-dataloader-instrumentation/src/test/kotlin/com/expediagroup/graphql/dataloader/instrumentation/fixture/datafetcher/AstronautService.kt
Copy file name to clipboardExpand all lines: executions/graphql-kotlin-dataloader-instrumentation/src/test/kotlin/com/expediagroup/graphql/dataloader/instrumentation/fixture/datafetcher/MissionService.kt
Copy file name to clipboardExpand all lines: executions/graphql-kotlin-dataloader-instrumentation/src/test/kotlin/com/expediagroup/graphql/dataloader/instrumentation/fixture/datafetcher/PlanetService.kt
Copy file name to clipboardExpand all lines: executions/graphql-kotlin-dataloader-instrumentation/src/test/kotlin/com/expediagroup/graphql/dataloader/instrumentation/fixture/datafetcher/ProductService.kt
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/execution/EntitiesDataFetcher.kt
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/execution/EntitiesDataFetcherTest.kt
+9-9
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ class EntitiesDataFetcherTest {
41
41
mapOf<String, Any>("__typename" to "User", "userId" to 123, "name" to "testName")
42
42
)
43
43
val env = mockk<DataFetchingEnvironment> {
44
-
every { getArgument<Any>(any()) } returns representations
44
+
every { getArgumentOrDefault<Any>(any(), any()) } returns representations
45
45
every { graphQlContext } returns GraphQLContext.newContext().build()
46
46
}
47
47
@@ -57,7 +57,7 @@ class EntitiesDataFetcherTest {
57
57
mapOf<String, Any>("__typename" to "Author", "authorId" to 1)
58
58
)
59
59
val env = mockk<DataFetchingEnvironment> {
60
-
every { getArgument<Any>(any()) } returns representations
60
+
every { getArgumentOrDefault<Any>(any(), any()) } returns representations
61
61
}
62
62
val result = resolver.get(env).get()
63
63
verifyData(result.data, Author(1, "Author 1"))
@@ -72,7 +72,7 @@ class EntitiesDataFetcherTest {
72
72
mapOf<String, Any>("__typename" to "User", "userId" to 123, "name" to "testName")
73
73
)
74
74
val env = mockk<DataFetchingEnvironment> {
75
-
every { getArgument<Any>(any()) } returns representations
75
+
every { getArgumentOrDefault<Any>(any(), any()) } returns representations
76
76
}
77
77
78
78
val result = resolver.get(env).get()
@@ -86,7 +86,7 @@ class EntitiesDataFetcherTest {
86
86
val mockUserResolver = mockk<FederatedTypeSuspendResolver<*>> { every { typeName } returns "User" }
87
87
val resolver =EntitiesDataFetcher(mockBookResolver, mockUserResolver)
88
88
val env = mockk<DataFetchingEnvironment> {
89
-
every { getArgument<Any>(any()) } returns listOf(emptyMap<String, Any>())
89
+
every { getArgumentOrDefault<Any>(any(), any()) } returns listOf(emptyMap<String, Any>())
90
90
every { graphQlContext } returns GraphQLContext.newContext().build()
91
91
}
92
92
@@ -100,7 +100,7 @@ class EntitiesDataFetcherTest {
100
100
val resolver =EntitiesDataFetcher(emptyList())
101
101
val representations =listOf(mapOf<String, Any>("__typename" to "User", "userId" to 123, "name" to "testName"))
102
102
val env = mockk<DataFetchingEnvironment> {
103
-
every { getArgument<Any>(any()) } returns representations
103
+
every { getArgumentOrDefault<Any>(any(), any()) } returns representations
104
104
every { graphQlContext } returns GraphQLContext.newContext().build()
105
105
}
106
106
@@ -118,7 +118,7 @@ class EntitiesDataFetcherTest {
118
118
val resolver =EntitiesDataFetcher(listOf(mockUserResolver))
119
119
val representations =listOf(mapOf<String, Any>("__typename" to "User", "userId" to 123, "name" to "testName"))
120
120
val env:DataFetchingEnvironment= mockk {
121
-
every { getArgument<Any>(any()) } returns representations
121
+
every { getArgumentOrDefault<Any>(any(), any()) } returns representations
122
122
every { graphQlContext } returns GraphQLContext.newContext().build()
123
123
}
124
124
@@ -136,7 +136,7 @@ class EntitiesDataFetcherTest {
136
136
}
137
137
val representations =listOf(user1.toRepresentation(), book.toRepresentation(), user2.toRepresentation())
138
138
val env = mockk<DataFetchingEnvironment> {
139
-
every { getArgument<Any>(any()) } returns representations
139
+
every { getArgumentOrDefault<Any>(any(), any()) } returns representations
140
140
every { graphQlContext } returns GraphQLContext.newContext().build()
141
141
}
142
142
@@ -163,7 +163,7 @@ class EntitiesDataFetcherTest {
163
163
}
164
164
val representations =listOf(user.toRepresentation(), book.toRepresentation())
165
165
val env = mockk<DataFetchingEnvironment> {
166
-
every { getArgument<Any>(any()) } returns representations
166
+
every { getArgumentOrDefault<Any>(any(), any()) } returns representations
167
167
every { graphQlContext } returns GraphQLContext.newContext().build()
168
168
}
169
169
@@ -195,7 +195,7 @@ class EntitiesDataFetcherTest {
195
195
)
196
196
197
197
val env = mockk<DataFetchingEnvironment> {
198
-
every { getArgument<Any>(any()) } returns representations
198
+
every { getArgumentOrDefault<Any>(any(), any()) } returns representations
199
199
every { graphQlContext } returns GraphQLContext.newContext().build()
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-schema-generator/src/test/kotlin/com/expediagroup/graphql/generator/directives/DirectiveTests.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,7 @@ class QueryWithDeprecatedFields {
160
160
data classClassWithDeprecatedField(
161
161
valsomething:String,
162
162
@Deprecated("this field is deprecated")
163
-
valdeprecatedField:String,
163
+
valdeprecatedField:String?,
164
164
@GraphQLDeprecated("this field is also deprecated")
Copy file name to clipboardExpand all lines: servers/graphql-kotlin-server/src/test/kotlin/com/expediagroup/graphql/server/execution/GraphQLRequestHandlerTest.kt
0 commit comments