Skip to content

Commit cbd142f

Browse files
Copilotxperiandri
andauthored
Document expected deterministic documentId in test
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/020d0296-28b1-416d-bd12-9dd0790516ba Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
1 parent aa84865 commit cbd142f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/FSharp.Data.GraphQL.Tests/ExecutionTests.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ let ``Execution when querying returns unique document id with response`` () =
384384
Define.Field("b", IntType, fun _ x -> x.B)
385385
]))
386386
let query = "query Example { a, b, a }"
387+
// Deterministic SHA-256-based documentId for the canonical AST query string above.
387388
let expectedDocumentId = -2063861555
388389
let result1 = sync <| Executor(schema).AsyncExecute(query, getMockInputContext, { A = "aa"; B = 2 })
389390
let result2 = sync <| Executor(schema).AsyncExecute(query, getMockInputContext, { A = "aa"; B = 2 })

0 commit comments

Comments
 (0)