You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature removes documented server methods and adds three new but undocumented app methods: start, stop, assemble. We will see if we document these in a future change. Also these methods are not statically exported as named exports.
Motivations:
What has been done is mostly about refactoring.
- decouple concept of starting server from assembly to support future serverless feature #782
- assembly is the process of gathering the lazy state into a final runnable one
- settings is now a component like schema and server
- the components are designed to look a lot more symmetrical now
- root app state is passed down to components which attach their namespaced state to, easier to reason about, think redux
- introduce concept of checks that runs after schema assembly
BREAKING CHANGE:
- `server.start` and `server.stop` are no longer exposed. If you had a use-case for them please open an issue to discuss.
Copy file name to clipboardexpand all lines: docs/architecture.md
+26
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,11 @@
1
+
## Reflection
2
+
3
+
todo
4
+
5
+
## Assembly
6
+
7
+
todo
8
+
1
9
## Build Flow
2
10
3
11
1. The app layout is calculated
@@ -37,3 +45,21 @@ what follows is a stub
37
45
1. validate imported value
38
46
1. load plugin
39
47
1. catch any load errors
48
+
49
+
## Glossary
50
+
51
+
### Assembly
52
+
53
+
The process in which the app configuration (settings, schema type defs, used plugins, etc.) is processed into a runnable state. Nexus apps are only ever assembled once in their lifecycle.
54
+
55
+
### Dynamic Reflection
56
+
57
+
The process in which the app is run in order to extract data out of it. The data in turn can be used for anything. For example typegen to provide better TypeScript types or GraphQL SDL generation.
58
+
59
+
### Static Reflection
60
+
61
+
The process in which the app is analyzed with the TS API to extract data out of it. The data in turn can be used for anything. For example typegen to provide better TypeScript types.
62
+
63
+
### Reflection
64
+
65
+
The general idea of the app source code or its state at runtime being analyzed to extract data.
0 commit comments