Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gnawf committed Oct 21, 2024
1 parent e6a22bb commit 402fa84
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import graphql.nadel.definition.hydration.NadelHydrationDefinition
import graphql.nadel.definition.hydration.getHydrationDefinitions
import graphql.nadel.definition.renamed.NadelRenamedDefinition
import graphql.nadel.definition.renamed.getRenamedOrNull
import graphql.nadel.engine.blueprint.directives.isVirtualType
import graphql.nadel.definition.virtualType.isVirtualType
import graphql.nadel.engine.blueprint.hydration.NadelBatchHydrationMatchStrategy
import graphql.nadel.engine.blueprint.hydration.NadelHydrationActorInputDef
import graphql.nadel.engine.blueprint.hydration.NadelHydrationActorInputDef.ValueSource.FieldResultValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import graphql.nadel.definition.hydration.NadelHydrationArgumentDefinition
import graphql.nadel.definition.hydration.NadelHydrationDefinition
import graphql.nadel.definition.hydration.getHydrationDefinitions
import graphql.nadel.definition.renamed.isRenamed
import graphql.nadel.engine.blueprint.directives.isVirtualType
import graphql.nadel.definition.virtualType.isVirtualType
import graphql.nadel.engine.util.getFieldAt
import graphql.nadel.engine.util.getFieldsAlong
import graphql.nadel.engine.util.isList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,13 +532,13 @@ sealed interface NadelSchemaValidationError {
data class MissingRename(
val parentType: NadelServiceSchemaElement,
val overallField: GraphQLFieldDefinition,
val rename: NadelRenamedDefinition,
val rename: NadelRenamedDefinition.Field,
) : NadelSchemaValidationError {
val service: Service get() = parentType.service

override val message = run {
val of = makeFieldCoordinates(parentType.overall.name, overallField.name)
val uf = "${parentType.underlying.name}.${rename.from.joinToString(separator = ".")}"
val uf = "${parentType.underlying.name}.${rename.rawFrom}"
val s = service.name
"Overall field $of defines rename but underlying field $uf on service $s doesn't exist"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import graphql.Scalars.GraphQLID
import graphql.Scalars.GraphQLString
import graphql.language.UnionTypeDefinition
import graphql.nadel.Service
import graphql.nadel.engine.blueprint.directives.isVirtualType
import graphql.nadel.definition.virtualType.isVirtualType
import graphql.nadel.engine.util.AnyNamedNode
import graphql.nadel.engine.util.all
import graphql.nadel.engine.util.isExtensionDef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package graphql.nadel.validation.util

import graphql.language.UnionTypeDefinition
import graphql.nadel.Service
import graphql.nadel.definition.hydration.isHydrated
import graphql.nadel.engine.util.AnySDLNamedDefinition
import graphql.nadel.engine.util.unwrapAll
import graphql.nadel.validation.util.NadelCombinedTypeUtil.getFieldsThatServiceContributed
Expand Down

0 comments on commit 402fa84

Please sign in to comment.