DenoDDeno
Powered by
ataracticA
Denoβ€’3y agoβ€’
2 replies
ataractic

Manually edit existing KV table

Hello! another day, another question.

Is there a way to manually edit KV database to modify an entry?

{
  key: [ "users", "b9af81a7-8b26-4b2f-b429-85a03d6d0c38" ],
  value: {
    displayName: "test3",
    id: "b9af81a7-8b26-4b2f-b429-85a03d6d0c38",
    registrationDate: 2023-06-04T01:05:41.539Z,
    role: "member",
  },
  versionstamp: "00000000000000070000"
}
{
  key: [ "users", "b9af81a7-8b26-4b2f-b429-85a03d6d0c38" ],
  value: {
    displayName: "test3",
    id: "b9af81a7-8b26-4b2f-b429-85a03d6d0c38",
    registrationDate: 2023-06-04T01:05:41.539Z,
    role: "member",
  },
  versionstamp: "00000000000000070000"
}


For example suppose I have this entry in my database for a user, how can I manually change the user
role
role
property?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deno Language Server Issue - Attempting to Use KV in Existing Project
:enomem::enomem / help
3y ago
KV watch prefix?
Michael FrancisMMichael Francis / help
2y ago
KV read count
wilsonlewisWwilsonlewis / help
3y ago