Error handling best practice GraphQL
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 08:58 AM - edited 03-13-2024 09:01 AM
Hello everyone,
I'm learning GraphQL, but im still confuse about error handling.
What's the best way to handle errors ? Is it possible to return http errors like REST API (404,401, etc). How to do that ?
I noticed some people using union type for each type, but this is a lot of code.
Do you have some tips on error handling with servicenow ?
Thank you !
0 REPLIES 0