最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

how to filter gitlab graphql query by date - Stack Overflow

programmeradmin1浏览0评论

I have used the clues on this page to get a list of posts from Gitlab GraphQL. But I'm not successful at filtering by date. This query in the graphql-explorer shows following output.

query { 
  group(fullPath: "GROUP") {
    issues {
      nodes {
        title
        iid
        timelogs {
          nodes {
            summary
            timeSpent
            spentAt
            user {
              username
            }  
          }
        }
      }
    }
  }
}

result

{
  "data": {
    "group": {
      "issues": {
        "nodes": [
          {
            "title": "Col Methods and UI for transaction",
            "iid": "8",
            "timelogs": {
              "nodes": [
                {
                  "summary": "works for us on the camera",
                  "timeSpent": 28800,
                  "spentAt": "2025-02-04T00:00:00-05:00",
                  "user": {
                    "username": "abc123"
                  }
                },
               .....

Now I tried many style filter example found on other questions and forums but get only error and no query result.

How may I add a filter to the query so that I see only the list of issues with "spentAt" greater than 2025-02-01?

Thanks for any advice

发布评论

评论列表(0)

  1. 暂无评论