error: {ballerina/lang.map}KeyNotFound {"message":"invalid field access: field 'address' not found in record type 'input_obj:NewProfile'"}
at ballerina.graphql.1.Engine:executeMutationMethod(engine.bal:484)
ballerina.graphql.1.Engine:resolveRemoteMethod(engine.bal:383)
ballerina.graphql.1.Engine:getFieldValue(engine.bal:434)
ballerina.graphql.1.Engine:resolve(engine.bal:343)
ballerina.graphql.1.ExecutorVisitor:execute(executor_visitor.bal:116)
ballerina.graphql.1:$anon$method$delegate$ExecutorVisitor.execute$0(executor_visitor.bal:78)
ballerina.graphql.1.ExecutorVisitor:visitField(executor_visitor.bal:81)
ballerina.graphql.parser.1.FieldNode:accept(field_node.bal:38)
ballerina.graphql.1.ExecutorVisitor:visitOperation(executor_visitor.bal:50)
ballerina.graphql.parser.1.OperationNode:accept(operation_node.bal:41)
ballerina.graphql.1.Engine:getResult(engine.bal:133)
ballerina.graphql.1:getResponseFromExecution(listener_utils.bal:101)
ballerina.graphql.1:getResponseFromQuery(listener_utils.bal:89)
ballerina.graphql.1:getResponseFromJsonPayload(listener_utils.bal:66)
ballerina.graphql.1:handlePostRequests(listener_utils.bal:43)
ballerina.graphql.1.$anonType$_15:$post$.(listener_utils.bal:348)
Description
GraphQL service crashes when the input object type variable value includes an additional field.
Steps to Reproduce
Consider the below service:
Service is crashing for the following GraphQL query.
variable:
output:
Version
2201.9.x
Environment Details (with versions)
No response