1.0.15 • Published 2 years ago

mtx-graphql-server v1.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

代码生成 @graphql-codegen

https://github.com/rangle/apollo-rest-example/tree/master/graphql-server

用法:

const gServer = mtxApolloServer.createGraphqlServerHandler(expressApp)
gServer.start().then(() => {
    console.log("mtx-graphql applyMiddleware");
    gServer.applyMiddleware({
        app: this.express,
        path: "/graphql",
    });

    this.express.get('/', function (req, res, next) {
        res.end('other router');
    })
})