summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/utils/composite_function.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-10-17 06:27:55 -0500
committerGitHub <noreply@github.com>2022-10-17 06:27:55 -0500
commit414f435d509092ce40f14977530780155648146e (patch)
tree7692ceec75b0e79dcfc440211f81050aa93316d0 /src/services/api/graphql/utils/composite_function.py
parent288d917b7c87b9a328220c8e978f2952fc7dbc32 (diff)
parent8cafffff3169018abb09bb1652a63dc4be01b983 (diff)
downloadvyos-1x-414f435d509092ce40f14977530780155648146e.tar.gz
vyos-1x-414f435d509092ce40f14977530780155648146e.zip
Merge pull request #1600 from jestabro/gql-composite
graphql: T4753: generalize system_status to composite_{query,mutation}
Diffstat (limited to 'src/services/api/graphql/utils/composite_function.py')
-rw-r--r--src/services/api/graphql/utils/composite_function.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/services/api/graphql/utils/composite_function.py b/src/services/api/graphql/utils/composite_function.py
new file mode 100644
index 000000000..bc9d80fbb
--- /dev/null
+++ b/src/services/api/graphql/utils/composite_function.py
@@ -0,0 +1,11 @@
+# typing information for composite functions: those that invoke several
+# elementary requests, and return the result as a single dict
+import typing
+
+def system_status():
+ pass
+
+queries = {'system_status': system_status}
+
+mutations = {}
+