Closed
Description
Right now we have GraphQL server running with Prisma and Apollo server, however, in an efforts to create more robust Pbench server APIs we need to move the implementation on the server side. Therefore we need to re-define our GraphQL types, schema and mutations in server code.
So the GraphQL implementation should sit in the server where as the front-end request the required data for the dashboard using only the exposed APIs. Making a GraphQL queries from front-end shouldn't be required. The APIs would receive a simple JSON request which server then parses after passing all the authentication and make a valid GraphQL schema for execution. Upon completing the schema execution server returns the results back to the front-end.