So I just started to write my API, and came across this bug:
On creating user that has unique CONSTRAINT twice, There is exception returned, but the node is still being created!
The CONSTRAINT is on "User:access_token" property, and I'm using the following code:
try {
$userAttributes = [
"email" => $request->email,
"access_token" => 'aaaa',
"facebook_id" => 'bbbb'
];
$user = new User($userAttributes);
$user->save();
}catch (Exception $e){}
Any help please?