Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化对 GraphQL mock 的支持 #82

Open
benjycui opened this issue May 30, 2016 · 4 comments
Open

优化对 GraphQL mock 的支持 #82

benjycui opened this issue May 30, 2016 · 4 comments

Comments

@benjycui
Copy link
Member

如果项目使用了 GraphQL,那么所有的请求都是往同一个 url post GraphQL 语句,现在的话只能通过自定义函数替换请求,感觉都要把整个服务器给实现出来了 😂

@sorrycc
Copy link
Member

sorrycc commented May 30, 2016

没用过 GraphQL,不过感觉可以在自定义函数里做文章。

@benjycui
Copy link
Member Author

所以会有这个问题。。

现在的话只能通过自定义函数替换请求,感觉都要把整个服务器给实现出来了 😂

@sorrycc
Copy link
Member

sorrycc commented May 31, 2016

有具体点的建议吗?

@sskyy
Copy link

sskyy commented May 31, 2016

mock 使用 express 还是 koa 实现的?express 的话可以考虑加载 express-graphQL 中间件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants