Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 292 Bytes

enums.md

File metadata and controls

17 lines (13 loc) · 292 Bytes

Enums

Enums are natively supported as described the GraphQL schema spec. Here is an illustrative example:

enum ProposalStatus {
  NONE
  REJECTED
  APPROVED
}

type Proposal @entity {
  status: ProposalStatus
  bond: BigInt!
}