feat: subscription plugin poc

feat: subscription plugin
This commit is contained in:
ppe
2022-11-16 11:47:47 +01:00
committed by just_ppe
parent e96328628a
commit 4942dfc49c
8 changed files with 892 additions and 64 deletions

View File

@@ -166,6 +166,10 @@ export class HandlerBasedContract<State> implements Contract<State> {
return result;
}
async readStateFor(interactions?: GQLNodeInterface[]): Promise<SortKeyCacheResult<EvalStateResult<State>>> {
return this.readState(undefined, undefined, interactions);
}
async viewState<Input, View>(
input: Input,
tags: Tags = [],