AGSRelationship and primary and foreign keys

Discussion created by redeemarr on Nov 26, 2013
Latest reply on Dec 10, 2013 by DGoyal-esristaff
I'm creating an iOS app that works with related layers/tables and have the following issue.
When creating a new related feature the app must set a primary and foreign keys for an AGSGraphic. To do that I need to know which fields corresponds to these values.
In the Flex ArcGIS API I found class named Relationship. It has properties named 'keyField', 'keyFieldInRelationshipTable'. I think it's what I need.
But AGSRelationship class in iOS API has no these properties, so there's no way to find which fields in AGSGraphic attributes are primary and foreign keys.
Am I correct and how can I solve this issue?
Thank you.