Cannot find name 'InputMaybe'.
See original GitHub issueIssue workflow progress
Progress of the issue based on the Contributor Workflow
- 1. The issue provides a reproduction available on Github, Stackblitz or CodeSandbox
Make sure to fork this template and run
yarn generate
in the terminal. Please make sure the Codegen and plugins version underpackage.json
matches yours. - 2. A failing test has been provided
- 3. A local solution has been provided
- 4. A pull request is pending review
my gql:
getArticleHeads(
page: Int = 0
): getArticleHeadsResponse
the generated typescript:
export type GetArticleHeadsQueryVariables = Exact<{
page?: InputMaybe<Scalars['Int']>;
}>;
My tsc version is 4.6.3.
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:10
Top Results From Across the Web
Cannot find name 'Exact' · Issue #5273 · dotansimha/graphql ...
I'm running npm run gql to generate the code but I'm seeing this as an application error. Not really sure why it can't...
Read more >Cannot find name 'Input'.ts(2304) [closed] - Stack Overflow
It's just missing or incorrect import. Add the import to import { Component, Input } from '@angular/core'.
Read more >Angular - Cannot find name 'Input' - Solved - ItSolutionStuff.com
In this post, I will give you the solution of "Cannot find name 'Input'" in angular application. we need to import Input from...
Read more >Installation - GraphQL Code Generator
If you are using Monorepo setup (Lerna/Yarn Workspaces/anything else), please note that GraphQL Codegen is using require to load plugins and ...
Read more >Type 'string or undefined' is not assignable to type string
We used the ternary operator to check if the name property is not equal to ... have information about the type of a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t know! There could be differences, as in perhaps
InputMaybe
returns a different falsey value thanMaybe
, but I could not say if that is true here or not. All I know is that for my use case, it worked to treat them as identical.I am not so sure, I don’t maintain this library.
I had the same problem, as a temporary solution, I used add to insert the
InputMaybe
type in the type generation step