> For the complete documentation index, see [llms.txt](https://developer.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.collibra.com/api/graphql/knowledge-graph/object-types/relation-type.md).

# RelationType

A class of relation between two asset types.

```graphql
type RelationType implements Auditable, Node {
  corole: String
  createdBy: User
  createdOn: DateTime
  description: String
  id: UUID!
  modifiedBy: User
  modifiedOn: DateTime
  publicId: String!
  role: String!
  source: Type!
  system: Boolean!
  target: AssetType!
}
```

### Fields

#### corole ● [`String`](/api/graphql/knowledge-graph/scalars/string.md) scalar <a href="#corole" id="corole"></a>

The label of this relation type, when followed from tail to head.

#### createdBy ● [`User`](/api/graphql/knowledge-graph/object-types/user.md) object <a href="#created-by" id="created-by"></a>

The user who created this resource.

#### createdOn ● [`DateTime`](/api/graphql/knowledge-graph/scalars/date-time.md) scalar <a href="#created-on" id="created-on"></a>

The creation date of this resource.

#### description ● [`String`](/api/graphql/knowledge-graph/scalars/string.md) scalar <a href="#description" id="description"></a>

The description of this relation type.

#### id ● [`UUID!`](/api/graphql/knowledge-graph/scalars/uuid.md) non-null scalar <a href="#id" id="id"></a>

The universally unique identifier of this node.

#### modifiedBy ● [`User`](/api/graphql/knowledge-graph/object-types/user.md) object <a href="#modified-by" id="modified-by"></a>

The user who last modified this resource.

#### modifiedOn ● [`DateTime`](/api/graphql/knowledge-graph/scalars/date-time.md) scalar <a href="#modified-on" id="modified-on"></a>

The last modified date of this resource.

#### publicId ● [`String!`](/api/graphql/knowledge-graph/scalars/string.md) non-null scalar <a href="#public-id" id="public-id"></a>

The public identifier of this relation type.

#### role ● [`String!`](/api/graphql/knowledge-graph/scalars/string.md) non-null scalar <a href="#role" id="role"></a>

The label of this relation type when followed from head to tail.

#### source ● [`Type!`](/api/graphql/knowledge-graph/interfaces/type.md) non-null interface <a href="#source" id="source"></a>

The asset type that is the head of this relation type.

#### system ● [`Boolean!`](/api/graphql/knowledge-graph/scalars/boolean.md) non-null scalar <a href="#system" id="system"></a>

Whether this resource is reserved by the system.

#### target ● [`AssetType!`](/api/graphql/knowledge-graph/object-types/asset-type.md) non-null object <a href="#target" id="target"></a>

The asset type that is the tail of the relation type.

### Interfaces

#### [`Auditable`](/api/graphql/knowledge-graph/interfaces/auditable.md) interface

An interface implemented by all types holding auditing information.

#### [`Node`](/api/graphql/knowledge-graph/interfaces/node.md) interface

A base interface implemented by all types.

### Member Of

[`Relation`](/api/graphql/knowledge-graph/object-types/relation.md) object
