Is there any hook that is triggered before the router starts? #1595
mohit61
started this conversation in
Implementation
Replies: 2 comments
-
Not really, you could use the router as a library and do whatever you want before running the router. Like here for example https://github.com/apollographql/router/blob/main/examples/hello-world/src/main.rs#L17 But I'm not sure it would be a good solution. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Depending on where the router is being deployed (like Docker for example), an entrypoint or a script would be less involved than building your own router |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to do an api call before the router starts, is there any hook in the apollo router that can be used?
Beta Was this translation helpful? Give feedback.
All reactions