Handle role validator
This commit is contained in:
parent
6aee9e0ddb
commit
8af0983274
2 changed files with 1 additions and 1 deletions
|
@ -75,6 +75,7 @@ class TypeMapper
|
||||||
break;
|
break;
|
||||||
case 'Utopia\Database\Validator\Authorization':
|
case 'Utopia\Database\Validator\Authorization':
|
||||||
case 'Utopia\Database\Validator\Permissions':
|
case 'Utopia\Database\Validator\Permissions':
|
||||||
|
case 'Utopia\Database\Validator\Roles':
|
||||||
$type = Type::listOf(Type::string());
|
$type = Type::listOf(Type::string());
|
||||||
break;
|
break;
|
||||||
case 'Utopia\Validator\Assoc':
|
case 'Utopia\Validator\Assoc':
|
||||||
|
|
|
@ -120,7 +120,6 @@ class TypeRegistry
|
||||||
$fields[$escapedKey] = [
|
$fields[$escapedKey] = [
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
'description' => $props['description'],
|
'description' => $props['description'],
|
||||||
'resolve' => static fn($object, $args, $context, $info) => $object[$key],
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue