hydra
v3
v3
  • Hydra
  • Hydra CLI
  • Hydra Indexer
  • Hydra Indexer Gateway
  • Hydra Processor
  • Hydra Typegen
  • Overview
    • Query Node Manifest
    • Graphql Queries
    • Pagination
    • Sorting
    • Mappings
      • Context interfaces
      • Mapping Filters
      • Mapping Types
    • Schema
      • The Goodies
      • Entities
      • Enums
      • Interfaces
      • Algebraic types
      • Full-text queries
      • Entity Relationships
      • Cross filtering
      • Variant relations
    • Architecture
  • Install Hydra
  • Migration to Hydra v2
  • What's new in Hydra v3
  • FAQ
  • Quickstart
Powered by GitBook
On this page

Was this helpful?

  1. Overview
  2. Schema

Enums

PreviousEntitiesNextInterfaces

Last updated 4 years ago

Was this helpful?

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

enum ProposalStatus {
  NONE
  REJECTED
  APPROVED
}

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