This is enabled by adding `!inner` to the embedded resource /projects?select=*,clients!inner(*)&clients.id=eq.12 This behaviour can be enabled by default with the config option db-embed-default-join='inner' Which saves the need for specifying `!inner` on every request. If this is enabled, the previous behavior can be restored per request by specifying `!left` on the embedded resource. /projects?select=*,clients!left(*)&clients.id=eq.12` Tested on M20/02M/M2M relationships, views, RPC.
30 lines
996 B
YAML
30 lines
996 B
YAML
PGRST_APP_SETTINGS_test2: test
|
|
PGRST_APP_SETTINGS_test: test
|
|
PGRST_DB_ANON_ROLE: root
|
|
PGRST_DB_CHANNEL: postgrest
|
|
PGRST_DB_CHANNEL_ENABLED: false
|
|
PGRST_DB_EXTRA_SEARCH_PATH: public, test
|
|
PGRST_DB_MAX_ROWS: 1000
|
|
PGRST_DB_POOL: 1
|
|
PGRST_DB_POOL_TIMEOUT: 100
|
|
PGRST_DB_PREPARED_STATEMENTS: false
|
|
PGRST_DB_PRE_REQUEST: please_run_fast
|
|
PGRST_DB_ROOT_SPEC: openapi_v3
|
|
PGRST_DB_SCHEMAS: multi, tenant,setup
|
|
PGRST_DB_CONFIG: false
|
|
PGRST_DB_TX_END: rollback-allow-override
|
|
PGRST_DB_URI: tmp_db
|
|
PGRST_DB_EMBED_DEFAULT_JOIN: inner
|
|
PGRST_JWT_AUD: 'https://postgrest.org'
|
|
PGRST_JWT_ROLE_CLAIM_KEY: '.user[0]."real-role"'
|
|
PGRST_JWT_SECRET: c2VjdXJpdHl0aHJvdWdob2JzY3VyaXR5
|
|
PGRST_JWT_SECRET_IS_BASE64: true
|
|
PGRST_LOG_LEVEL: info
|
|
PGRST_OPENAPI_MODE: 'ignore-privileges'
|
|
PGRST_OPENAPI_SERVER_PROXY_URI: 'https://postgrest.org'
|
|
PGRST_RAW_MEDIA_TYPES: application/vnd.pgrst.config
|
|
PGRST_SERVER_HOST: 0.0.0.0
|
|
PGRST_SERVER_PORT: 80
|
|
PGRST_SERVER_UNIX_SOCKET: /tmp/pgrst_io_test.sock
|
|
PGRST_SERVER_UNIX_SOCKET_MODE: 777
|