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.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							667 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							667 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								require_once __DIR__ . '/../vendor/autoload.php';
							 | 
						|
								require_once __DIR__ . '/../examples/DeegraphConnection.php';
							 | 
						|
								
							 | 
						|
								use Darksparrow\DeegraphInteractions\DataStructures\UUID;
							 | 
						|
								use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilder;
							 | 
						|
								
							 | 
						|
								$targetNode = new UUID("0b368d41-7c15-42c8-899c-2b178ae9d983");
							 | 
						|
								
							 | 
						|
								$result = QueryBuilder::Select()
							 | 
						|
								    ->relativePaths(["@id", "name"])
							 | 
						|
								    ->from($targetNode)
							 | 
						|
								    ->build()
							 | 
						|
								    ->runQuery(
							 | 
						|
								        actorID: DeegraphConnection::Actor(),
							 | 
						|
								        server: DeegraphConnection::DB(),
							 | 
						|
								    )
							 | 
						|
								;
							 | 
						|
								
							 | 
						|
								var_dump($result->Rows[0]->Properties["@id"]["{$targetNode}/@id"]);
							 | 
						|
								var_dump($result->Rows[0]->Properties["name"]["{$targetNode}/name"]);
							 | 
						|
								
							 |