Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ dependencies = [
"encoding_rs",
"form_urlencoded",
"hashbrown 0.16.1",
"heck",
"hex",
"http 1.4.0",
"indexmap 2.14.0",
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ apollo-parser = "0.8.4"
apollo-smith = "0.15.2"
async-trait = "0.1.77"
encoding_rs = "0.8"
heck = "0.5.0"
hex = { version = "0.4.3", features = ["serde"] }
http = "1.1.0"
insta = { version = "1.38.0", features = [
Expand Down
1 change: 1 addition & 0 deletions apollo-federation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ derive_more = { version = "2.0.0", features = [
encoding_rs.workspace = true
http.workspace = true
hashbrown = "0.16.0"
heck.workspace = true
indexmap = { version = "2.2.6", features = ["serde"] }
itertools = "0.14.0"
line-col = "0.2.1"
Expand Down
8 changes: 8 additions & 0 deletions apollo-federation/src/connectors/json_selection/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ pub(super) enum ArrowMethod {
Mul,
Div,
Mod,
KeysToCamelCase,
KeysToCamelCaseDeep,

// Future methods:
TypeOf,
Expand Down Expand Up @@ -176,6 +178,8 @@ impl std::ops::Deref for ArrowMethod {
Self::Mul => &public::MulMethod,
Self::Div => &public::DivMethod,
Self::Mod => &public::ModMethod,
Self::KeysToCamelCase => &public::KeysToCamelCaseMethod,
Self::KeysToCamelCaseDeep => &public::KeysToCamelCaseDeepMethod,

// Future methods:
Self::TypeOf => &future::TypeOfMethod,
Expand Down Expand Up @@ -234,6 +238,8 @@ impl ArrowMethod {
"contains" => Some(Self::Contains),
"toString" => Some(Self::ToString),
"parseInt" => Some(Self::ParseInt),
"keysToCamelCase" => Some(Self::KeysToCamelCase),
"keysToCamelCaseDeep" => Some(Self::KeysToCamelCaseDeep),
_ => None,
};

Expand Down Expand Up @@ -282,6 +288,8 @@ impl ArrowMethod {
| Self::Mul
| Self::Div
| Self::Mod
| Self::KeysToCamelCase
| Self::KeysToCamelCaseDeep
)
}
}
Loading
Loading