getMonolog method

Future<ChatMixin?> getMonolog()

Returns the monolog Chat of the authenticated MyUser.

If there is no Chat-monolog, the one could be created via createMonologChat.

Authentication

Mandatory.

Result

Query returns null when no Chat-monolog exists for the authenticated MyUser.

Implementation

Future<ChatMixin?> getMonolog() async {
  Log.debug('getMonolog()', '$runtimeType');

  final QueryResult result = await client.query(
    QueryOptions(
      operationName: 'GetMonolog',
      document: GetMonologQuery().document,
    ),
  );
  return GetMonolog$Query.fromJson(result.data!).monolog;
}