1 Star 0 Fork 1

光魔科技/vertx-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.adoc 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
rogelio-o 提交于 2019-08-26 20:27 . Add description to README

Vert.x Web GraphQL examples

Here you will find examples demonstrating Vert.x Web GraphQL in action.

Vert.x Web GraphQL extends Vert.x Web with the GraphQL-Java library so that you can build a GraphQL server.

Simple GraphQL server and client

This example uses the Vert.x Web client to send a request to the GraphQL server and log the response.

The backend is a very basic Hackernews clone: it holds a list of web pages, as well as info about the user who posted each link. The GraphQL schema describes the data with:

  • Link and User types

  • the allLinks query

First you need to run the server then you can run the client.

Apollo Subscriptions server and client

The client of this example starts an Apollo subscription on the server and log each message received. The connection is done through a Websocket.

The server responses with the link list of the simple exmple, but with each item in a separated websocket message.

First you need to run the server then you can run the client.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/3kgz/vertx-examples.git
git@gitee.com:3kgz/vertx-examples.git
3kgz
vertx-examples
vertx-examples
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385