# How can i pass common params into GraphQL body part for all the queries?

**URL:** https://community.apollographql.com/t/how-can-i-pass-common-params-into-graphql-body-part-for-all-the-queries/6741
**Category:** Client SDKs
**Tags:** server, client, web
**Created:** [September 20, 2023, 10:56am UTC](https://community.apollographql.com/t/how-can-i-pass-common-params-into-graphql-body-part-for-all-the-queries/6741 "2023-09-20T10:56:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![niteshpandey.cse](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/niteshpandey.cse/32/4592_2.png) [@niteshpandey.cse](https://community.apollographql.com/u/niteshpandey.cse)
#### Post date: [September 20, 2023, 10:56am UTC](https://community.apollographql.com/t/how-can-i-pass-common-params-into-graphql-body-part-for-all-the-queries/6741/1 "2023-09-20T10:56:07Z")

</div>

Hi All

I want to pass one common object into body part of the my all GraphQL request.  
How can i inject it from one place for all the queries?

---

<div class="post-metadata">

### Author: ![Kheang\_Hok\_Chin](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/kheang_hok_chin/32/391_2.png) [@Kheang\_Hok\_Chin](https://community.apollographql.com/u/Kheang_Hok_Chin)
#### Post date: [September 21, 2023, 10:31am UTC](https://community.apollographql.com/t/how-can-i-pass-common-params-into-graphql-body-part-for-all-the-queries/6741/2 "2023-09-21T10:31:19Z")

</div>

Maybe this could help depending on your use case: [Apollo Link overview - Apollo GraphQL Docs](https://www.apollographql.com/docs/react/api/link/introduction)

---

<div class="post-metadata">

### Author: ![niteshpandey.cse](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/niteshpandey.cse/32/4592_2.png) [@niteshpandey.cse](https://community.apollographql.com/u/niteshpandey.cse)
#### Post date: [September 22, 2023, 3:32am UTC](https://community.apollographql.com/t/how-can-i-pass-common-params-into-graphql-body-part-for-all-the-queries/6741/3 "2023-09-22T03:32:56Z")

</div>

Hi Thanks for your response

My requirement is, How can i add one object into each and every GraphQL request body from one common place, can it be done through apolloLink?

---

<div class="post-metadata">

### Author: ![Kheang\_Hok\_Chin](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/kheang_hok_chin/32/391_2.png) [@Kheang\_Hok\_Chin](https://community.apollographql.com/u/Kheang_Hok_Chin)
#### Post date: [September 22, 2023, 9:22am UTC](https://community.apollographql.com/t/how-can-i-pass-common-params-into-graphql-body-part-for-all-the-queries/6741/4 "2023-09-22T09:22:12Z")

</div>

I haven’t done it myself except for headers, but I think so, look at the link I posted and read the doc it should give you ideas on how you could do it, you would need to test it.

---

<div class="post-metadata">

### Author: ![Justin\_Gonzalez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/justin_gonzalez/32/5359_2.png) [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)
#### Post date: [February 6, 2025, 8:48pm UTC](https://community.apollographql.com/t/how-can-i-pass-common-params-into-graphql-body-part-for-all-the-queries/6741/5 "2025-02-06T20:48:17Z")

</div>


