Pull to refresh
1
0
Andrey @shagrag

web-development

Send message

Европейских ЗП после уплаты европейских налогов. Будете содержать жену/детей. Сколько останется? Больше чем в РБ?

Спасибо за статью. Мы используем deffered вот так:
    public static function resolveSomething(UserModel $user, array $args, AppContext $context, ResolveInfo $info) : Deferred
    {
        $context->lifecycleData['something'][$user->getId()] = $user->getId();  // собираем все id
        return new Deferred(function () use ($context, $user) {
            // внутри getByUsers есть runtime cache, который делает запрос к БД только 1 раз
            return SomethingRepository::getByUsers($context->lifecycleData['something'])[$user->getId()];
        });
    }

Information

Rating
Does not participate
Location
Минск, Минская обл., Беларусь
Registered
Activity