GraphQL lists queries

Lists can be used to organize the content inside a workspace, like a collection of items. The items created on a workspace can belong to multiple lists or to no list.

Get all the lists in a workspace and some data from project medias

  • Query
    query { team(id: 3) { name projects_count projects { edges { node { title project_medias { edges { node { type title picture } } } } } } } }

  • Result

    {
      "data": {
        "team": {
          "name": "Studio Ghibli",
          "projects_count": 6,
          "projects": {
            "edges": [
              {
                "node": {
                  "title": "My Neighbor Totoro",
                  "project_medias": {
                    "edges": [
                      {
                        "node": {
                          "type": "Link",
                          "title": "My Neighbor Totoro - Wikipedia",
                          "picture": "https://upload.wikimedia.org/wikipedia/en/0/02/My_Neighbor_Totoro_-_Tonari_no_Totoro_%28Movie_Poster%29.jpg"
                        }
                      },
                      {
                        "node": {
                          "type": "Claim",
                          "title": "Totoro",
                          "picture": ""
                        }
                      }
                    ]
                  }
                }
              },
              {
                "node": {
                  "title": "Ponyo",
                  "project_medias": {
                    "edges": [
                      {
                        "node": {
                          "type": "Link",
                          "title": "Ponyo - Wikipedia",
                          "picture": "https://upload.wikimedia.org/wikipedia/en/9/9d/Ponyo_%282008%29.png"
                        }
                      },
                      {
                        "node": {
                          "type": "Claim",
                          "title": "Ponyo",
                          "picture": ""
                        }
                      }
                    ]
                  }
                }
              },
              {
                "node": {
                  "title": "Princess Mononoke",
                  "project_medias": {
                    "edges": [
                      {
                        "node": {
                          "type": "Link",
                          "title": "Princess Mononoke - Wikipedia",
                          "picture": "https://upload.wikimedia.org/wikipedia/en/8/8c/Princess_Mononoke_Japanese_poster.png"
                        }
                      },
                      {
                        "node": {
                          "type": "Claim",
                          "title": "Lady Eboshi",
                          "picture": ""
                        }
                      },
                      {
                        "node": {
                          "type": "Claim",
                          "title": "Ashitaka",
                          "picture": ""
                        }
                      }
                    ]
                  }
                }
              },
              {
                "node": {
                  "title": "Spirited Away",
                  "project_medias": {
                    "edges": [
                      {
                        "node": {
                          "type": "Link",
                          "title": "Spirited Away - Wikipedia",
                          "picture": "https://upload.wikimedia.org/wikipedia/en/d/db/Spirited_Away_Japanese_poster.png"
                        }
                      },
                      {
                        "node": {
                          "type": "Claim",
                          "title": "No-Face",
                          "picture": ""
                        }
                      },
                      {
                        "node": {
                          "type": "Claim",
                          "title": "Yubaba",
                          "picture": ""
                        }
                      },
                      {
                        "node": {
                          "type": "Claim",
                          "title": "Haku",
                          "picture": ""
                        }
                      },
                      {
                        "node": {
                          "type": "Claim",
                          "title": "Chihiro Ogino",
                          "picture": ""
                        }
                      }
                    ]
                  }
                }
              },
              {
                "node": {
                  "title": "The Cat Returns",
                  "project_medias": {
                    "edges": [
                      {
                        "node": {
                          "type": "Link",
                          "title": "The Cat Returns - Wikipedia",
                          "picture": "https://upload.wikimedia.org/wikipedia/en/8/8e/Cat_Returns.jpg"
                        }
                      }
                    ]
                  }
                }
              },
              {
                "node": {
                  "title": "The Tale of the Princess Kaguya",
                  "project_medias": {
                    "edges": [
                      {
                        "node": {
                          "type": "Link",
                          "title": "The Tale of the Princess Kaguya - Wikipedia",
                          "picture": "https://upload.wikimedia.org/wikipedia/en/6/68/The_Tale_of_the_Princess_Kaguya_%28poster%29.jpg"
                        }
                      },
                      {
                        "node": {
                          "type": "Claim",
                          "title": "Princess Kaguya",
                          "picture": ""
                        }
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      }
    }

From a specific project, get the items and some data from the media

  • Query
    query { project(id: "6") { title project_medias(first: 3) { edges { node { description media { picture url } } } } } }

  • Result

    {
      "data": {
        "project": {
          "title": "My Neighbor Totoro",
          "project_medias": {
            "edges": [
              {
                "node": {
                  "description": "This superbly animated children's tale is directed by Hayao Miyazaki, one of Japan's most beloved animators. The story follows Satsuke and Mei, two young girls who find that their new country home is in a mystical forest inhabited by a menagerie of mystical creatures called Totoros. They befriend O Totoro, the biggest and eldest Totoro, who is also the king of the forest. As their girls' mother lies sick in the hospital, O Totoro brings the sisters on a magical adventure but also helps them to understand the realities of life. Like most films released by Miyazaki's Studio Ghibli, this family-oriented feature has a powerful ecological theme. The English-language version of this film wasn't dubbed until many years later, explaining the presence of actors such as Dakota Fanning in the cast (who wasn't even born until 1994). ~ Jonathan E. Laxamana, Rovi",
                  "media": {
                    "picture": "https://resizing.flixster.com/W8-XQhV2QCPHiQlZnM8v1RLjxY8=/206x305/v1.bTsxMTIxMTIwODtqOzE4NDg5OzEyMDA7MTUzNjsyMDQ4",
                    "url": "https://www.rottentomatoes.com/m/my_neighbor_totoro"
                  }
                }
              },
              {
                "node": {
                  "description": "Japanese animation classic My Neighbor Totoro, creating by the legendary animator Hayao Miyazaki, is finally being publicly shown in Chinese cinemas on Friday, which is the first released in China after 30 years.",
                  "media": {
                    "picture": "https://news.cgtn.com/news/3d3d674d78457a4d31457a6333566d54/img/588571f8294d4f4ea89e554c30e57257/588571f8294d4f4ea89e554c30e57257.jpg?t=2018-12-14 21:03:43",
                    "url": "https://news.cgtn.com/news/3d3d674d78457a4d31457a6333566d54/share_p.html"
                  }
                }
              },
              {
                "node": {
                  "description": "Mei and Satsuki continue to adjust to their new country home, as they begin to make friends with shy neighbor boy Kanta. But life without their mother is hard, especially on the nights that Dad can't come home from work until late!It's a good thing the girls have the kindly Granny to watch over them. They soon find out that there is another kindly spirit watching over them--Totoro! Totoro shows Mei and Satsuki a strange and mysterious Cat Bus, helps them with their fledgling garden, and then takes them on a wondrous forest adventure!",
                  "media": {
                    "picture": "https://dw9to29mmj727.cloudfront.net/products/1591166993.jpg",
                    "url": "https://www.viz.com/read/film-comic/my-neighbor-totoro-film-comics-volume-3/product/322"
                  }
                }
              }
            ]
          }
        }
      }
    }

Get items of a list including the data that shows if it is on trash

The field archived has a boolean value and is true when it is on trash and false otherwise

  • Query
    query { project(id: "6") { title project_medias(first: 3) { edges { node { title archived } } } } }

  • Result

    {
      "data": {
        "project": {
          "title": "My Neighbor Totoro",
          "project_medias": {
            "edges": [
              {
                "node": {
                  "title": "My Neighbor Totoro (1988)",
                  "archived": false
                }
              },
              {
                "node": {
                  "title": "'My Neighbor Totoro' releases in China after 30 years",
                  "archived": false
                }
              },
              {
                "node": {
                  "title": "VIZ: See My Neighbor Totoro Film Comic, Vol. 3",
                  "archived": true
                }
              }
            ]
          }
        }
      }
    }