Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are composite type arrays supported? #133

Open
binaryunary opened this issue Aug 6, 2020 · 1 comment
Open

Are composite type arrays supported? #133

binaryunary opened this issue Aug 6, 2020 · 1 comment

Comments

@binaryunary
Copy link

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?

@mattbretl
Copy link
Member

Nope, not supported yet, but I'd welcome a PR. 👍

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

No branches or pull requests

2 participants