From a10ec052460248ecc9be85437819b29b7e0161fc Mon Sep 17 00:00:00 2001 From: Dandan7 <182233217+danshalev7@users.noreply.github.com> Date: Mon, 17 Nov 2025 15:19:28 +0200 Subject: [PATCH] Add documentation for GRAPH.PASSWORD command Document the GRAPH.PASSWORD command for password management in FalkorDB. --- commands/graph.password.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 commands/graph.password.md diff --git a/commands/graph.password.md b/commands/graph.password.md new file mode 100644 index 0000000..e7f00f7 --- /dev/null +++ b/commands/graph.password.md @@ -0,0 +1,35 @@ +--- +title: "GRAPH.PASSWORD" +description: > + Securely sets or updates user passwords within FalkorDB. +parent: "Commands" +--- + +## GRAPH.PASSWORD + +### Description + +The `GRAPH.PASSWORD` command securely sets or updates user passwords within FalkorDB. It complements `GRAPH.ACL` by allowing password changes without altering user privileges. + +### Usage Patterns + +The behavior of `GRAPH.PASSWORD` depends on the user context and argument count. + +#### 1. Change Own Password (Single Argument) + +A regular user can change their own password: +```text +GRAPH.PASSWORD +``` + +This command updates the password only for the currently authenticated user. + +**Example:** +```text +GRAPH.PASSWORD S3cureMyPass! +``` + +**Response:** +```text +OK +```