Skip to content

Commit

Permalink
Rename fieldMiddleware to middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
ztec authored May 30, 2018
1 parent 6889d22 commit 2754c4b
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],
middleware: [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 `middleware` 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 2754c4b

Please sign in to comment.