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

docs: warn when using defaultPopulate on collections with uploads enabled #10138

Merged
merged 3 commits into from
Jan 2, 2025

Conversation

PlagueFPS
Copy link
Contributor

When defaultPopulate is enabled without specifying filename: true and url: true for collections with an upload field. The upload will not have a valid URL when returned from Payload APIs and will instead be returned with a value of null

… field.

This is an important note as without specifying both `filename: true` and `url: true` Payload APIs will return `url: null` for uploads.
docs: add important warning for using `defaultPopulate` on collections with an upload field.
docs/queries/select.mdx Outdated Show resolved Hide resolved
@r1tsuu r1tsuu changed the title docs: warn when using defaultPopulate on collections with an upload field. docs: warn when using defaultPopulate on collections with uploads enabled Jan 2, 2025
@r1tsuu r1tsuu enabled auto-merge (squash) January 2, 2025 22:02
@r1tsuu r1tsuu disabled auto-merge January 2, 2025 22:03
@r1tsuu r1tsuu enabled auto-merge (squash) January 2, 2025 22:04
@r1tsuu r1tsuu merged commit d6d9edc into payloadcms:main Jan 2, 2025
14 checks passed
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

Successfully merging this pull request may close these issues.

2 participants