Skip to content

Incorrect type on filters #47

@nazrhom

Description

@nazrhom

Currently a query like

api.get({
    resource: 'release',
    options: {
        $top: 1,
        $orderby: 'id desc',
        $filter: {
            belongs_to__application: appId,
            commit: commitHash,
            push_timestamp: { $ne: null },
            status: 'success',
        }
    }
});

Is considered ill-typed by the client. The problem is with the sub-filter { $ne: null }. This happens because, with the current typings, a filter value can only be one of number | string | undefined.

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