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 : add single data
  • Example2 : add batch data
  1. Unift-Nostr-Service
  2. Graph Service

Add Data to 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 : add single data

graph data [{"n":"user","t":"c","d":{"name":"alice","id":"1","age":20,"photo":"https://alice.png"}}]

Example2 : add batch data

graph data [{"n":"user","t":"c","d":{"name":"bob","id":"2","age":22,"photo":"https://bob.png"}},{"n":"user","t":"c","d":{"name":"cathy","id":"3","age":31,"photo":"https://cathy.png"}},{"n":"user","t":"c","d":{"name":"david","id":"4","age":"40","photo":"https://david.png"}}]

PreviousList the entitiesNextUpdate Data Of Entity

Last updated 2 years ago

πŸ˜ƒ
πŸ˜„