|
|
@ -9,13 +9,13 @@ use Darksparrow\DeegraphInteractions\Superclasses\QueryInstanceSuperclass; |
|
|
|
|
|
|
|
final class GrantQuery extends QueryInstanceSuperclass implements QueryInstanceInterface |
|
|
|
{ |
|
|
|
public function RunQuery(DeegraphServer $deegraphServer) |
|
|
|
public function RunQuery(DeegraphServer $deegraphServer): GrantQueryResponse |
|
|
|
{ |
|
|
|
$response = $deegraphServer->RunRawRequest( |
|
|
|
endpoint: "/api/v1/@query", |
|
|
|
method: "POST", |
|
|
|
body: $this->QueryString, |
|
|
|
); |
|
|
|
return GrantQueryResponse::FromAPIResponse(response: $response); |
|
|
|
return new GrantQueryResponse(response: $response); |
|
|
|
} |
|
|
|
} |
|
|
|