This is Functions as a Service (FaaS) serverless container which is used as a temprorary server-side application while a Server is main server-side logic and still been writting by the application developer unlike main architecture, it’s run in stateless compute container.
docker-compose build
docker-compose up
http://localhost:4000/graphql
{
# Get user's first name with id equal 200:
user(id: 200) {
firstName
}
# Get title and all members of event with id equal 100:
event(id: 100) {
title
members {
firstName
}
}
# Get all users id and first name:
users {
id
firstName
}
# Get all events id and title:
events {
id
title
}
}
mutation {
# Create new user and get his id and email:
createUser(email: "[email protected]") {
id
email
}
# Create new event and get its id and title:
createEvent(title: "Data Science Course") {
id
title
}
# Remove user with id equal 200:
deleteUser(id: 200)
# Remove event with id equal 300:
deleteEvent(id: 300)
}
yarn
yarn start
yarn watch
yarn debug
Start Debugging in VScode