2019-10-31 21:43:47 -04:00
|
|
|
## Spring Boot Libraries
|
|
|
|
|
|
|
|
This module contains articles about various Spring Boot libraries
|
|
|
|
|
|
|
|
### The Course
|
|
|
|
The "REST With Spring" Classes: http://bit.ly/restwithspring
|
|
|
|
|
|
|
|
### Relevant Articles:
|
|
|
|
|
|
|
|
- [Guide to ShedLock with Spring](https://www.baeldung.com/shedlock-spring)
|
|
|
|
- [A Guide to the Problem Spring Web Library](https://www.baeldung.com/problem-spring-web)
|
2020-03-20 18:49:49 -04:00
|
|
|
- [Generating Barcodes and QR Codes in Java](https://www.baeldung.com/java-generating-barcodes-qr-codes)
|
2020-07-07 07:18:10 -04:00
|
|
|
- [Rate Limiting a Spring API Using Bucket4j](https://www.baeldung.com/spring-bucket4j)
|
2020-07-21 08:55:26 -04:00
|
|
|
- [Spring Boot and Caffeine Cache](https://www.baeldung.com/spring-boot-caffeine-cache)
|
2020-08-28 08:26:09 -04:00
|
|
|
- [Spring Boot and Togglz Aspect](https://www.baeldung.com/spring-togglz)
|
|
|
|
- [Getting Started with GraphQL and Spring Boot](https://www.baeldung.com/spring-graphql)
|
2022-06-29 09:51:58 -04:00
|
|
|
- [Expose GraphQL Field with Different Name](https://www.baeldung.com/graphql-field-name)
|
2021-11-17 02:39:05 -05:00
|
|
|
- More articles: [[next -->]](/spring-boot-modules/spring-boot-libraries-2)
|
2020-11-21 03:53:42 -05:00
|
|
|
|
|
|
|
### GraphQL sample queries
|
|
|
|
|
|
|
|
Query
|
|
|
|
```shell script
|
|
|
|
curl \
|
|
|
|
--request POST 'localhost:8081/graphql' \
|
|
|
|
--header 'Content-Type: application/json' \
|
|
|
|
--data-raw '{"query":"query {\n recentPosts(count: 2, offset: 0) {\n id\n title\n author {\n id\n posts {\n id\n }\n }\n }\n}"}'
|
|
|
|
```
|
|
|
|
|
|
|
|
Mutation
|
|
|
|
```shell script
|
|
|
|
curl \
|
|
|
|
--request POST 'localhost:8081/graphql' \
|
|
|
|
--header 'Content-Type: application/json' \
|
|
|
|
--data-raw '{"query":"mutation {\n writePost(title: \"New Title\", author: \"Author2\", text: \"New Text\") {\n id\n category\n author {\n id\n name\n }\n }\n}"}'
|
|
|
|
```
|