Example based on great official documentation you an find on https://www.apollographql.com
sls offline start
Then go to http://localhost:3000/graphql, you should see Graphql playground.
Try querying data with
{
hello
books {
title
author
}
}
Play with it for a while.
To deploy single function
sls deploy --function db-mongo
To deploy all functions
sls deploy