2.0.1 • Published 12 months ago
pothos-plugin-effect v2.0.1
pothos-plugin-effect
Seamless integration between the Pothos GraphQL and Effect.
Hello World!
import SchemaBuilder from '@pothos/core';
import EffectPlugin from 'pothos-plugin-effect';
import { Effect, Random } from 'effect';
const builder = new SchemaBuilder({
plugins: [EffectPlugin],
});
builder.queryFields(t => ({
roll: t.effect({
type: 'Int',
resolve() {
// $ExpectType Effect.Effect<never, never, number>
return Random.nextIntBetween(1, 6);
},
}),
}));
Documentations
- Getting Started
- Context Management
- Integration with Relay Plugin
- Integration with Errors Plugin
- Integration with Prisma Plugin
Acknowledges
- Pothos by @hayes (GitHub/Docs) - A nice GraphQL Schema builder. I heavily relied on the README for this project and The documentation of the plugin implementation is excellent.
- Effect (GitHub/Docs)
Contributors
Made with contrib.rocks.
Licenses
MIT
1.4.0
1 year ago
2.0.1
12 months ago
2.0.0
12 months ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago
1.0.1
1 year ago
0.0.0-20240209215520
1 year ago
1.0.0
1 year ago
1.0.0-next.0
1 year ago
0.0.0-20230921.2
2 years ago
0.0.0-20230921.1
2 years ago
0.8.0-0
2 years ago
0.8.0
2 years ago
0.7.1
2 years ago
0.7.0
2 years ago
0.6.0
2 years ago
0.5.0
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago