Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Query should support contains operator #87

@ahmadsholehin

Description

@ahmadsholehin

Example data model:
A project can have many collaborators, thus userIds are stored as an array in the collaborators field.
A user needs to query for projects that the user owns, as well projects that the user is a collaborator of.

Ideally, there should be a contains operator for a query as such:

{
  "table": "projects",
  "query": [
    [ "collaborators", "contains", "<userId>" ]
  ]
}

Any way this can be included?

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