Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Branquo opened this issue Nov 8, 2024 · 0 comments

Comments

@Branquo
Copy link

Branquo commented Nov 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant