Understanding Error Message
This section discusses how to understand error messages from Typescript.
Take The Last One
Always looking at the last error message and ignore the rest. Example:
In this example, the correct field path is
__name__ is a default comparison path of every document, see document Id)
Peeling Composite Query Error Messages
When using composite query, we need peel the error messages in order to find out the real culprit:
Nested Composite Query
Nested composite query error messages are messy:
Solution is to peel until you see an error message that makes sense:
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.