Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

request params restructuring assignment #504

@nickav

Description

@nickav

I tend to have a lot of code that looks like this:

    const q = request.swagger.params.q.value;
    const foo = request.swagger.params.foo.value;
    const bar = request.swagger.params.bar.value;

Is there a way to get multiple param values at once, such that I could do:

const { q, foo, bar } = request.swagger.pluck('q', 'foo', 'bar');

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