1

What is the query syntax for getting the list of all previously created tables? And how can I then view selected table fields?

Aaron
  • 55,518
  • 11
  • 116
  • 132
Pro
  • 71
  • 4

1 Answers1

2

Get a description of the tables in your "sample_keyspace":

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