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

Type names are different between v4 and v5 #194

Open
hos opened this issue Mar 22, 2023 · 0 comments
Open

Type names are different between v4 and v5 #194

hos opened this issue Mar 22, 2023 · 0 comments

Comments

@hos
Copy link

hos commented Mar 22, 2023

In the TableFilter type for domains, the type name sometimes is a string and sometimes it's the domain name. In v4 the type is always named as the domain.

For this table

drop schema if exists public cascade;
create schema public;

create extension if not exists citext with schema public;

drop domain if exists public.email cascade;
create domain public.email as public.citext
  check ( value ~ '^[a-zA-Z0-9.!#$%&''*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$' );

drop table if exists public.users cascade;
create table public.users (
  id text not null primary key,
  email public.email not null unique
);

I get this type when running ouch-my-finger

[includes](http://[::1]:5678/graphql#): [String](http://[::1]:5678/graphql#)
Contains the specified string (case-sensitive).

[notIncludes](http://[::1]:5678/graphql#): [**String**](http://[::1]:5678/graphql#)
Does not contain the specified string (case-sensitive).

[includesInsensitive](http://[::1]:5678/graphql#): [**Email**](http://[::1]:5678/graphql#)
Contains the specified string (case-insensitive).

[notIncludesInsensitive](http://[::1]:5678/graphql#): [Email](http://[::1]:5678/graphql#)
Does not contain the specified string (case-insensitive).

[startsWith](http://[::1]:5678/graphql#): [String](http://[::1]:5678/graphql#)
Starts with the specified string (case-sensitive).

[notStartsWith](http://[::1]:5678/graphql#): [String](http://[::1]:5678/graphql#)

As you can see sometimes it named String, sometimes Email. Is this a bug?

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

No branches or pull requests

1 participant