概要
Sample GraphQL server implemented with graphql-java and Spring Boot
Web・アプリ開発計測したスター増加
- 24時間
- +1
- 7日間
- +1
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルgraphql-java-spring-boot-example
Sample app for my tutorial Building a GraphQL Server with Spring Boot.
Updated by @Ansonator to recent versions of Spring Boot and GraphQL Java.
The tutorial branch contains the original demo app.
You'll need Java 11 or 17.
Clone this repo and execute mvnw spring-boot:run. Or inside an IDE, execute the class com.example.DemoGraphQL.DemoGraphQlApplication.
To access the database, you can go to http://localhost:8080/h2-console/login.jsp and enter the following information:
- JDBC URL: jdbc:h2:mem:testdb
- User Name: sa
- Password:
Or go to http://localhost:8080/graphiql to start executing queries. For example:
{
findAllBooks {
id
isbn
title
pageCount
author {
firstName
lastName
}
}
}
Or:
mutation {
newBook(
title: "Java: The Complete Reference, Tenth Edition",
isbn: "1259589331",
author: 1) {
id title
}
}
Extras
This build demos some UIs hosted at graphql-java-kickstart.
- Launch with
mvn spring-boot:run - Open a browser to view UIs at the following links:
License
MIT
関連プロジェクトを探す
読み込み中…