diff --git a/.markdownlint.yml b/.markdownlint.yml index a42215e63e5..49e354cb724 100644 --- a/.markdownlint.yml +++ b/.markdownlint.yml @@ -18,9 +18,12 @@ MD033: - ExampleTabs - img - InputChoiceTabs + - List - PackageInstallation + - Panel - Schema - strong + - Tab - u - Video MD036: false # Rationale: Possibly too strict, used frequently in documentation. diff --git a/website/src/docs/docs.json b/website/src/docs/docs.json index 8a6a51369ee..58f50d82d5c 100644 --- a/website/src/docs/docs.json +++ b/website/src/docs/docs.json @@ -392,8 +392,8 @@ "title": "Authorization" }, { - "path": "operation-complexity", - "title": "Operation Complexity" + "path": "cost-analysis", + "title": "Cost Analysis" } ] }, diff --git a/website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md b/website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md index c6a3728efbd..e507b493d51 100644 --- a/website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md +++ b/website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md @@ -76,6 +76,15 @@ The interface `IQueryResultBuilder` and its implementations were replaced with ` The interface `IQueryResultBuilder` and its implementations were replaced with `OperationResultBuilder` which produces an `OperationResult` on `Build()`. +## Operation complexity analyzer replaced + +The Operation Complexity Analyzer in v13 has been replaced by Cost Analysis in v14, based on the draft [IBM Cost Analysis specification](https://ibm.github.io/graphql-specs/cost-spec.html). + +- The `Complexity` property on `RequestExecutorOptions` (accessed via `ModifyRequestOptions`) has been removed. +- Cost analysis is enabled by default. + +Please see the [documentation](../../security/cost-analysis) for further information. + ## DateTime scalar enforces a specific format The `DateTime` scalar will now enforce a specific format. The time and offset are now required, and fractional seconds are limited to 7. This aligns it with the DateTime Scalar spec (), with the one difference being that fractions of a second are optional, and 0-7 digits may be specified. diff --git a/website/src/docs/hotchocolate/v14/security/cost-analysis.md b/website/src/docs/hotchocolate/v14/security/cost-analysis.md new file mode 100644 index 00000000000..56ee9704b8b --- /dev/null +++ b/website/src/docs/hotchocolate/v14/security/cost-analysis.md @@ -0,0 +1,490 @@ +--- +title: Cost Analysis +--- + +import { List, Panel, Tab, Tabs } from "../../../../components/mdx/tabs"; + +