GraphQL Errors
Since we are creating a web application that makes calls to the GraphQL Server API, we should make sure to build in some error handling for the graphql requests.
404 errors: This can be handled by creating a not-found.tsx file.
Add "app/error.tsx" to handle server-side error error pages. Client-side components can display the errors returned to the component in the page itself.
GraphQL Errors Since we are creating a web application that makes calls to the GraphQL Server API, we should make sure to build in some error handling for the graphql requests.
404 errors: This can be handled by creating a not-found.tsx file.
Add "app/error.tsx" to handle server-side error error pages. Client-side components can display the errors returned to the component in the page itself.
As part of our error handling, we should be logging our errors, and our logs should comply with the Elastic Common Schema (ECS) possibly using ecs-logging-nodejs.