When attempting to retrieve a specific record with limited fields using the fields query parameter, the response includes additional fields (id, created, updated) that are empty, instead of just the requested fields.
record = pb.collection('example').get_one(id, query_params={
"fields": "name"
})
should return only the name field, however is returning:
Record data: {'id': '', 'created': '', 'updated': '', 'expand': {}, 'name': 'example name'}
I assume the issue stems from the BaseModel class which includes these default properties.
When attempting to retrieve a specific record with limited fields using the
fieldsquery parameter, the response includes additional fields (id,created,updated) that are empty, instead of just the requested fields.should return only the
namefield, however is returning:I assume the issue stems from the
BaseModelclass which includes these default properties.