Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for generating GraphQL front-end operation interface

An operation interface and server-side technology, which is applied in the field of computer network application development, can solve the problems of unification of data conversion, high writing cost, and high cost.

Pending Publication Date: 2020-05-26
GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

More specifically, developers currently usually use the (online) help documents provided by GraphQL to quickly query the desired data (including the objects and object types involved, the fields in the objects, the types of fields, etc.), but when the types and fields When there are too many, the cost of manual maintenance is too high, and the data conversion cannot be unified
Therefore, the more complex the page logic, the more types and fields, the greater the writing cost
[0006] In addition, developers will maintain and manage the corresponding interface list in the project according to the type. When the fields of GraphQL change, they also need to modify the schema in the specified file, and the cost of maintenance and management is relatively high.
Moreover, developers do not have a common solution for data maintenance and data conversion. Sometimes it is in the API file, and sometimes it is in the code of the View layer.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating GraphQL front-end operation interface
  • Method and device for generating GraphQL front-end operation interface
  • Method and device for generating GraphQL front-end operation interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

[0044] figure 1 It exemplarily shows a schematic flowchart of a method for generating a GraphQL front-end operation interface according to the present invention.

[...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for generating a GraphQL front-end operation interface. The method disclosed by the invention comprises the following steps: displaying information of alltypes and objects supported by a GraphQL server to a developer through a GUI; obtaining selection information of a selected object needing to be operated by a developer through the GUI; based on selection information of the selected object, automatically generating a front end operation interface of GraphQL, wherein the type comprises a schema type, the selection information comprises attributesof a selected field in the selected object and specific field values of one or more selected fields, and the front-end operation comprises at least one of query, mutation and subscription. According to the technical scheme, the front-end operation interface can be rapidly generated, and a developer does not need to manually compile codes.

Description

technical field [0001] The invention relates to the field of computer network application development, in particular to a method and device for generating a GraphQL front-end operation interface. Background technique [0002] GraphQL is a revolutionary API tool in the field of computer network application development. Unlike the traditional RESTful API, it does not need to predefine the operation data required by the client on the server side, but allows the client to specify directly in the request. required operational data. [0003] GraphQL is both a query language for APIs and a runtime to satisfy data queries. GraphQL provides a complete set of easy-to-understand descriptions of the data in the API, enabling clients to obtain exactly the data they need without any redundancy, making it easier for the API to evolve over time, and can also be used for Build powerful developer tools. For example, sending a GraphQL request to the GraphQL server through an API implemented...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/30G06F8/38
CPCG06F8/31G06F8/38
Inventor 范溢贞刘晓钟苗辉
Owner GUIZHOU BAISHANCLOUD TECH CO LTD