# RelationshipData

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.RelationshipData/

Struct for a relationship (between objects).

- **Full name:** `MFiles.RelationshipData`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-obj_ver"></a>`obj_ver` | [`ObjVer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjVer/index.md) | 1 | The related object version. |
| <a id="f-direction"></a>`direction` | [`RelationshipDirection`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.RelationshipDirection/index.md) | 2 | Values: From / To. Values: `RELATIONSHIP_DIRECTION_UNSPECIFIED` (0), `RELATIONSHIP_DIRECTION_FROM` (1), `RELATIONSHIP_DIRECTION_TO` (2). |
| <a id="f-property"></a>`property` | `int32` | 3 | The relationship reason. This describes the property that made the relationship. |
| <a id="f-object_info"></a>`object_info` | [`ObjectVersionEx`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectVersionEx/index.md) | 4 | Below properties are not filled. In future if we need the response to have any of the below properties filled? then it can be used. Below properties wont be sent in the response. |
| <a id="f-properties"></a>`properties` | [`PropertyValueArray`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyValueArray/index.md) | 5 | The pointer to property values. Null pointer, if data was not requested. |
| <a id="f-acl"></a>`acl` | [`AccessControlList`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.AccessControlList/index.md) | 6 | The pointer to ACL. Null pointer, if data was not requested. |
| <a id="f-object_permissions"></a>`object_permissions` | [`ObjectPermissionsForClient`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectPermissionsForClient/index.md) | 7 | The pointer to object permissions for client. Null pointer, if data was not requested. |
| <a id="f-properties_for_display"></a>`properties_for_display` | [`PropertyValueArray`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyValueArray/index.md) | 8 | Property values for display, or an empty array.  Null pointer, if data was not requested. |

<a id="used-in-fields"></a>

## Used in fields

- [`RelationshipGroup.related_objects`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.RelationshipGroup/index.md#f-related_objects): List of related objects.
