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: generator/graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/generator/execution/KotlinDataFetcherFactoryProvider.kt
+9
Original file line number
Diff line number
Diff line change
@@ -62,3 +62,12 @@ open class SimpleKotlinDataFetcherFactoryProvider : KotlinDataFetcherFactoryProv
62
62
PropertyDataFetcher(kProperty.getter)
63
63
}
64
64
}
65
+
66
+
/**
67
+
* [SimpleSingletonKotlinDataFetcherFactoryProvider] is a specialization of [SimpleKotlinDataFetcherFactoryProvider] that will provide a
68
+
* a [SingletonPropertyDataFetcher] that should be used to target property resolutions without allocating a DataFetcher per property
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-schema-generator/src/test/kotlin/com/expediagroup/graphql/generator/PolymorphicTests.kt
+11-11
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ class PolymorphicTests {
37
37
38
38
@Test
39
39
fun`Schema generator creates union types from marked up interface`() {
40
-
val schema = toSchema(queries =listOf(TopLevelObject(QueryWithUnion())), config = testSchemaConfig)
40
+
val schema = toSchema(queries =listOf(TopLevelObject(QueryWithUnion())), config = testSchemaConfig())
41
41
42
42
val graphqlType = schema.getType("BodyPart") as?GraphQLUnionType
43
43
assertNotNull(graphqlType)
@@ -54,7 +54,7 @@ class PolymorphicTests {
54
54
55
55
@Test
56
56
fun`SchemaGenerator can expose an interface and its implementations`() {
57
-
val schema = toSchema(queries =listOf(TopLevelObject(QueryWithInterface())), config = testSchemaConfig)
57
+
val schema = toSchema(queries =listOf(TopLevelObject(QueryWithInterface())), config = testSchemaConfig())
58
58
59
59
val interfaceType = schema.getType("AnInterface") as?GraphQLInterfaceType
60
60
assertNotNull(interfaceType)
@@ -68,20 +68,20 @@ class PolymorphicTests {
68
68
@Test
69
69
fun`Interfaces cannot be used as input field types`() {
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-schema-generator/src/test/kotlin/com/expediagroup/graphql/generator/SchemaGeneratorAsyncTests.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ class SchemaGeneratorAsyncTests {
42
42
43
43
@Test
44
44
fun`SchemaGenerator strips type argument from CompletableFuture to support async servlet`() {
45
-
val schema = toSchema(queries =listOf(TopLevelObject(AsyncQuery())), config = testSchemaConfig)
45
+
val schema = toSchema(queries =listOf(TopLevelObject(AsyncQuery())), config = testSchemaConfig())
0 commit comments