createMonologChat method
Creates a Chat-monolog for the authenticated MyUser.
There can be only one Chat-monolog for the authenticated MyUser.
Authentication
Mandatory.
Idempotent
Succeeds as no-op if the Chat-monolog for the authenticated MyUser exists already, and returns it.
Implementation
Future<ChatMixin> createMonologChat({ChatName? name, bool? isHidden}) async {
Log.debug('createMonologChat($name)', '$runtimeType');
final variables = CreateMonologChatArguments(
name: name,
isHidden: isHidden,
);
final QueryResult result = await client.mutate(
MutationOptions(
operationName: 'CreateMonologChat',
document: CreateMonologChatMutation(variables: variables).document,
variables: variables.toJson(),
),
);
return CreateMonologChat$Mutation.fromJson(result.data!).createMonologChat;
}