Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yanns authored May 7, 2024
1 parent 37e52d1 commit ae9d971
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def graphQL[F[_]: Async]: GraphQL[F, StateService] = {
sangria.marshalling.circe.CirceInputUnmarshaller,
stateResolver)

GraphQL(schema, env.pure[F])(Async[F], um)
GraphQL(schema, DeferredResolver.fetchers(StateGraphQLSchema.states), ctx.pure[F])(Async[F], um)
}
```

Expand Down Expand Up @@ -104,6 +104,7 @@ subgraphs:
## Caution 🚨🚨

- **This is a technology preview. We are actively working on it and cannot promise a stable API yet**.
- It's highly recommended to use [Deferred Value Resolution](https://sangria-graphql.github.io/learn/#deferred-value-resolution) in those resolvers to batch the fetching of the entities.
- The library upgrades the marshaller to map values scalars (e.g. json objects as scalars). This can lead to security issues as discussed [here](http://www.petecorey.com/blog/2017/06/12/graphql-nosql-injection-through-json-types/).

## Contribute
Expand Down

0 comments on commit ae9d971

Please sign in to comment.