We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8c0b70 commit a7c4712Copy full SHA for a7c4712
modelql-core/src/commonMain/kotlin/org/modelix/modelql/core/IStep.kt
@@ -66,6 +66,10 @@ class FlowInstantiationContext(
66
}
67
68
69
+/**
70
+ * The output serializer of a query is context dependent when used by multiple `QueryCallStep`s.
71
+ * This class carries the correct serializer for the input of a query depending on from where it is called.
72
+ */
73
class SerializationContext(val serializersModule: SerializersModule, val queryInputSerializers: Map<QueryInput<*>, KSerializer<IStepOutput<*>>> = emptyMap()) {
74
operator fun <T> plus(queryInputSerializer: Pair<QueryInput<T>, KSerializer<out IStepOutput<T>>>): SerializationContext {
75
return SerializationContext(
0 commit comments