简体   繁体   中英

Apollo Graphql: Replaying query

I got a use case where I need to replay a query, this needs to be done for repopulating all caches when there is an updated data.

or

Is there a way to call a query from inside the apollo graphql server?

You can store the incoming request - headers, body etc. in a variable and then when all the functions have finished executing, fire that same request using some axios/fetch to your own server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM