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