Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/timtebeek/graphql-jpa-spring-boot-starter

Spring Boot starter for GraphQL JPA; Expose JPA entities with GraphQL.
https://github.com/timtebeek/graphql-jpa-spring-boot-starter

Last synced: 25 days ago
JSON representation

Spring Boot starter for GraphQL JPA; Expose JPA entities with GraphQL.

Awesome Lists containing this project

README

        

# graphql-jpa-spring-boot-starter
Spring Boot starter for GraphQL JPA; Expose JPA entities with [GraphQL](http://graphql.org/).

Builds on [GraphQL for JPA](https://github.com/jcrygier/graphql-jpa),
which in turn builds on [GraphQL Java](https://github.com/graphql-java/graphql-java)
to expose JPA Entities through a `/graphql` endpoint.

Many thanks to @jcrygier for the initial hard work; This is mostly just a wrapper.

## Usage
1. Add the following dependency to your project `pom.xml` along with the repository.
```pom.xml



com.github.timtebeek
graphql-jpa-spring-boot-starter
0.0.3


...


bintray-timtebeek-maven
bintray
http://dl.bintray.com/timtebeek/maven


```
2. Start your project and navigate to http://localhost:8080/graphiql.html.

## Warning
This is terribly fun for exploratory projects but quite possibly a terrible idea when you later want to evolve your API. Proceed with caution; maybe read about REST? :)