Repository files navigation
Create a schema in MySQL named graphql-example-mysql
Modify spring:jpa:hibernate:ddl-auto: update to ddl-auto: create for the first time in Application.yml
Build it and run it
After run it will create all relevant tables for this project.
Modify spring:jpa:hibernate:ddl-auto: create to ddl-auto: update and run it again.
There will be a problem for patient table foreign key, what to do about it
After Run this project Go to MySQL and update patient table
UPDATE PATIENT SET GENDER_CODE = '1', NATIONALITY_CODE = '2' WHERE PATIENT_NO = '1';
UPDATE PATIENT SET GENDER_CODE = '2', NATIONALITY_CODE = '1' WHERE PATIENT_NO = '2';
UPDATE PATIENT SET GENDER_CODE = '3', NATIONALITY_CODE = '3' WHERE PATIENT_NO = '3';
UPDATE PATIENT SET GENDER_CODE = '4', NATIONALITY_CODE = '4' WHERE PATIENT_NO = '4';
From Postman you need to Query some Graphql query
There is a graphql-example-mysql.postman_collection.json file in root directory in this project
Import this file in postman
Here are all relevent Query for this graphql-example-mysql project
About
Graphql, Spring Boot, JPA, Hibernate, Maven, MySQL
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.