1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00

Handle role validator

This commit is contained in:
Jake Barnby 2022-09-21 21:12:23 +12:00
parent 6aee9e0ddb
commit 8af0983274
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 1 additions and 1 deletions

View file

@ -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':

View file

@ -120,7 +120,6 @@ class TypeRegistry
$fields[$escapedKey] = [
'type' => $type,
'description' => $props['description'],
'resolve' => static fn($object, $args, $context, $info) => $object[$key],
];
}
}