Rank 3: Container
Hi guys , i use relationships to create a user details document and its contacts and address details. in flutter the class object looks like this : ```@freezed
class UserDetailsModel with _$UserDetailsModel {
@JsonSerializable(explicitToJson: true)
const factory UserDetailsModel({
@JsonKey(includeToJson: false, )
String? id,
String? firstName,
String? lastName,
DateTime? dateOfBirth,
String? bio,
required List bioPicsIds,
String? avatarId,
ContactsModel? contacts,
LocationModel? address,
}) = _UserDetailsModel;
factory UserDetailsModel.fromJson(Map<String, dynamic> json) =>
_$UserDetailsModelFromJson(json);
}``` and in appwrite it creates all documents fine . The problem is when i try to update it creates another document in the related collections instead of updating the documents already there ...how to properly do the update ?