Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Is it possible to graphql query a block within lexical?

default discord avatar
pooledgelast year

I am getting an infamous cast error when a block provides relationships to, in this case, a page with at least one media field:


CastError: Cast to ObjectId failed for value "info" (type string) at path "_id" for model "media"

And my query ist:


{
  Pages {
    docs {
      aLexicalField
    }
  }
}


Must be a db gltich due to many migrations, closing

    Star on GitHub

    Star

    Chat on Discord

    Discord

    online

    Can't find what you're looking for?

    Get dedicated engineering support directly from the Payload team.