Question

Using Python I do:

r.table_create('examples', primary_key='name')

Now how do I get the name of the primary_key field which is "name"? I tried:

r.table('examples').index_list().run()

But it only returns secondary indexes.

Was it helpful?

Solution

If you run r.table('test').info().run() part of the output is the primary key.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top