Skip to content

Commit

Permalink
Merge branch 'mchan/split-desolver' into npm-desolver-main
Browse files Browse the repository at this point in the history
  • Loading branch information
mckchan13 committed May 8, 2022
2 parents f780674 + e5652ae commit f02688b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ The DeSolver Parameters are as follows:
The first four parameters are the normal parameters for any resolver:
- `parent`: Sometimes referred to as the root object. The same parent/root object which is the result of the previous parent/type.
- `arguments`: Arguments provided to the root or field resolver.
- `context`: a mutable object that is provided to all resolvers.
- `context`: an object that is provided to all resolvers.
- `info`: field specific information relevant to the query.

The final three parameters are additional parameters provided by the DeSolver framework:
Expand Down Expand Up @@ -204,8 +204,6 @@ To chain Desolver Fragments to a specific root type or field resolvers, multiple
See the example below:

```javascript
// Specify when instantiating Desolver which resolvers to chain to in the
// configuration object
const desolver = new Desolver()

desolver.use('Query', authentication)
Expand All @@ -224,7 +222,7 @@ const resolvers = desolver.apply({

Mutation: {
createUser: (parent, root, args, context, info) => {
// This mutation is now guarded by both authentication and authorization functions
// This mutation resolver is now guarded by both authentication and authorization functions
}
}
})
Expand Down

0 comments on commit f02688b

Please sign in to comment.