removeUserPhone method

Future<MyUserEventsVersionedMixin?> removeUserPhone(
  1. UserPhone phone, {
  2. MyUserCredentials? confirmation,
})

Deletes the given phone from MyUser.phones for the authenticated MyUser.

Authentication

Mandatory.

Result

Only the following MyUserEvent may be produced on success:

Idempotent

Succeeds as no-op (and returns no MyUserEvent) if the authenticated MyUser doesn't have the provided phone in his MyUser.phones already.

Implementation

Future<MyUserEventsVersionedMixin?> removeUserPhone(
  UserPhone phone, {
  MyUserCredentials? confirmation,
}) async {
  Log.debug(
    'removeUserPhone($phone, confirmation: $confirmation)',
    '$runtimeType',
  );

  throw UnimplementedError();
  // final variables = RemoveUserPhoneArguments(phone: phone);
  // final QueryResult result = await client.mutate(MutationOptions(
  //   operationName: 'RemoveUserPhone',
  //   document: RemoveUserPhoneMutation(variables: variables).document,
  //   variables: variables.toJson(),
  // ));
  // return RemoveUserPhone$Mutation.fromJson(result.data!).removeUserPhone
  //     as RemoveUserPhone$Mutation$RemoveUserPhone$MyUserEventsVersioned;
}