Skip to content

Get

Get one or many objects by id (link)

Prefix: get

Value: Vector of links

Can start the pipeline: Yes

Steps before: find, get, sort, limit, offset

Steps after: find, get, sort, limit, offset, update, delete

Examples

collection|test|:get[
    test|7458a618-d907-4855-9f78-56b8a7343634|,
    test|cee4c1a0-c7ed-4856-b766-d0ec78cbc432|,
];

Output:

result:ok[
    response{
        s|data|:objects{
            test|7458a618-d907-4855-9f78-56b8a7343634|:s|foo|,
            test|cee4c1a0-c7ed-4856-b766-d0ec78cbc432|:s|bar|,
        },
        s|meta|:get_meta{
            s|count|:n|2|,
        },
    },
];