except method
Specifies list of field uids that would be excluded from the response.
fieldUid
field uid which get excluded from the response.
Query object, so you can chain this call.
Example:
final stack = contentstack.Stack('apiKey','deliveryToken','environment');
final query = stack.contentType("contentTypeUid").entry().query();
fieldUid is String type of List
query.except(fieldUid);
Implementation
void except(List<String> fieldUid) {
if (fieldUid != null && fieldUid.isNotEmpty) {
final List referenceArray = [];
for (final item in fieldUid) {
referenceArray.add(item);
}
queryParameter['except[BASE][]'] = referenceArray.toString();
}
}