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
  1. Unift-Nostr-Service
  2. Graph Service

Create an entity

Commnad : graph entity {n:"entityName",d:""}

  • @ : index

  • ! : not null

  • n: the name of entity

  • d: the struct of entity

Type
DESC

int

numeric(300)

bigint

numeric(300)

address

varchar(64)

string

varchar(255)

text

text

decimal

numeric(500)

timestamp

numeric(50)

Exmaple :

graph entity {"n":"user","d":"type user { id: ID!@ name: String! age: int photo: String!}"}

PreviousCreate a NostrGraphNextDelete an entity

Last updated 2 years ago

😃
😄