Skip to content

Are composite type arrays supported? #133

@binaryunary

Description

@binaryunary

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:
image

Is there an extra configuration setting that needs to be enabled or this is simply not supported at this point?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions