GraphQL(七) JAP&MySQL整合实现CURD

前面我们学习了GraphQL 的相关基础知识,比如使用SDL或者Java类型实现简单的查询

相关的代码

创建数据库DDL

create table author
(
	id bigint auto_increment comment '主键'
		primary key,
	created_time timestamp default CURRENT_TIMESTAMP not null comment '创建时间',
	updated_time timestamp default CURRENT_TIMESTAMP not null comment '更新时间',
	first_name varchar(50) null comment 'firstName',
	last_name varchar(50) null comment 'lastName'
);

相关代码

https://github.com/tangyaya8/graphql-curd

你可能感兴趣的:(GraphQL)