Skip to content

A sample Spring boot application for GraphQL service data through JDBC and XOR

License

Notifications You must be signed in to change notification settings

ddalton/graphql-jdbc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

graphql-jdbc

A sample Spring boot application for GraphQL service data through JDBC and XOR

It allows an end user to interact directly with an RDBMS database using XOR and GraphQL. No code is necessary apart from initializing the database connection details.

For this sample application we use the northwind schema from the following repo: https://github.com/pthom/northwind_psql

The script included in this repo is for the PostgreSQL database. So you will need to have a schema populated with this script to follow the examples described below.

startup the server by running: mvn spring-boot:run

or with debugging mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"

Get the GraphQL schema for the Northwind DB by running: curl http://localhost:8080/graphql

About

A sample Spring boot application for GraphQL service data through JDBC and XOR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages