File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
apollo-ast/src/commonMain/kotlin/com/apollographql/apollo3/ast
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/ir Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ private fun GQLValue?.toCatchTo(): CatchTo {
135135}
136136
137137@ApolloInternal
138- fun List<GQLDirective>.findCatchs (schema : Schema ): List <Catch > {
138+ fun List<GQLDirective>.findCatches (schema : Schema ): List <Catch > {
139139 return filter {
140140 schema.originalDirectiveName(it.name) == Schema .CATCH
141141 }.map {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import com.apollographql.apollo3.ast.TransformResult
3434import com.apollographql.apollo3.ast.VariableUsage
3535import com.apollographql.apollo3.ast.definitionFromScope
3636import com.apollographql.apollo3.ast.fieldDefinitions
37- import com.apollographql.apollo3.ast.findCatchs
37+ import com.apollographql.apollo3.ast.findCatches
3838import com.apollographql.apollo3.ast.findDeprecationReason
3939import com.apollographql.apollo3.ast.findNonnull
4040import com.apollographql.apollo3.ast.findNooeLevels
@@ -493,7 +493,7 @@ internal class IrOperationsBuilder(
493493 }
494494
495495 override fun merge (fields : List <FieldWithParent >): List <MergedField > {
496- val defaultCatch = schema.schemaDefinition?.directives?.findCatchs (schema)?.singleOrNull()
496+ val defaultCatch = schema.schemaDefinition?.directives?.findCatches (schema)?.singleOrNull()
497497
498498 return fields.map { fieldWithParent ->
499499 val gqlField = fieldWithParent.gqlField
@@ -541,7 +541,7 @@ internal class IrOperationsBuilder(
541541 nooes = nooeLevels,
542542 forceOptional = gqlField.directives.optionalValue(schema) == true ,
543543 parentType = fieldWithParent.parentType,
544- catchs = gqlField.directives.findCatchs (schema)
544+ catchs = gqlField.directives.findCatches (schema)
545545 )
546546 }.groupBy {
547547 it.responseName
You can’t perform that action at this time.
0 commit comments