You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
476 B

<?php
global $db;
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../examples/connection.php';
use Darksparrow\DeegraphInteractions\Enumerators\DeegraphPermissionType;
use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilder;
$grantQuery = QueryBuilder::Grant()
->GrantAll()
// ->Permissions(permissionTypes: [DeegraphPermissionType::READ])
->To(uuid: $db->GetActor());
$result = $db->RunQuery($grantQuery);
var_dump($result);