File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
main/kotlin/graphql/kickstart/tools
test/kotlin/graphql/kickstart/tools Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ internal class SchemaClassScanner(
4444 private val fieldResolverScanner = FieldResolverScanner (options)
4545 private val typeClassMatcher = TypeClassMatcher (definitionsByName)
4646 private val dictionary = mutableMapOf<TypeDefinition <* >, DictionaryEntry > ()
47- private val unvalidatedTypes = mutableSetOf<TypeDefinition <* >>(* scalarDefinitions.toTypedArray() )
47+ private val unvalidatedTypes = mutableSetOf<TypeDefinition <* >>()
4848 private val queue = linkedSetOf<QueueItem >()
4949
5050 private val fieldResolversByType = mutableMapOf<ObjectTypeDefinition , MutableMap <FieldDefinition , FieldResolver >>()
Original file line number Diff line number Diff line change @@ -434,11 +434,6 @@ class SchemaClassScannerTest {
434434
435435 # these directives are defined in the Apollo Federation Specification:
436436 # 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-
442437 type User @key(fields: "id") @extends {
443438 id: ID! @external
444439 recentPurchasedProducts: [Product]
@@ -454,7 +449,6 @@ class SchemaClassScannerTest {
454449 })
455450 .options(SchemaParserOptions .newOptions().includeUnusedTypes(true ).build())
456451 .dictionary(User ::class )
457- .scalars(fieldSet)
458452 .build()
459453 .makeExecutableSchema()
460454
@@ -477,16 +471,6 @@ class SchemaClassScannerTest {
477471 var street: String? = null
478472 }
479473
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-
490474 @Test
491475 fun `scanner should handle unused types with interfaces when option is true` () {
492476 val schema = SchemaParser .newParser()
You can’t perform that action at this time.
0 commit comments