function createRelationshipTransformer () {
  return new TypeTransformer({
    signature: RELATIONSHIP,
    isTypeInstance: object => object instanceof Relationship,
    toStructure: object => {
      throw newError(
        `It is not allowed to pass relationships in query parameters, given: ${object}`,
        PROTOCOL_ERROR
      )
    },
    fromStructure: struct => {
      structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size)

      const [identity, startNodeIdentity, endNodeIdentity, type, properties] = struct.fields

      return new Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties)
    }
  })
}
Creates the Relationship Transformer
@returns {TypeTransformer}