This is me following Brad Traversy's youtube video
Year 2021
There is graphiql tool to play and test queries with
With graphql it's possible to get only parts of data
query {
allPosts {
id
title
}
}
Get count
query {
_allPostsMeta{
count
}
}
Can also mutate & create posts
mutation {
createPost(data: {
title: "Post Three",
body: "This is post three",
author: "Nover"
}){
id
}
}
You've created a KeystoneJS project! This project contains a simple list of users and an admin application (localhost:3000/admin
) with basic authentication.
To run this project first run npm install
. Note: If you generated this project via the Keystone cli step this has been done for you \o/.
Once running, the Keystone Admin UI is reachable via localhost:3000/admin
.
This example has no front-end application but you can build your own using the GraphQL API (http://localhost:3000/admin/graphiql
).