Make your GraphQL Schema to allow use Effect.
$ yarn add graphql-effect
import { enableExecuteEffect } from "graphql-effect";
declare const yourSchema: import("graphql").GraphQLSchema;
const schema = enableExecuteEffect(yourSchema);
Converts the given GraphQLSchema
. The Effect.Effect
will be available as a result of the field resolver.
MIT