Skip to content

Commit 8e27509

Browse files
author
Jay Herron
committed
bug fix to extract incorrect names
1 parent 7f3f60a commit 8e27509

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/GraphQL/Subscription/Subscribe.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func executeSubscription(
199199

200200
guard let fieldDef = getFieldDef(schema: context.schema, parentType: type, fieldAST: fieldNode) else {
201201
throw GraphQLError.init(
202-
message: "`The subscription field '\(fieldNode.name)' is not defined.`",
202+
message: "`The subscription field '\(fieldNode.name.value)' is not defined.`",
203203
nodes: fieldNodes
204204
)
205205
}

0 commit comments

Comments
 (0)