public function resolveInclude(string $relationName, array $args)
    {
        $entity = $args[0];

        $relation = $entity->{$relationName};

        if (!$relation) {
            return null;
        }

        if ($relation instanceof Collection) {
            if ($relation->count() === 0) {
                return null;
            }

            $classRelation = get_class($relation[0]);
            $method = 'collection';
        } else {
            $classRelation = get_class($relation);
            $method = 'item';
        }

        $manager = Helper::newManagerByModel($classRelation, $this->manager->getAgent());

        if (!$manager) {
            return null;
        }

        return $this->$method(
            $relation,
            new BaseTransformer($manager, $this->request),
            str_replace('_', '-', $this->inflector->tableize($manager->getName()))
        );
    }