Skip to content

Feature request: Retry request on fail #57

@drewbaker

Description

@drewbaker

I know that the point of GQL request is to be very simple, so maybe this is not within scope... but man I'd love retry to be built into this module!

Something like this:

  graphql: {
    clients: {
      default: {
          retry: {
            attempts: 3,
            delay: 1000         
          }
      }
    }
}    

And when the request fails for any reason, it waits 1000 between each retry 3 times, before really failing.

The thing is, I actually really want these for some old Nuxt2 projects that fail SSG builds due to a slow-to-scale API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions