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

Scalar type Text always maps to String which is a GraphQL Scalar #10220

Open
TristenHarr opened this issue Apr 30, 2024 · 0 comments
Open

Scalar type Text always maps to String which is a GraphQL Scalar #10220

TristenHarr opened this issue Apr 30, 2024 · 0 comments
Labels
k/enhancement New feature or improve an existing feature

Comments

@TristenHarr
Copy link
Contributor

When using GraphQL.tada or other solutions you need to manually map a Text to String

For example:

export const graphql = initGraphQLTada<{
  introspection: introspection;
  scalars: {
    Text: string;
    Int4: number;
    Timestamptz: string;
    Jsonb: string;
    Numeric: string;
  };
}>();

Notice, Text maps to String but it would be better to have the scalar just be String directly.

Ideally, the scalar would be String

@TristenHarr TristenHarr added the k/enhancement New feature or improve an existing feature label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant