We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@ObjectType()
export class SampleOutput { **@Extensions({ key: 'Value present in extensions member' })** @Field({ nullable: true, }) errorMessage: string; }
Result
{ name: "errorMessage", description: undefined, type: { ........ }, args: [], resolve: (source, args, contextValue, info) => { ..... }, subscribe: undefined, deprecationReason: undefined, extensions: { complexity: undefined, **key: "Value present in fieldconfig",** }, astNode: undefined, }
@inputType()
export class SampleInput { @Extensions({ key: 'Value not present in field config' }) @Field({ nullable: false, defaultValue: false, }) forceCreation: boolean; }
{ name: "forceCreation", description: undefined, type: { .... }, defaultValue: false, deprecationReason: undefined, **extensions: { },** astNode: undefined, }
Same behavior for fields included in both InputType and ObjectType
.
The text was updated successfully, but these errors were encountered:
Please provide a minimum reproduction repository (Git repository/StackBlitz/CodeSandbox project).
Sorry, something went wrong.
https://codesandbox.io/p/devbox/friendly-newton-lnjrc3
Info from the schema handler
[Object: null prototype] { OtypeMember: { name: 'OtypeMember', description: undefined, type: GraphQLScalarType { name: 'String', description: 'TheStringscalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.', specifiedByURL: undefined, serialize: [Function: serialize], parseValue: [Function: parseValue], parseLiteral: [Function: parseLiteral], extensions: [Object: null prototype] {}, astNode: undefined, extensionASTNodes: [] }, args: [], resolve: [Function: rootFieldResolver], subscribe: undefined, deprecationReason: undefined, extensions: [Object: null prototype] { complexity: undefined, key: 'value' }, astNode: undefined } } [Object: null prototype] { ItypeMember: { name: 'ItypeMember', description: undefined, type: GraphQLScalarType { name: 'String', description: 'TheStringscalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.', specifiedByURL: undefined, serialize: [Function: serialize], parseValue: [Function: parseValue], parseLiteral: [Function: parseLiteral], extensions: [Object: null prototype] {}, astNode: undefined, extensionASTNodes: [] }, defaultValue: undefined, deprecationReason: undefined, extensions: [Object: null prototype] {}, astNode: undefined } }
[Object: null prototype] { OtypeMember: { name: 'OtypeMember', description: undefined, type: GraphQLScalarType { name: 'String', description: 'The
scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.', specifiedByURL: undefined, serialize: [Function: serialize], parseValue: [Function: parseValue], parseLiteral: [Function: parseLiteral], extensions: [Object: null prototype] {}, astNode: undefined, extensionASTNodes: [] }, args: [], resolve: [Function: rootFieldResolver], subscribe: undefined, deprecationReason: undefined, extensions: [Object: null prototype] { complexity: undefined, key: 'value' }, astNode: undefined } } [Object: null prototype] { ItypeMember: { name: 'ItypeMember', description: undefined, type: GraphQLScalarType { name: 'String', description: 'The
scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.', specifiedByURL: undefined, serialize: [Function: serialize], parseValue: [Function: parseValue], parseLiteral: [Function: parseLiteral], extensions: [Object: null prototype] {}, astNode: undefined, extensionASTNodes: [] }, defaultValue: undefined, deprecationReason: undefined, extensions: [Object: null prototype] {}, astNode: undefined } }
No branches or pull requests
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
@ObjectType()
Result
@inputType()
Result
Describe the solution you'd like
Same behavior for fields included in both InputType and ObjectType
Teachability, documentation, adoption, migration strategy
.
What is the motivation / use case for changing the behavior?
.
The text was updated successfully, but these errors were encountered: