apollo-federation 2.13.1

Apollo Federation
Documentation
---
source: apollo-federation/src/connectors/json_selection/parser.rs
expression: "selection!(r#\"\n            choices->first.message { content role }\n        \"#)"
---
JSONSelection {
    inner: Path(
        PathSelection {
            path: WithRange {
                node: Key(
                    WithRange {
                        node: Field(
                            "choices",
                        ),
                        range: Some(
                            13..20,
                        ),
                    },
                    WithRange {
                        node: Method(
                            WithRange {
                                node: "first",
                                range: Some(
                                    22..27,
                                ),
                            },
                            None,
                            WithRange {
                                node: Key(
                                    WithRange {
                                        node: Field(
                                            "message",
                                        ),
                                        range: Some(
                                            28..35,
                                        ),
                                    },
                                    WithRange {
                                        node: Selection(
                                            SubSelection {
                                                selections: [
                                                    NamedSelection {
                                                        prefix: None,
                                                        path: PathSelection {
                                                            path: WithRange {
                                                                node: Key(
                                                                    WithRange {
                                                                        node: Field(
                                                                            "content",
                                                                        ),
                                                                        range: Some(
                                                                            38..45,
                                                                        ),
                                                                    },
                                                                    WithRange {
                                                                        node: Empty,
                                                                        range: Some(
                                                                            45..45,
                                                                        ),
                                                                    },
                                                                ),
                                                                range: Some(
                                                                    38..45,
                                                                ),
                                                            },
                                                        },
                                                    },
                                                    NamedSelection {
                                                        prefix: None,
                                                        path: PathSelection {
                                                            path: WithRange {
                                                                node: Key(
                                                                    WithRange {
                                                                        node: Field(
                                                                            "role",
                                                                        ),
                                                                        range: Some(
                                                                            46..50,
                                                                        ),
                                                                    },
                                                                    WithRange {
                                                                        node: Empty,
                                                                        range: Some(
                                                                            50..50,
                                                                        ),
                                                                    },
                                                                ),
                                                                range: Some(
                                                                    46..50,
                                                                ),
                                                            },
                                                        },
                                                    },
                                                ],
                                                range: Some(
                                                    36..52,
                                                ),
                                            },
                                        ),
                                        range: Some(
                                            36..52,
                                        ),
                                    },
                                ),
                                range: Some(
                                    27..52,
                                ),
                            },
                        ),
                        range: Some(
                            20..52,
                        ),
                    },
                ),
                range: Some(
                    13..52,
                ),
            },
        },
    ),
    spec: V0_2,
}