| 
									
										
										
										
											2019-10-31 20:43:47 -05: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 23:49:49 +01:00
										 |  |  | - [Generating Barcodes and QR Codes in Java](https://www.baeldung.com/java-generating-barcodes-qr-codes) | 
					
						
							| 
									
										
										
										
											2020-07-07 14:18:10 +03:00
										 |  |  | - [Rate Limiting a Spring API Using Bucket4j](https://www.baeldung.com/spring-bucket4j) | 
					
						
							| 
									
										
										
										
											2020-07-21 20:55:26 +08:00
										 |  |  | - [Spring Boot and Caffeine Cache](https://www.baeldung.com/spring-boot-caffeine-cache) | 
					
						
							| 
									
										
										
										
											2020-08-28 17:56:09 +05:30
										 |  |  | - [Spring Boot and Togglz Aspect](https://www.baeldung.com/spring-togglz) | 
					
						
							|  |  |  | - [Getting Started with GraphQL and Spring Boot](https://www.baeldung.com/spring-graphql) | 
					
						
							| 
									
										
										
										
											2021-11-17 08:39:05 +01:00
										 |  |  | - More articles: [[next -->]](/spring-boot-modules/spring-boot-libraries-2) | 
					
						
							| 
									
										
										
										
											2020-11-21 09:53:42 +01: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}"}' | 
					
						
							|  |  |  | ``` |