Share a graph with multiple users
Replaces the entire shared_users list with the provided user IDs. Pass an empty array to unshare with all users.
Graph ID to share
Array of user IDs to share with (default: [])
Confirmation
import { shareGraph } from "@cpod/sdk";// Share with multiple usersawait shareGraph("graph-123", ["user-1", "user-2"]);// Unshare with all usersawait shareGraph("graph-123", []); Copy
import { shareGraph } from "@cpod/sdk";// Share with multiple usersawait shareGraph("graph-123", ["user-1", "user-2"]);// Unshare with all usersawait shareGraph("graph-123", []);
Share a graph with multiple users
Replaces the entire shared_users list with the provided user IDs. Pass an empty array to unshare with all users.