✨ Perfect ✨ combination of Pothos GraphQL and Effect. This powerful combination will take your GraphQL development experience to the next level!
import EffectPlugin from "pothos-plugin-effect";
import { Random } from "effect";
const builder = new SchemaBuilder({
plugins: [EffectPlugin],
});
builder.queryFields((t) => ({
roll: t.effect({
type: "Int",
resolve: () => Random.nextIntBetween(1, 6),
}),
}));
$ yarn add effect pothos-plugin-effect
No friendly documentation is currently available, but you can check out the test code below to see how it works in action:
SchemaBuildert.effectStream@pothos/core^4effect>=3.0.0Made with contrib.rocks.
MIT