Skip to content

Commit

Permalink
fix(docs): Yoga docs sync
Browse files Browse the repository at this point in the history
Rename fieldMiddleware to middleware
  • Loading branch information
maticzav committed May 30, 2018
2 parents 6889d22 + 09b1bf1 commit 1c80830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const resolvers = {
const server = new GraphQLServer({
typeDefs,
resolvers,
fieldMiddleware: [authMiddleware, metricsMiddleware],
middlewares: [authMiddleware, metricsMiddleware],
documentMiddleware: [],
})
server.start(() => console.log('Server is running on localhost:4000'))
Expand Down Expand Up @@ -135,7 +135,7 @@ function applyMiddleware(

### Can I use GraphQL Middleware without GraphQL Yoga?

Yes. Nevertheless, we encourage you to use it in combination with Yoga. Combining the power of `fieldMiddleware` that GraphQL Middleware offers, with `documentMiddleware` which Yoga exposes, gives you unparalleled control over the execution of your queries.
Yes. Nevertheless, we encourage you to use it in combination with Yoga. Combining the power of `middlewares` that GraphQL Middleware offers, with `documentMiddleware` which Yoga exposes, gives you unparalleled control over the execution of your queries.

### How does GraphQL Middleware compare to `directives`?

Expand Down

0 comments on commit 1c80830

Please sign in to comment.