Skip to content

Filter by date #17

Description

@Ximore

I am trying to get latest posts from my collection, but want only to fetch those that are published until this day today. So I want to know how to fetch posts that are released at dates prior till today.

I tried to use the suggestion from this issue, but it doesn't seem to work neither as the $-sign is not accepted in GraphQL as a key.

{
    collection(name:"posts", filter:{published: true, date:{$lt: "2019-03-01"}})
}

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