Centro de Custo

List the projects for the filtered company

There are filters available, check playground

POST -> /graphql

query {
  allProjects(company: "Q29tcGFueU5vZGU6MQ==") {
    edges {
      node {
        id
        name
      }
      cursor
    }
    pageInfo {
      startCursor
      endCursor
      hasNextPage
      hasPreviousPage
    }
  }
}

Response

{
    "data": {
        "allProjects": {
            "edges": [
                {
                    "cursor": "YXJyYXljb25uZWN0aW9uOjA=",
                    "node": {
                        "id": "UHJvamVjdE5vZGU6MTQwNg==",
                        "name": "Project 1"
                    }
                },
                {
                    "cursor": "YXJyYXljb25uZWN0aW9uOjE=",
                    "node": {
                        "id": "UHJvamVjdE5vZGU6MzIxNDE=",
                        "name": "Project 2"
                    }
                }
            ],
            "pageInfo": {
                "endCursor": "YXJyYXljb25uZWN0aW9uOjYy",
                "hasNextPage": false,
                "hasPreviousPage": false,
                "startCursor": "YXJyYXljb25uZWN0aW9uOjA="
            }
        }
    }
}