Migrating to Apollo server v4; ValidationError #7093
-
Hi there. I was looking into upgrading our Apollo server, from v3 to v4. According to the docs here, it's mentioned that So my question is, how would you refactor this code from apollo server v3?
Our project uses the above pattern in 144 files 🤣 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
See this section: You can replace this with
Or if you'd like, just define your own class:
We wanted to move away from the exported error class approach because it led to people trying to do |
Beta Was this translation helpful? Give feedback.
See this section:
You can replace this with
Or if you'd like, just define your own class:
We wanted to move away from the exported error class approach because it led to people trying to…