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: README.md
+62-2
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
## An (Unofficial) Extension pack for using HotChocolate GraphQL framework within Azure Functions for v11.
3
3
4
4
**Update Notes:**
5
+
- Added support for ?SDL download of the Schema (?SDL)
6
+
- Added support for Functioning Playground (when configured correctly iin the AzureFunction HttpTrigger route binding & new path option).
7
+
- Reduced the number of awaits used in the Middleware proxy for performance.
8
+
- Maintained compatibility with v11.0.4.
9
+
10
+
Prior Release Notes:
5
11
- Added ConfigureAwait(false) to all awaits for performance.
6
12
- Bumped to HC v11.0.4
7
13
- Updated to HC v11.0.1.1 due to critical fixes in HC v11.0.1 that resolve an issue in HC core that had broken Interfaces (which impacted the accompanying Star Wars Demo)
@@ -70,12 +76,24 @@ handle the request.
70
76
71
77
### Startup Configuration
72
78
1. The following Middleware initializer must be added into a valid AzureFunctions Configuration 'Startup.cs'
73
-
* All other elements of HotChocolate initialization are the same using the v11 API.
79
+
- All other elements of HotChocolate initialization are the same using the v11 API.
2. If you use the standard AzureFunctions configuration and map your function to Route to `graphql/{*path}` then you are done.
151
+
However if you have changed either the default Azure Function prefix (which is `/api/`) or use a different Route binding, then youTo enable the Playground the Azure Function must be configured properly to serve all Web Assets dynamically
152
+
need to explicitly tell the AzureFunctionsProxy what the expected base Url path is, so that the HC Middleware will successfully
153
+
match the path and serve resources.
154
+
- This is done easily by setting the `AzureFunctionsRoutePath` option in the configuration as follows:
155
+
- Assuming the following then the configuration would be as follows:
156
+
- You have changed the default Azure Functions prefix from `api` to `my-api` in the `host.json` file.
157
+
- You have added a version `v1` in front of the Route binding and renamed it so your Route binding is now: `Route = "v1/graphql-service/{*path}"
158
+
-*NOTE: you MUST still use the wildcard path matching for Playground to function properly.*
0 commit comments