Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gatsby-source-graphql) Execute functions in header. (#20731)
* feat(gatsby-source-graphql) Execute functions in headers. Resolves issue #20690, allowing the use of async functions to define headers for gatsby-source-graphql. To use, functions can be passed in the headers object, i.e: headers { authorization: asyncFunc }. * Changes whole headers parameter to accept async function. See gatsbyjs/gatsby#20731. Updated README.md to include new (optional) syntax.
- Loading branch information