Which question explains the mutation query not found problem of GraphQL inside?

  node.js, question

Referenceshttp://taobaofed.org/blog/201 …
Example: GraphQL Tutorial in inside
Invalid mutation query return value encountered definition of GraphQL schema inside
Use Postman to simulate post request, body data is mutationrootutuationtype {updatecount}, return value is Not Found
Node background execution statement for mutation query is

graphql(schema, ctx.request.body).then((result) => {
 ctx.body=JSON.stringify(result);
 })

The result result value is {data: {updateCount: 1}}
It seems that assigning it to ctx.body is invalid.
The console request log is
–> POST /graphql/test 404 53ms –

Query RootQueryType {count} queries do not have this problem.

Is there any difference between the two query mechanisms

Graphq version “0.7.1”
Koa Version “^2.0.0-alpha.7”
Koa-router Version “7.0.1”

The code is as follows

//schema.js
 import {
 GraphQLObjectType,
 GraphQLSchema,
 GraphQLInt
 } from 'graphql';
 let count = 0;
 let schema = new GraphQLSchema({
 query: new GraphQLObjectType({
 name: 'RootQueryType',
 fields: {
 count: {
 type: GraphQLInt,
 Description:' Quantity!'  ,
 resolve: function () {
 return count;
 bracket
 bracket
 bracket
 }),
 mutation: new GraphQLObjectType({
 name: 'RootMutationType',
 fields: {
 updateCount: {
 type: GraphQLInt,
 Description:' Number of updates',
 resolve: function () {
 Count plus = 1;
 return count;
 bracket
 bracket
 bracket
 })
 });
 export default schema;
 //route
 //graphqlTest.js
 import router from 'koa-router';
 import schema from '../model/schema';
 import { graphql } from 'graphql';
 var graphqlTest=router();
 
 graphqlTest.post('/graphql/test', function (ctx, next) {
 graphql(schema, ctx.request.body).then((result) => {
 ctx.body=JSON.stringify(result);
 })
 });
 export default graphqlTest;
graphqlTest.post('/graphql/test', function (ctx, next) {
 graphql(schema, ctx.request.body).then((result) => {
 ctx.body=JSON.stringify(result);
 })
 });

Change this to

graphqlTest.post('/graphql/test', async function (ctx, next) {
 await graphql(schema, ctx.request.body).then((result) => {
 ctx.body=JSON.stringify(result);
 })
 });

I wish I could