Skip to content

Concatenation with backtick (escape) strings #735

@gary-menzel

Description

@gary-menzel

I have a situation where fields in a record are indexed but also contain spaces. For example first field 1, first field 2, first field 3, etc. And I need to iterate over those and create the field name dynamically. I can use $lookup but it would be nice if I could use the backtick approach but still either be able to concatenate the index of a map or if backticks supported interpolation in some way.

I've looked though both the OPEN and CLOSED issues and while I have seen some others asking about interpolation with backticks, I thought this was a very specific use case to add weight to a solution.

I can continue to use $lookup but it would be nice to have a simpler way to generate references with spaces and other variable data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions