Skip to content

Commit 54b2f1e

Browse files
Alan-ChaErikWittern
authored andcommitted
Optional options
Signed-off-by: Alan Cha <[email protected]>
1 parent b59db7b commit 54b2f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/openapi-to-graphql/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Notice that the slashes in the path `/favoriteBooks/{name}` must be escaped with
137137
The `createGraphQlSchema` function takes an optional `options` object as a second argument:
138138

139139
```javascript
140-
createGraphQLSchema(oas, options)
140+
createGraphQLSchema(oas[, options])
141141
```
142142

143143
The options object can contain the following properties:
@@ -176,7 +176,7 @@ Authentication options:
176176

177177
- `tokenJSONpath` (type: `string`, default: `undefined`): Used to pass the [JSONPath](http://goessner.net/articles/JsonPath/) of the OAuth token in the GraphQL context. To see more details, click [here](./README.md#authorization).
178178

179-
- `sendOAuthTokenInQuery` (type: `boolean`, default: `false`): If set to true, the OAuth token extracted from the provided `tokenJSONpath` will be sent as an `access_token` query parameter (instead of in a header).
179+
- `sendOAuthTokenInQuery` (type: `boolean`, default: `false`): If set to true, the OAuth token extracted from the provided `tokenJSONpath` will be sent as an `access_token` query parameter (instead of in the header).
180180
***
181181

182182
Logging options:

0 commit comments

Comments
 (0)