-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix selecting nested field with name that begins with dollar sign (#108)
This PR updates the logic for building selection documents for the `$replaceWith` pipeline stage to be more rigorous. It uses an expanded `ColumnRef` enum to keep track of whether the selected reference has a name that needs to be escaped, is a variable, etc.
- Loading branch information
Showing
12 changed files
with
308 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...shots/integration_tests__tests__basic__selects_nested_field_with_dollar_sign_in_name.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
source: crates/integration-tests/src/tests/basic.rs | ||
expression: "graphql_query(r#\"\n query {\n testCases_nestedFieldWithDollar(order_by: { configuration: Asc }) {\n configuration {\n schema\n }\n }\n }\n \"#).run().await?" | ||
--- | ||
data: | ||
testCases_nestedFieldWithDollar: | ||
- configuration: | ||
schema: ~ | ||
- configuration: | ||
schema: schema1 | ||
- configuration: | ||
schema: schema3 | ||
errors: ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.