Skip to content

Conversation

avallete
Copy link
Member

What kind of change does this PR introduce?

  • When using star selector, postgrest will exclude computed field from the automatic selection, and only add those if explicitly requested in the select query

{
type Json = unknown

type Database = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we reuse the generated types instead of using a mock?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't wanted to change the schema to test "corner cases" as long as the main cases where handled by the integrations tests.

I've updated the tests to re-use the generated types where possible, and kept the "mock" only for the "multiples computed fields" test case. LMK if that work for you 👍

@avallete avallete merged commit c0d25d3 into master Jul 22, 2025
3 checks passed
Copy link

🎉 This PR is included in version 1.21.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants