Create an entity

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

  • @ : index

  • ! : not null

  • n: the name of entity

  • d: the struct of entity

TypeDESC

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!}"}

Last updated