Skip to content

Commit 93c42bf

Browse files
captbaritonemeta-codesync[bot]
authored andcommitted
Remove code sample for doc comparison docs
Differential Revision: D96028594 fbshipit-source-id: 86748c23fbfd43a2ca10ab705bd1e8f9d1278235
1 parent 3e3d6dc commit 93c42bf

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

website/docs/guides/document-comparison.mdx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,6 @@ Options:
3636
-h, --help Print help
3737
```
3838

39-
You can also run the comparison pragramatically via Rust API, e.g. in the context of an eval grader, where you can report a numerical score and adjust the output as needed to better integrate with your eval setup.
40-
```rust
41-
use graphql_ir_diff::compare;
42-
use anyhow::Result;
43-
44-
impl Grader for ComparisonGrader {
45-
fn grade(schema_paths: Vec<String>, expected: String, actual: String) -> Result<Output> {
46-
graphql_ir_diff::compare(schema_paths, &expected, &actual).map(|(score, message)| {
47-
... // process score/message as needed
48-
}).map_err(|err| {
49-
... // process error as needed
50-
})
51-
}
52-
}
53-
```
54-
5539
## Output
5640

5741
Detailed information about missing selection(s) from the right document, including line number and path.

0 commit comments

Comments
 (0)