fields property

List<String>? fields
getter/setter pair

List of all fields that should be returned.

If value is null, server will default to ['*']. You can do joins by calling fields with .* after column name. For example ['*', 'user_id.*'] will get all data from current item, and join user_id field with proper table, and get all data.

Example:

fields = ['*'];
fields = ['id', 'title'];
fields = ['id', 'user.*'];

Additional info

Implementation

List<String>? fields;