File tree Expand file tree Collapse file tree 3 files changed +2
-18
lines changed
main/kotlin/graphql/kickstart/tools
test/kotlin/graphql/kickstart/tools Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 4
4
5
5
<groupId >com.graphql-java-kickstart</groupId >
6
6
<artifactId >graphql-java-tools</artifactId >
7
- <version >12.1.1-SNAPSHOT</version >
7
+ <version >12.1.1-oryan4- SNAPSHOT</version >
8
8
<packaging >jar</packaging >
9
9
10
10
<name >GraphQL Java Tools</name >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ internal class SchemaClassScanner(
44
44
private val fieldResolverScanner = FieldResolverScanner (options)
45
45
private val typeClassMatcher = TypeClassMatcher (definitionsByName)
46
46
private val dictionary = mutableMapOf<TypeDefinition <* >, DictionaryEntry > ()
47
- private val unvalidatedTypes = mutableSetOf<TypeDefinition <* >>(* scalarDefinitions.toTypedArray() )
47
+ private val unvalidatedTypes = mutableSetOf<TypeDefinition <* >>()
48
48
private val queue = linkedSetOf<QueueItem >()
49
49
50
50
private val fieldResolversByType = mutableMapOf<ObjectTypeDefinition , MutableMap <FieldDefinition , FieldResolver >>()
Original file line number Diff line number Diff line change @@ -434,11 +434,6 @@ class SchemaClassScannerTest {
434
434
435
435
# these directives are defined in the Apollo Federation Specification:
436
436
# https://www.apollographql.com/docs/apollo-server/federation/federation-spec/
437
- scalar _FieldSet
438
- directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE
439
- directive @extends on OBJECT | INTERFACE
440
- directive @external on FIELD_DEFINITION
441
-
442
437
type User @key(fields: "id") @extends {
443
438
id: ID! @external
444
439
recentPurchasedProducts: [Product]
@@ -454,7 +449,6 @@ class SchemaClassScannerTest {
454
449
})
455
450
.options(SchemaParserOptions .newOptions().includeUnusedTypes(true ).build())
456
451
.dictionary(User ::class )
457
- .scalars(fieldSet)
458
452
.build()
459
453
.makeExecutableSchema()
460
454
@@ -477,16 +471,6 @@ class SchemaClassScannerTest {
477
471
var street: String? = null
478
472
}
479
473
480
- private val fieldSet: GraphQLScalarType = GraphQLScalarType .newScalar()
481
- .name(" _FieldSet" )
482
- .description(" _FieldSet" )
483
- .coercing(object : Coercing <String , String > {
484
- override fun parseValue (input : Any ) = input.toString()
485
- override fun serialize (dataFetcherResult : Any ) = dataFetcherResult as String
486
- override fun parseLiteral (input : Any ) = input.toString()
487
- })
488
- .build()
489
-
490
474
@Test
491
475
fun `scanner should handle unused types with interfaces when option is true` () {
492
476
val schema = SchemaParser .newParser()
You can’t perform that action at this time.
0 commit comments