initial update

This commit is contained in:
jackbeeby
2025-05-15 13:32:55 +10:00
commit 7b07a49fbe
4412 changed files with 909535 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# stripSensitiveLiterals
The `stripSensitiveLiterals` function is used to remove string and numeric
literals from a graphql `DocumentNode` which could be sensitive. Consider using
variables instead!
## Usage
```ts
import { stripSensitiveLiterals } from "@apollo/utils.stripsensitiveliterals";
stripSensitiveLiterals(
parse(`#graphql
query User {
user(name: "Ada Lovelace", age: 31, ids: ["1", "2", "3"])
}
`),
);
/**
query User {
user(name: "", age: 0, ids: ["", "", ""])
}
*/
```