Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Tools and methods for reducing software development configuration based on graphql

A technology of software and tools, which is applied in the field of GraphQL-based software development and configuration reduction, to achieve the effects of saving man-hours, broad promotion space and use value, and reducing code

Active Publication Date: 2022-08-09
奇秦科技(北京)股份有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when using GraphQL, it is inseparable from some cumbersome definition files, which are the definition of Schema files, and the current way to write definition files is to provide tool projects, scan the corresponding entities under the specified package name to generate corresponding Schema and DataFetcher files , which can only be loaded by the user manually copying to the project maintained by the user, resulting in the problem of maintaining too many template generation classes

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
  • Tools and methods for reducing software development configuration based on graphql
  • Tools and methods for reducing software development configuration based on graphql
  • Tools and methods for reducing software development configuration based on graphql

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] like figure 1 As shown, this application discloses a GraphQL-based tool for reducing software R&D configuration, and the specific implementation steps are as follows:

[0050] Tools for reducing software R&D configuration based on GraphQL, including: initialization module, template engine generation module, persistent object information module, data structure generation module and release registration module;

[0051] The initialization module is used to process data based on the Spring framework command mode callback and initialize the Spring framework; the template engine generation module is used to initialize based on the Spring framework and generate a template file of a specified form through the Velocity template engine; the persistent object information module is used to generate a template file based on the template file. Scan the JPA framework data persistence layer through the Spring context to obtain persistent object information; the data structure generati...

Embodiment 2

[0080] like figure 2 As shown, the present application discloses a method for reducing and exempting software R&D configuration based on GraphQL, including the following contents:

[0081]Based on the Spring framework command mode callback processing data, the Spring framework is initialized; based on the Spring framework initialization, a template file of a specified form is generated through the Velocity template engine; based on the template file, the JPA framework data persistence layer is scanned through the Spring context to obtain persistent object information; based on persistence The corresponding schema and DataFetcher are generated by cyclically transforming the object information; schema is used for GraphQL to define data structure and object relationship; DataFetcher is the interface used for specific query adaptation in GraphQL;

[0082] Publish registration events, listen to events to generate GraphQL schema and DataFetcher.

[0083] Among them, the data is pr...

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

This application discloses a tool and method for reducing and exempting software R&D configuration based on GraphQL, based on the Spring framework command mode to call back and process data and initialize it; initialize the relevant environment variables of the Velocity template engine, and generate a template file in a specified form; scan the JPA framework data persistence through the Spring context The layer obtains all persistent object information; cyclically generates the corresponding schema and DataFetcher based on the persistent object information, publishes registration events, and listens to events to generate GraphQL schema and DataFetcher. It solves the problem of EntityInfo query serialization level, and dynamically generates the relevant Schema and the tool framework of the DataFetcher file when the product is running, thereby helping the development to realize the product requirements faster and meet the low-code requirements.

Description

technical field [0001] The present application belongs to the field of software research and development, and specifically relates to tools and methods for reducing and exempting software research and development configuration based on GraphQL. Background technique [0002] As we all know, Spring applications require a lot of configuration. Various XML configurations and annotation configurations are dazzling and error-prone, so Spring was once called "configuration hell". Some advantages of SpringBoot will not be repeated here, because the development of this product or project and this tool is also inseparable from the relevant foundation of SpringBoot. [0003] It mainly uses its starter to simplify Maven configuration. SpringBoot provides a series of "starter" project object models (POMS) to simplify Maven configuration. The GraphQL-related Starter basic package is also introduced based on SpringBoot. At the same time, this research and development Tools are also implem...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/71G06F8/73G06F8/20G06F8/30
CPCG06F8/71G06F8/73G06F8/24G06F8/315
Inventor 杨孟石必顺李飞张超群张瀚宇侯斌峰
Owner 奇秦科技(北京)股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products