deleteUserPhone method
- UserPhone phone, {
- 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?> deleteUserPhone(
UserPhone phone, {
MyUserCredentials? confirmation,
}) async {
Log.debug(
'deleteUserPhone($phone, confirmation: $confirmation)',
'$runtimeType',
);
throw UnimplementedError();
// final variables = DeleteUserPhoneArguments(phone: phone);
// final QueryResult result = await client.mutate(MutationOptions(
// operationName: 'DeleteUserPhone',
// document: DeleteUserPhoneMutation(variables: variables).document,
// variables: variables.toJson(),
// ));
// return DeleteUserPhone$Mutation.fromJson(result.data!).deleteUserPhone
// as DeleteUserEmail$Mutation$DeleteUserEmail$MyUserEventsVersioned;
}