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

Last updated