My User object has a field of “blockedUsers” which in the ParseDatabase is a relation to _User.
Unfortunately, I’m getting an error of
Value type ‘User’ cannot have a stored property that recursively contains it
my User object:
struct User: ParseUser { //: These are required for `ParseObject`. var objectId: String? var createdAt: Date? var updatedAt: Date? var ACL: ParseACL? //: These are required for `ParseUser`. var username: String? var email: String? var emailVerified: Bool? var password: String? var authData: [String: [String: String]?]? //: Your custom keys. var role: Role<User> var userProfile: UserProfile? var userSettings: UserSettings? var blockedUsers: ParseRelation<User> [ERROR HERE] }
Is there a way around this or should I go store the user objectId in an array instead?