@gqloom/core 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,14 +18,15 @@ The design of GQLoom is inspired by [tRPC](https://trpc.io/), [TypeGraphQL](http
18
18
  ## Hello World
19
19
 
20
20
  ```ts
21
- import { resolver, query, weave } from "@gqloom/valibot"
21
+ import { resolver, query, weave } from "@gqloom/core"
22
+ import { ValibotWeaver } from "@gqloom/valibot"
22
23
  import * as v from "valibot"
23
24
 
24
- const HelloResolver = resolver({
25
+ const helloResolver = resolver({
25
26
  hello: query(v.string(), () => "world"),
26
27
  })
27
28
 
28
- export const schema = weave(HelloResolver)
29
+ export const schema = weave(ValibotWeaver, helloResolver)
29
30
  ```
30
31
 
31
32
  Read [Introduction](https://gqloom.dev/guide/introduction.html) to learn more about GQLoom.