1.2.0 • Published 27 days ago

pothos-plugin-effect v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
27 days ago

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

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.2.0

27 days ago

1.1.0

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago

1.0.0-next.0

3 months ago

0.0.0-20230921.2

8 months ago

0.0.0-20230921.1

8 months ago

0.8.0-0

8 months ago

0.8.0

8 months ago

0.7.1

9 months ago

0.7.0

9 months ago

0.6.0

10 months ago

0.5.0

10 months ago

0.4.0

10 months ago

0.3.1

10 months ago

0.3.0

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.0

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago