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

Docs: export type Scalars generation #1429

Open
glensc opened this issue Feb 6, 2022 · 2 comments
Open

Docs: export type Scalars generation #1429

glensc opened this issue Feb 6, 2022 · 2 comments

Comments

@glensc
Copy link
Contributor

glensc commented Feb 6, 2022

On the quickstart page:

I could not find anything to change typescript typing of the scalars:

/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
  ID: string;
  String: string;
  Boolean: boolean;
  Int: number;
  Float: number;
  /** UUID */
  UUID: any;
  /** Domain */
  Domain: any;
  /** Date */
  Date: any;
  /** JSON object */
  JSON: any;
};

I would like to change tye any to something else string for example or your types.

@glensc
Copy link
Contributor Author

glensc commented Feb 6, 2022

Could not explain better, but i think the PR explains it better what I had in mind:

@ardatan
Copy link
Collaborator

ardatan commented Feb 6, 2022

I think this is something part of GraphQL Code Generator configuration not GraphQL Scalars.

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

2 participants