Refactor Graphql Queries
The following discussion from !1 (merged) should be addressed:
-
@erxleb87 started a discussion: The way you build queries here needs some thorough attention.
- Use string interpolation consistently
- Construct the segments separately and then concatenate them
- Are there segments that are fixed and can be re-used?
- Can queries be represented as objects and is there a way to formalize their translation into a string?
- Could this also be helpful if you would want to build other queries in the future?
- Revisit the name of the
build_query
-function