This is an implementation of the sample photo application in Learning GraphQL. But unlike the book I use:
- DGS Framework + Spring Boot for backend
- MongoDB for database
- Execute Spring Boot
- GraphQL query playground is available on
http://localhost:8080/graphiql
- Log in with
mongosh -u root -p
- Choose db by
use graphql-practice;
- Check collection by
show collections;
, and get data bydb.<collection name>.find;
- If you connect from Intellij, don't forget to specify
authSource
asadmin
.