Closed META-DREAMER closed 7 years ago
Lets say there's an input type:
input UpdateProfileInput { id: ID! name: string email: string }
The generated type is:
declare type UpdateProfileInput = { id: string; name: ?string; email: ?string; }
Which requires that both name and email be provided. This input object would falsely give an error:
const input = { id: '123', name: 'John Doe', }
To get rid of the error right now you have to do:
const input = { id: '123', name: 'John Doe', email: undefined }
The generated type should be:
declare type UpdateProfileInput = { id: string; name?: ?string; email?: ?string; }
@joarwilk Could we get this released on NPM ?
Lets say there's an input type:
The generated type is:
Which requires that both name and email be provided. This input object would falsely give an error:
To get rid of the error right now you have to do:
The generated type should be: