Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GitHub GraphQL搜索仅限于语言_Github_Graphql_Github Api_Github Graphql - Fatal编程技术网

GitHub GraphQL搜索仅限于语言

GitHub GraphQL搜索仅限于语言,github,graphql,github-api,github-graphql,Github,Graphql,Github Api,Github Graphql,我试图使用GitHub的GraphQLAPI来查找与查询匹配但仅限于特定语言的回购协议列表。然而,我在文档中找不到任何与语言过滤器相关的东西,典型的在线搜索支持这种语言过滤器,或者类似的东西通常是如何使用GraphQL完成的 { search(query: "query", type: REPOSITORY, first: 10) { repositoryCount edges { node { ... on Repository {

我试图使用GitHub的GraphQLAPI来查找与查询匹配但仅限于特定语言的回购协议列表。然而,我在文档中找不到任何与语言过滤器相关的东西,典型的在线搜索支持这种语言过滤器,或者类似的东西通常是如何使用GraphQL完成的

{
  search(query: "query", type: REPOSITORY, first: 10) {
    repositoryCount
    edges {
      node {
        ... on Repository {
          nameWithOwner
        }
      }
    }
  } 
}

我几乎猜这不太可能,我将不得不查询所有内容并在客户端上进行过滤?

查询
参数中,您可以使用与过滤语言相同的格式,使用
语言:语言

{
  search(query: "language:java", type: REPOSITORY, first: 10) {
    repositoryCount
    edges {
      node {
        ... on Repository {
          nameWithOwner
        }
      }
    }
  } 
}

啊,我没有意识到,基本上只是在同一个搜索中输入。谢谢!:)