# Extracting data from Weather API and inserting into GraphQL server

**URL:** <https://discourse.nodered.org/t/extracting-data-from-weather-api-and-inserting-into-graphql-server/35275>\
**Category:** General\
**Created:** [3 November 2020 11:15 UTC](https://discourse.nodered.org/t/extracting-data-from-weather-api-and-inserting-into-graphql-server/35275 "2020-11-03T11:15:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dixeetpurohit](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@Dixeetpurohit](https://discourse.nodered.org/u/Dixeetpurohit)\
**Post date:** [3 November 2020 11:15 UTC](https://discourse.nodered.org/t/extracting-data-from-weather-api-and-inserting-into-graphql-server/35275/1 "2020-11-03T11:15:26Z")

</div>

I am using http request node to call weather API. I want to insert minimum and maximum temperature values into my GraphQL server table. Utilizing this particular syntax for inserting into table (writing this into the GraphQL node):

**mutation {**  
\*\* insert\_Weather\_one (object:\*\*  
\*\* {\*\*  
\*\* Temp\_Max: payload.main.temp\_max\*\*  
\*\* Temp\_Min: payload.main.temp\_min\*\*  
\*\* }\*\*  
\*\* ){\*\*  
\*\* Temp\_Max\*\*  
\*\* Temp\_Min\*\*  
\*\* }\*\*  
**}**

The **payload.main.temp\_min** is the path to minimum temperature inside the Weather API. However I am not able to insert data using this method. Could anyone suggest another to do the needful or maybe point out a mistake that I am making. It would be really helpful.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 January 2021 11:15 UTC](https://discourse.nodered.org/t/extracting-data-from-weather-api-and-inserting-into-graphql-server/35275/2 "2021-01-02T11:15:27Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
