Search code examples
iosxcodeios7parse-platform

invalid type for key Users, expected *_User, but got string


I am trying to save a data in parse for pointer field while i am trying i received the following error as

invalid type for key Users, expected *_User,but got string

My code is as below

posts[@"Users"] = user1.objectId;

Solution

  • // User1 is _User class object so directly assign it

      posts[@"Users"] =  user1;
    

    Saving object data in parse