Skip to content

Remove @entity annotation from enum types #177

@rickstaa

Description

@rickstaa

As pointed out by @jmulq, there are several enum types in our schema annotated with @entity:

enum PollChoice @entity {

enum TranscoderStatus @entity {

According to The Graph docs, enum types cannot be entities:

Although the subgraph currently deploys, this is not correct, so we should remove the @entity annotation from these enum definitions.

Goal: align the schema with The Graph’s specifications, avoid relying on undefined behavior, and prevent potential issues in future deployments or tooling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIncremental improvement to existing functionality.

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions