# Apollo Server to retry graphql execution if it encounters errors

**URL:** <https://community.apollographql.com/t/apollo-server-to-retry-graphql-execution-if-it-encounters-errors/5534>\
**Category:** Server\
**Tags:** server\
**Created:** [January 20, 2023, 9:10pm UTC](https://community.apollographql.com/t/apollo-server-to-retry-graphql-execution-if-it-encounters-errors/5534 "2023-01-20T21:10:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hdavila](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/hdavila/32/3755_2.png) [@hdavila](https://community.apollographql.com/u/hdavila)\
**Post date:** [January 20, 2023, 9:10pm UTC](https://community.apollographql.com/t/apollo-server-to-retry-graphql-execution-if-it-encounters-errors/5534/1 "2023-01-20T21:10:32Z")

</div>

I have an Apollo Federation arquitecture in place and would like the Graph Router retries a graphQL execution when it fails on a subgraph.

Most of our clients do not use Apollo Client so we would like to have the retry mechanism in a central place such as the Graph Router, is it possible?

---

<div class="post-metadata">

**Author:** ![hwillson](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/hwillson/32/9_2.png) [@hwillson](https://community.apollographql.com/u/hwillson)\
**Post date:** [January 22, 2023, 4:12pm UTC](https://community.apollographql.com/t/apollo-server-to-retry-graphql-execution-if-it-encounters-errors/5534/2 "2023-01-22T16:12:51Z")

</div>

@hdavila the Apollo Router introduced experimental subgraph request retrying in [version 1.5](https://github.com/apollographql/router/releases/tag/v1.5.0). You can read more about it in the [Traffic shaping in the Apollo Router](https://www.apollographql.com/docs/router/configuration/traffic-shaping/) section of the docs.

---

<div class="post-metadata">

**Author:** ![hdavila](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/hdavila/32/3755_2.png) [@hdavila](https://community.apollographql.com/u/hdavila)\
**Post date:** [January 23, 2023, 4:54pm UTC](https://community.apollographql.com/t/apollo-server-to-retry-graphql-execution-if-it-encounters-errors/5534/3 "2023-01-23T16:54:34Z")

</div>

Thanks @hwillson but i am using @apollo/gateway to configure the Apollo Router, do you know if that library provides something similar to the Traffic shaping feature?
