(
group: GraphQLGroup.GraphQLGroup<Ops>,
options?: {
readonly subscriptionRetry?: Schedule.Schedule<unknown, GraphQLClientError> | undefined
} | undefined
)
| 272 | * @since 4.0.0 |
| 273 | */ |
| 274 | export const make = <Ops extends GraphQL.Any>( |
| 275 | group: GraphQLGroup.GraphQLGroup<Ops>, |
| 276 | options?: { |
| 277 | readonly subscriptionRetry?: Schedule.Schedule<unknown, GraphQLClientError> | undefined |
| 278 | } | undefined |
| 279 | ): Effect.Effect< |
| 280 | GraphQLClient<Ops>, |
| 281 | never, |
| 282 | GraphQLProtocol | GraphQLMiddleware.Identifier<GraphQL.Middleware<Ops>> |
| 283 | > => |
| 284 | Effect.gen(function*() { |
| 285 | const protocol = yield* GraphQLProtocol |
| 286 | const context = yield* Effect.context<never>() |
| 287 | const retryPolicy = retryableOnly(options?.subscriptionRetry ?? defaultSubscriptionRetry) |
| 288 | return fromGroup(group, (operation) => |
| 289 | makeMethod(operation, middlewareChain(context, group, operation), protocol, retryPolicy)) |
| 290 | }) |
| 291 | |
| 292 | // Type boundary: a mapping over the operations cannot prove the mapped type's |
| 293 | // name/kind relationship. |
nothing calls this directly
no test coverage detected