public function getSchemaUniqueConstraints($conn = null)
    {
        $command = $this->invoke('neo.get_constraints_command', $conn);
        $httpResponse = $command->execute();

        $responseO = $this->handleHttpResponse($httpResponse);
        $response = $responseO->getBody();
        $constraints = [];
        foreach ($response as $constraint) {
            foreach ($constraint['property_keys'] as $key) {
                $constraints[] = new UniqueConstraint($constraint['label'], $key);
            }
        }

        return $constraints;
    }
public function getSchemaUniqueConstraints($conn = null)
    {
        $command = $this->invoke('neo.get_constraints_command', $conn);
        $httpResponse = $command->execute();

        $responseO = $this->handleHttpResponse($httpResponse);
        $response = $responseO->getBody();
        $constraints = [];
        foreach ($response as $constraint) {
            foreach ($constraint['property_keys'] as $key) {
                $constraints[] = new UniqueConstraint($constraint['label'], $key);
            }
        }

        return $constraints;
    }
public function getSchemaUniqueConstraints ( $ conn = null ) { $ command = $ this -> invoke ( 'neo.get_constraints_command' , $ conn ) ; $ httpResponse = $ command -> execute ( ) ; $ responseO = $ this -> handleHttpResponse ( $ httpResponse ) ; $ response = $ responseO -> getBody ( ) ; $ constraints = [ ] ; foreach ( $ response as $ constraint ) { foreach ( $ constraint [ 'property_keys' ] as $ key ) { $ constraints [ ] = new UniqueConstraint ( $ constraint [ 'label' ] , $ key ) ; } } return $ constraints ; }
Returns a collection of Uniqueness constraints live in the schema.

@param null $conn

@return \Neoxygen\NeoClient\Schema\UniqueConstraint[]
Returns a collection of Uniqueness constraints live in the schema .