You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/openapi-to-graphql/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,7 @@ Notice that the slashes in the path `/favoriteBooks/{name}` must be escaped with
133
133
134
134
### File Uploads
135
135
136
-
Support for file uploads through GraphQL is implemented based on the spec defined [here](https://github.com/jaydenseric/graphql-multipart-request-spec), through the module [`graphql-upload`](https://github.com/jaydenseric/graphql-upload). This requires that to opt-in for file uploads, it is required that a GraphQL client that provides support for the spec is used, additionally, on the Graphql Server the util method `processRequest` provided by the module `graphql-upload`is integrated to format the received request body to match the expectations for the spec.
136
+
Support for file uploads through GraphQL is implemented based on the spec defined [here](https://github.com/jaydenseric/graphql-multipart-request-spec), through the module [`graphql-upload`](https://github.com/jaydenseric/graphql-upload). To optin for file uploads, a GraphQL client that provides support for the spec must be used. Additionally, on the GraphQL server, the util method `processRequest` provided by the module `graphql-upload`must be integrated to format the received request body to match the expectations for the spec.
137
137
138
138
### Options
139
139
@@ -187,7 +187,7 @@ Resolver options:
187
187
188
188
- `customSubscriptionResolvers` (type: `object`, default: `{}`): If the `createSubscriptionsFromCallbacks` is enabled, OpenAPI-to-GraphQL will generate Subscription fields. This option allows users to provide custom resolver and subscribe functions to be used in place of said ones created by OpenAPI-to-GraphQL. The field that the custom resolver and subscribe functions will affect is identifed first by the [title](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#infoObject) of the OAS, then the [path](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#paths-object) of the operation, and lastly the [method](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#path-item-object) of the operation. The resolver is provided via the `resolver` field and the publish function is provided via the `publish` field. The `customSubscriptionResolvers` object is thus a quadruply nested object where the outer key is the title, followed by the path, then the method, and lastly either `resolver` or `publish` which points to the [resolver function](https://graphql.org/learn/execution/#root-fields-resolvers) itself or publish function. See the [Subscriptions tutorial](./docs/subscriptions.md) for more information. _Note: Because the arguments are provided by the GraphQL interface, they may look different from the [parameters](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject) defined by the OAS. For example, they will have [sanitized](https://github.com/IBM/openapi-to-graphql#characteristics) names. The [request body](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#requestBodyObject) will also be contained in the arguments as an [input object type](https://graphql.org/graphql-js/mutations-and-input-types/)._
189
189
190
-
-`fileUploadOptions` (type: `object`, default: `{}`): This options allows users to provide custom options for the form data object that will be used to process requests to endpoints that require a multipart request body, provided through the [`form-data` module](https://github.com/form-data/form-data)
190
+
-`fileUploadOptions` (type: `object`, default: `{}`): This options allows users to provide custom options for the form data object that will be used to process requests to endpoints that require a multipart request body, provided through the [`form-data` module](https://github.com/form-data/form-data). See [file uploads](#file-uploads).
Copy file name to clipboardExpand all lines: packages/openapi-to-graphql/test/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,12 @@ The following table summarizes the purposes of these tests.
25
25
| Test file | API(s) | Testing purpose |
26
26
|---|---|---|
27
27
|`example_api.test.ts`|`Example API`| An assortment of basic functionality and options on a company-themed API |
28
-
|`authentication.test.ts`|`Example API`| Basic authentication tests including using the [viewer functionality](https://github.com/IBM/openapi-to-graphql/blob/master/packages/openapi-to-graphql/README.md#authentication)|
29
-
|`example_api2.test.ts`|`Example API 2`| The [`operationIdFieldNames` option](https://github.com/IBM/openapi-to-graphql/blob/master/packages/openapi-to-graphql/README.md#options)|
30
-
|`example_api3.test.ts`|`Example API` and `Example API 3`| Creating GraphQL wrappers from multiple APIs and [interOAS links](https://github.com/IBM/openapi-to-graphql/blob/master/packages/openapi-to-graphql/README.md#nested-objects)|
28
+
|`authentication.test.ts`|`Example API`| Basic authentication tests including using the [viewer functionality](../README.md#authentication)|
29
+
|`example_api2.test.ts`|`Example API 2`| The [`operationIdFieldNames` option](../README.md#options)|
30
+
|`example_api3.test.ts`|`Example API` and `Example API 3`| Creating GraphQL wrappers from multiple APIs and [interOAS links](../README.md#nested-objects)|
31
31
|`example_api4.test.ts`|`Example API 4`| JSON schema [combining schema](https://json-schema.org/understanding-json-schema/reference/combining.html) keywords |
32
-
|`example_api5.test.ts`|`Example API 5`| The [`simpleNames` option](https://github.com/IBM/openapi-to-graphql/blob/master/packages/openapi-to-graphql/README.md#options)|
32
+
|`example_api5.test.ts`|`Example API 5`| The [`simpleNames` option](../README.md#options)|
33
33
|`example_api6.test.ts`|`Example API 6`| An assortment of other functionality and options |
34
34
|`example_api7.test.ts`|`Example API 7`|[Subscription support](../docs/subscriptions.md)|
35
+
|`file_upload.test.ts`|`File Upload API`|[File uploads](../README.md#file-uploads) and [file upload options](../README.md#options)|
0 commit comments