www.jannah.io
A Comprehensive Presentation on Jannah Middleware Application Part 6: GraphQL API Query Handlers.
Video Highlights
For each graphql API type, there is a corresponding handler to resolve it queries.
We defined the following query handlers (resolvers):
```
def resolve_sites(root, info, cursor = "0", count=0):
def resolve_users(root, info, cursor = "0", count=0):
def resolve_boots(root, info, cursor = "0", count=0):
def resolve_networks(root, info, cursor = "0", count=0):
def resolve_storages(root, info, cursor = "0", count=0):
def resolve_computes(root, info, cursor = "0", count=0):
def resolve_uxs(root, info, cursor = "0", count=0):
def resolve_feedbacks(root, info, cursor = "0", count=0):
def resolve_workflows(parent, info, cursor = "1", count=0):
def resolve_workflow(parent, info, id):
```
These resolvers will make the actuall SQL calls to the database and fetch resulting data.
They will return the result to the frontend clients in a JSON format.