File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
modules/server/src/network/resolvers Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,13 @@ const convertFieldsToString = (requestedFields: RequestedFieldsMap) => {
103103} ;
104104
105105/**
106- * Query string creation
106+ * Creates individual GQL query string for a node.
107+ * Includes aggregation GQL arguments (actual data is provided alongside query, not here)
108+ * Requested fields are converted to GQL style strings
107109 *
108110 * @param documentName
109111 * @param requestedFields
110- * @returns
112+ * @returns constructed query string
111113 */
112114export const createNodeQueryString = (
113115 documentName : string ,
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ export type NetworkSearchRoot = {
1212 aggregations : Record < string , unknown > ;
1313} ;
1414
15+ /*
16+ * Type should match the "Network" GQL type definition arg types
17+ */
1518export type NetworkAggregationArgs = {
1619 filters ?: object ;
1720 aggregations_filter_themselves ?: boolean ;
@@ -33,7 +36,7 @@ export const createResolvers = (configs: NodeConfig[]) => {
3336 Query : {
3437 network : async (
3538 parent : NetworkSearchRoot ,
36- // type should match gql typedefs
39+ // as mentioned above, type should match gql typedefs
3740 args : NetworkAggregationArgs ,
3841 context : unknown ,
3942 info : GraphQLResolveInfo ,
You can’t perform that action at this time.
0 commit comments