I need to list all id of documents in collection. I was following this:
https://docs.fauna.com/fauna/current/start/fql_for_sql_users.html?lang=javascript
In Sql what I want to do would be: SELECT id from Person
but in the example here, it will return all “columns” of Person. (SELECT * from Person)
How can I make an index that specify only id from the collections?
You can create an Index with values = id.
For e.g.
SELECT shipperID FROM shippers
in fql would bePaginate(Match(Index("shippers_id")))