Getting name of field that is primary_key
-
21-12-2019 - |
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.
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