Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iamchanii committed Apr 27, 2024
1 parent 7681e3f commit 739bf1c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 10 deletions.
14 changes: 14 additions & 0 deletions packages/effect-utils/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# effect-utils

A utility for working with Effect. This package is intended for internal use only.

## API

### `executeEffect(effect, runtime?)`

Execute the given Effect using `runPromiseExit`. It returns the value when result is `Exit.Success<A>`. and it throws the value if result is failure.

And it resolve `Option<A>` value into `A | null`.

## License

MIT
12 changes: 3 additions & 9 deletions packages/effect-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"name": "effect-utils",
"version": "0.0.1",
"description": "A utility library for working with Effect",
"description": "A utility for working with Effect",
"type": "module",
"publishConfig": {
"access": "public",
"registiry": "https://registry.npmjs.org"
},
"files": [
"package.json",
"README.md",
"dist"
],
"files": ["package.json", "README.md", "dist"],
"main": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
Expand All @@ -27,9 +23,7 @@
"prepack": "yarn build",
"publish": "yarn npm publish"
},
"keywords": [
"effect"
],
"keywords": ["effect"],
"author": {
"name": "Chanhee Lee",
"email": "[email protected]"
Expand Down
29 changes: 28 additions & 1 deletion packages/graphql-effect/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# envelop-execute-effect
# graphql-effect

Make your GraphQL Schema to allow use Effect.

## Install

```
$ yarn add graphql-effect
```

## Usage

```ts
import { enableExecuteEffect } from "graphql-effect";

declare const yourSchema: import("graphql").GraphQLSchema;
const schema = enableExecuteEffect(yourSchema);
```

## API

### `enableExecuteEffect(schema, runtime?)`

Converts the given `GraphQLSchema`. The `Effect.Effect` will be available as a result of the field resolver.

## License

MIT

0 comments on commit 739bf1c

Please sign in to comment.