Skip to content

Commit ba6843a

Browse files
committed
patch(doc): give more clear credit to the original project
1 parent 454844f commit ba6843a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# graphql-middleware-typed-arguments
22

3-
GraphQL Middleware Typed Arguments lets you define a processor function to massage, validate, authorize, or whatever your query, mutation, or field arguments of a certain type. The middleware was originally developed as GraphQL Middleware Apollo Upload Server, which wonderfully separated streaming uploaded media to its ultimate destination from other concerns.
3+
GraphQL Middleware Typed Arguments lets you define a processor function to massage, validate, authorize, or whatever your query, mutation, or field arguments of a certain type. The middleware was originally developed as [GraphQL Middleware Apollo Upload Server](https://www.npmjs.com/package/graphql-middleware-apollo-upload-server), which wonderfully separated streaming uploaded media to its ultimate destination from other concerns.
44

55
## Install
66

@@ -20,7 +20,7 @@ npm install graphql-middleware-typed-arguments
2020

2121
## Demo
2222

23-
The example is taken directly from graphql-middleware-apollo-upload-server which was basis for this generalization. There are two changes from the original: the GraphQLUpload type object is imported, but the type name "Upload" could be used as well. (In fact, type names are simpler way to get at a type defined in SDL.) The second change is providing the type (object or string) to the middleware factory function provided by this package: `processTypeArgs`.
23+
The example is taken directly from graphql-middleware-apollo-upload-server which was basis for this generalization. There are two changes from the original: the GraphQLUpload type object is imported, but the type name "Upload" could be used as well. (In fact, type names are simpler way to get at a type defined in SDL.) The second change is providing the type (object or string) to the middleware factory function provided by this package: `processTypeArgs`. (The previous version's `upload` method has been preseved and implemented as a special case.)
2424

2525
```ts
2626
import { GraphQLServer } from 'graphql-yoga'

0 commit comments

Comments
 (0)