Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GraphQL ADR: Add example for TSP Query Parameters
Document a code example directly in ADR's text, answering its previously related question this way. This example cannot be added as actual code in the existing ADR prototype, as it requires manually provisioned test data. This would otherwise make the prototype more complex than what ADR scope prescribes. Assume usage of [1] as a mean to provision that data. Still, document how one may reproduce this example as working code, which is what was done while preparing this change anyway. Should one be willing to implement this beyond ADR scope, [2] (below) can be used as a legacy schema reference. ADR actual decisions might lead to implementing this further, for real ([2]) as opposed to this hereby trivial approach. Breakpoints are required if manually provisioning test data using [1], which otherwise deletes that data once done with steps. Unlike this added example which is GraphQL, [1]'s way of testing remains REST based. To further clarify, this example is "GraphQL" towards TSP REST client as previously prototyped. ADR scope focuses on first wrapping REST TSP with GraphQL queries from clients such as that ADR prototype: any such TSP GraphQL client may in turn rely on existing TSP REST clients, per ADR. Now, this example is barely about real GraphQL, but more about how to naively start implementing Resolvers towards more advanced GraphQL types (and variable parameters); [2] was an initial example of such types. [1] https://github.com/theia-ide/tsp-python-client/blob/master/test_tsp.py#L324 [2] eclipse-cdt-cloud/trace-server-protocol#44 Signed-off-by: Marco Miller <marco.miller@ericsson.com>
- Loading branch information