【问题标题】:GraphQL API (Astra DB) - the list of existing tables and fieldsGraphQL API (Astra DB) - 现有表和字段的列表
【发布时间】:2021-11-16 18:09:16
【问题描述】:

获取所有以前创建的表的列表的查询语法是什么? 然后如何查看选定的表字段?

【问题讨论】:

    标签: database cassandra graphql datastax-astra stargate-oss


    【解决方案1】:

    获取“sample_keyspace”中表的描述:

    query GetTables {
      keyspace(name: "sample_keyspace") {
        name
        tables {
          name
          columns {
            name
            kind
            type {
              basic
              info {
                name
              }
            }
          }
        }
      }
    }
    

    【讨论】:

      猜你喜欢
      • 2021-08-13
      • 2020-12-07
      • 2017-09-08
      • 1970-01-01
      • 2017-06-29
      • 2023-01-11
      • 2019-11-03
      • 2016-06-06
      • 2013-07-29
      相关资源
      最近更新 更多