We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62eddc3 commit 624b3eeCopy full SHA for 624b3ee
3 files changed
README.md
@@ -1,3 +1,23 @@
1
# data.all core package
2
3
-This is a package containing dataall_core modules used in both data.all CLI and SDK.
+This is a package containing dataall_core modules used in both data.all CLI and SDK.
4
+
5
6
+# generate schema from a data.all deployments
7
8
+* Copy and run the following script in `data.all/backend` directory...
9
+```python
10
+from dataall.base.loader import load_modules, ImportMode
11
+from graphql import introspection_from_schema
12
+from dataall.base.api import get_executable_schema
13
+import json
14
15
+load_modules(modes={ImportMode.API})
16
+SCHEMA = get_executable_schema()
17
+t = introspection_from_schema(SCHEMA)
18
19
+# Write schema to JSON file
20
+with open('./schema.json', 'w') as f:
21
+f.write(json.dumps(t))
22
+```
23
0 commit comments