Skip to content

Commit

Permalink
Added cost analysis documentation (#7406)
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-84 authored Aug 27, 2024
1 parent 91fc947 commit 8379ce2
Show file tree
Hide file tree
Showing 7 changed files with 507 additions and 221 deletions.
3 changes: 3 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions website/src/docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@
"title": "Authorization"
},
{
"path": "operation-complexity",
"title": "Operation Complexity"
"path": "cost-analysis",
"title": "Cost Analysis"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<https://www.graphql-scalars.com/date-time/>), with the one difference being that fractions of a second are optional, and 0-7 digits may be specified.
Expand Down
Loading

0 comments on commit 8379ce2

Please sign in to comment.