We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can't manage to expand only single attributes using dot notation.
I do have admin permissions and can expand the whole collection succesfully http://127.0.0.1:8090/api/collections/bookings/records?expand=class_id
When i try to expand a single attribute, it is not included http://127.0.0.1:8090/api/collections/bookings/records?expand=class_id.price
same for the sdk. this returns me the complete expanded collection
const records = await pb.collection("bookings").getFullList({ sort: "-created", expand: "class_id", }); return records;
this doesn't return the expanded attribute
const records = await pb.collection("bookings").getFullList({ sort: "-created", expand: "class_id.name,class_id.shortDescription", }); return records;
The text was updated successfully, but these errors were encountered:
It is not expected to work this way. expand operates only with relation fields.
expand
relation
If you want to expand only the name and shortDescription fields you need to specify the fields query parameter, something like:
name
shortDescription
fields
await pb.collection("bookings").getFullList({ sort: "-created", expand: "class_id", fields: "*,expand.class_id.name,expand.class_id.shortDescription" });
If you have other questions please use the Q&A discussions instead as the threaded format is more suitable for this.
Sorry, something went wrong.
No branches or pull requests
Can't manage to expand only single attributes using dot notation.
I do have admin permissions
and can expand the whole collection succesfully
http://127.0.0.1:8090/api/collections/bookings/records?expand=class_id
When i try to expand a single attribute, it is not included
http://127.0.0.1:8090/api/collections/bookings/records?expand=class_id.price
same for the sdk.
this returns me the complete expanded collection
this doesn't return the expanded attribute
The text was updated successfully, but these errors were encountered: