Skip to content

This is an implementation of GraphQL Tutorial for Java using Clean Architecture principles. This application also gives an example of how to use GraphQL with data stored in a database.

Notifications You must be signed in to change notification settings

flaviotvrs/graphql-demo-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Tutorial Implementation

This is an implementation of GraphQL Tutorial for Java using Clean Architecture principles. This application also gives an example of how to use GraphQL with data stored in a database.

The purpose of this project is learning GraphQL technology, how to develop and how to test it.

Getting Started

Run Locally

$ mvn spring-boot:run

Application will be available at http://localhost:8080/graphql .

Sample Query

The sample query below searches for books that contains the word "Tower" in the name, returns book and its author information:

curl \
	-X POST \
	-H "Content-Type: application/json" \
	--data '{ "query" : "{ bookByName(name: \"Tower\"){ id name pageCount author { firstName lastName } } }" }' \
	http://localhost:8080/graphql

Going further

You can navigate through all data provided by this application visiting this file.

Built With

  • Maven - Dependency Management.
  • Spring-Boot - Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".
  • GraphQL - GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.
  • H2 Database - In-memory database.

About

This is an implementation of GraphQL Tutorial for Java using Clean Architecture principles. This application also gives an example of how to use GraphQL with data stored in a database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages