feat: Support accessing array items and fields of composite types through json operators

This is supported in select=, in filters and in order=.

Resolves #1543

Resolves #2075

Signed-off-by: Wolfgang Walther <walther@technowledgy.de>
This commit is contained in:
Wolfgang Walther
2022-02-03 08:13:38 +01:00
committed by Wolfgang Walther
parent 87bd8e72cf
commit 9f1b5c0a81
7 changed files with 115 additions and 4 deletions
+18
View File
@@ -2427,3 +2427,21 @@ BEGIN
END IF;
END
$do$;
-- https://github.com/PostgREST/postgrest/issues/1543
CREATE TYPE complex AS (
r double precision,
i double precision
);
CREATE TABLE test.fav_numbers (
num complex,
person text
);
-- https://github.com/PostgREST/postgrest/issues/2075
create table test.arrays (
id int primary key,
numbers int[],
numbers_mult int[][]
);