java-tutorials/spring-boot-modules/spring-boot-libraries
kwoyke c0a0247cf7 Merge branch 'master' into JAVA-3592 2021-11-25 09:03:54 +01:00
..
src JAVA-8374 Split or move spring-boot-libraries module 2021-11-17 08:39:05 +01:00
.gitignore BAEL-20869 Move remaining spring boot modules 2020-02-02 20:44:54 +01:00
README.md JAVA-8374 Split or move spring-boot-libraries module 2021-11-17 08:39:05 +01:00
mvnw BAEL-20869 Move remaining spring boot modules 2020-02-02 20:44:54 +01:00
mvnw.cmd BAEL-20869 Move remaining spring boot modules 2020-02-02 20:44:54 +01:00
pom.xml Merge pull request #11477 from freelansam/JAVA-3592 2021-11-22 09:22:17 +01:00

README.md

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:

GraphQL sample queries

Query

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

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}"}'