getUser method

Future<GetUser$Query> getUser(
  1. UserId id
)

Returns an User by its id.

Authentication

Optional.

Implementation

Future<GetUser$Query> getUser(UserId id) async {
  Log.debug('getUser($id)', '$runtimeType');

  final variables = GetUserArguments(id: id);
  QueryResult res = await client.query(
    QueryOptions(
      operationName: 'GetUser',
      document: GetUserQuery(variables: variables).document,
      variables: variables.toJson(),
    ),
  );
  return GetUser$Query.fromJson(res.data!);
}