Skip to content

Handle GraphQL errors in WP utility#230

Merged
zackha merged 1 commit intomasterfrom
codex/wrap-client-requests-in-try/catch
Sep 7, 2025
Merged

Handle GraphQL errors in WP utility#230
zackha merged 1 commit intomasterfrom
codex/wrap-client-requests-in-try/catch

Conversation

@zackha
Copy link
Copy Markdown
Owner

@zackha zackha commented Sep 7, 2025

Summary

  • wrap wpgraphql query and mutation requests in try/catch
  • surface GraphQL errors via h3 createError with HTTP 500

Testing

  • pnpm build

https://chatgpt.com/codex/tasks/task_e_68bd97292e908333a4e0197274a03ff1

@zackha zackha merged commit 442a512 into master Sep 7, 2025
1 check passed
@zackha zackha deleted the codex/wrap-client-requests-in-try/catch branch September 7, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant