postgraphile-plugin-connection-filter
postgraphile-plugin-connection-filter copied to clipboard
Are composite type arrays supported?
Hi, I was wondering whether filtering on composite type arrays is something that is supported out of the box in postgraphile-plugin-connection-filter
?
An example DB schema:
create type image as (
image_type varchar(2),
image_uri text
);
create table movie (
id integer primary key generated by default as identity,
asset_id text unique,
images image[]
);
insert into movie(asset_id , images) values (
'some-another-movied-id',
array[
('CO', 'some/another/long/cover/uri')::image,
('LI', 'some/another/long/list/uri')::image
]);
insert into movie(asset_id , images) values (
'some-movied-id',
array[
('CO', 'some/long/cover/uri')::image,
('LI', 'some/long/list/uri')::image
]);
However, filtering on images
doesn't seem possible:
Is there an extra configuration setting that needs to be enabled or this is simply not supported at this point?
Nope, not supported yet, but I'd welcome a PR. :+1: