Skip to content

id, created and updated fields returning empty when using fields query parameter #104

Description

@Branquo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions