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.
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.
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。