Skip to content

Error: Unknown directive "@entity" #79

@pandichef

Description

@pandichef

I'm using thegraph.com's schema convention e.g., https://thegraph.com/docs/developer/create-subgraph-hosted#good-example. My schema looks like this:

type Item @entity {
  id: ID!
  var1: BigInt!
  var2: BigInt!
  name: String!
}

I get this error when I run npx graphql-markdown schema.graphql schema.md:

Error: Unknown directive "@entity".
Unknown type "BigInt". Did you mean "Int"?

Can this tool accommodate or should I look elsewhere for a solution? Ty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions