UNIFT PROTOCOL
  • πŸ›οΈUnift Protocol
  • πŸ˜ƒUnift-Nostr-Service
    • 😎Random Number Service
    • πŸ˜„Graph Service
      • How to use Unift-Graph-Service
      • Create a NostrGraph
      • Create an entity
      • Delete an entity
      • List the entities
      • Add Data to entity
      • Update Data Of Entity
      • Delete Data Of Entity
      • Query Graph Data
  • πŸ“•FAQ
    • What is Nostr Protocol?
Powered by GitBook
On this page
  • Example1 : update single data
  • Example2 : update batch data
  1. Unift-Nostr-Service
  2. Graph Service

Update Data Of Entity

Command : graph data [{n:"tableName”,t:"c/u/d",d:{}}]

  • n: entity name

  • t: operate type c= create u=update d=delete

  • d: graph data (json array format, support batch submit)

Example1 : update single data

graph data [{"n":"user","t":"u","d":{"age":23,"photo":"https://cathynew.png","id":"3"}}]

Example2 : update batch data

graph data [{"n":"user","t":"u","d":{"age":19,"photo":"https://bobnew.png","id":"2"}},{"n":"user","t":"u","d":{"age":23,"photo":"https://cathynew.png","id":"3"}}]

PreviousAdd Data to entityNextDelete Data Of Entity

Last updated 2 years ago

πŸ˜ƒ
πŸ˜„