| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,11 +55,12 @@ gql_view(request) # <-- the instance is callable and expects a `aiohttp.web.Req | |||
| 55 | 55 | * `graphiql_version`: The graphiql version to load. Defaults to **"1.0.3"**. | |
| 56 | 56 | * `graphiql_template`: Inject a Jinja template string to customize GraphiQL. | |
| 57 | 57 | * `graphiql_html_title`: The graphiql title to display. Defaults to **"GraphiQL"**. | |
| 58 | - * `jinja_env`: Sets jinja environment to be used to process GraphiQL template. If Jinja’s async mode is enabled (by `enable_async=True`), uses | ||
| 58 | + * `jinja_env`: Sets jinja environment to be used to process GraphiQL template. If Jinja’s async mode is enabled (by `enable_async=True`), uses | ||
| 59 | 59 | `Template.render_async` instead of `Template.render`. If environment is not set, fallbacks to simple regex-based renderer. | |
| 60 | 60 | * `batch`: Set the GraphQL view as batch (for using in [Apollo-Client](http://dev.apollodata.com/core/network.html#query-batching) or [ReactRelayNetworkLayer](https://github.com/nodkz/react-relay-network-layer)) | |
| 61 | 61 | * `middleware`: A list of graphql [middlewares](http://docs.graphene-python.org/en/latest/execution/middleware/). | |
| 62 | 62 | * `validation_rules`: A list of graphql validation rules. | |
| 63 | + * `execution_context_class`: Specifies a custom execution context class. | ||
| 63 | 64 | * `max_age`: Sets the response header Access-Control-Max-Age for preflight requests. | |
| 64 | 65 | * `encode`: the encoder to use for responses (sensibly defaults to `graphql_server.json_encode`). | |
| 65 | 66 | * `format_error`: the error formatter to use for responses (sensibly defaults to `graphql_server.default_format_error`. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,8 @@ More info at [Graphene v3 release notes](https://github.com/graphql-python/graph | |||
| 58 | 58 | * `graphiql_html_title`: The graphiql title to display. Defaults to **"GraphiQL"**. | |
| 59 | 59 | * `batch`: Set the GraphQL view as batch (for using in [Apollo-Client](http://dev.apollodata.com/core/network.html#query-batching) or [ReactRelayNetworkLayer](https://github.com/nodkz/react-relay-network-layer)) | |
| 60 | 60 | * `middleware`: A list of graphql [middlewares](http://docs.graphene-python.org/en/latest/execution/middleware/). | |
| 61 | - * `validation_rules`: A list of graphql validation rules. | ||
| 61 | + * `validation_rules`: A list of graphql validation rules. | ||
| 62 | + * `execution_context_class`: Specifies a custom execution context class. | ||
| 62 | 63 | * `encode`: the encoder to use for responses (sensibly defaults to `graphql_server.json_encode`). | |
| 63 | 64 | * `format_error`: the error formatter to use for responses (sensibly defaults to `graphql_server.default_format_error`. | |
| 64 | 65 | * `subscriptions`: The GraphiQL socket endpoint for using subscriptions in graphql-ws. | |
@@ -79,4 +80,4 @@ class UserRootValue(GraphQLView): | |||
| 79 | 80 | ``` | |
| 80 | 81 | ||
| 81 | 82 | ## Contributing | |
| 82 | - See [CONTRIBUTING.md](../CONTRIBUTING.md) | ||
| 83 | + See [CONTRIBUTING.md](../CONTRIBUTING.md) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,11 +47,12 @@ This will add `/graphql` endpoint to your app and enable the GraphiQL IDE. | |||
| 47 | 47 | * `graphiql_version`: The graphiql version to load. Defaults to **"1.0.3"**. | |
| 48 | 48 | * `graphiql_template`: Inject a Jinja template string to customize GraphiQL. | |
| 49 | 49 | * `graphiql_html_title`: The graphiql title to display. Defaults to **"GraphiQL"**. | |
| 50 | - * `jinja_env`: Sets jinja environment to be used to process GraphiQL template. If Jinja’s async mode is enabled (by `enable_async=True`), uses | ||
| 50 | + * `jinja_env`: Sets jinja environment to be used to process GraphiQL template. If Jinja’s async mode is enabled (by `enable_async=True`), uses | ||
| 51 | 51 | `Template.render_async` instead of `Template.render`. If environment is not set, fallbacks to simple regex-based renderer. | |
| 52 | 52 | * `batch`: Set the GraphQL view as batch (for using in [Apollo-Client](http://dev.apollodata.com/core/network.html#query-batching) or [ReactRelayNetworkLayer](https://github.com/nodkz/react-relay-network-layer)) | |
| 53 | 53 | * `middleware`: A list of graphql [middlewares](http://docs.graphene-python.org/en/latest/execution/middleware/). | |
| 54 | - * `validation_rules`: A list of graphql validation rules. | ||
| 54 | + * `validation_rules`: A list of graphql validation rules. | ||
| 55 | + * `execution_context_class`: Specifies a custom execution context class. | ||
| 55 | 56 | * `max_age`: Sets the response header Access-Control-Max-Age for preflight requests. | |
| 56 | 57 | * `encode`: the encoder to use for responses (sensibly defaults to `graphql_server.json_encode`). | |
| 57 | 58 | * `format_error`: the error formatter to use for responses (sensibly defaults to `graphql_server.default_format_error`. | |
@@ -72,4 +73,4 @@ class UserRootValue(GraphQLView): | |||
| 72 | 73 | ``` | |
| 73 | 74 | ||
| 74 | 75 | ## Contributing | |
| 75 | - See [CONTRIBUTING.md](../CONTRIBUTING.md) | ||
| 76 | + See [CONTRIBUTING.md](../CONTRIBUTING.md) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,7 +48,8 @@ This will add `/graphql` endpoint to your app and enable the GraphiQL IDE. | |||
| 48 | 48 | * `graphiql_html_title`: The graphiql title to display. Defaults to **"GraphiQL"**. | |
| 49 | 49 | * `batch`: Set the GraphQL view as batch (for using in [Apollo-Client](http://dev.apollodata.com/core/network.html#query-batching) or [ReactRelayNetworkLayer](https://github.com/nodkz/react-relay-network-layer)) | |
| 50 | 50 | * `middleware`: A list of graphql [middlewares](http://docs.graphene-python.org/en/latest/execution/middleware/). | |
| 51 | - * `validation_rules`: A list of graphql validation rules. | ||
| 51 | + * `validation_rules`: A list of graphql validation rules. | ||
| 52 | + * `execution_context_class`: Specifies a custom execution context class. | ||
| 52 | 53 | * `encode`: the encoder to use for responses (sensibly defaults to `graphql_server.json_encode`). | |
| 53 | 54 | * `format_error`: the error formatter to use for responses (sensibly defaults to `graphql_server.default_format_error`. | |
| 54 | 55 | * `enable_async`: whether `async` mode will be enabled. | |
@@ -59,4 +60,4 @@ This will add `/graphql` endpoint to your app and enable the GraphiQL IDE. | |||
| 59 | 60 | * `should_persist_headers`: An optional boolean which enables to persist headers to storage when true. Defaults to **false**. | |
| 60 | 61 | ||
| 61 | 62 | ## Contributing | |
| 62 | - See [CONTRIBUTING.md](../CONTRIBUTING.md) | ||
| 63 | + See [CONTRIBUTING.md](../CONTRIBUTING.md) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments