I'm trying to set timeout
with prisma-labs/graphql-request
. I've tried the way described here - https://github.com/prisma-labs/graphql-request/issues/103.
const client = new GraphQLClient(config.url, {
timeout: 30000,
headers: {
Authorization: `Bearer ${token}`
}
})
My compiler complains as timeout is not directly present in Options interface - https://github.com/prisma-labs/graphql-request/blob/master/src/types.ts#L7.
Should I need to extend the Options interface to use timeout field?