Skip to main content
Version: 2.8.y

Error Reading

This section discusses how to understand error messages from Typescript.

Read The Last One

Most of the time we just need to read the last error message and ignore the rest. Example:

take the last error message

In this example, the correct field path is a and __name__(__name__ is a default comparison path of every document, see document Id)

Peeling Composite Query Error Messages

Composite Query

When using composite query, we need peel the error messages in order to find out the real culprit:

composite error message

narrowing down

Nested Composite Query

Nested composite query error messages are messy:

nested composite error message is a huge mess and you should ignore them

Solution is to peel until you see an error message that makes sense:

continue peeling until you find the relevant error message

Currently it is a mess, I am still trying to understand why the error bubble up into a clunky error message.

Hopefully we dont need to peel any error anymore in the future.