Решение:
import { json } from 'express' server.use(json({ limit: '50mb' })); graphqlServer.applyMiddleware({ app: server, path: '/api', })