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

Grpahql editor query error #15527

Closed
hyzx86 opened this issue Mar 16, 2024 · 1 comment · Fixed by #15529
Closed

Grpahql editor query error #15527

hyzx86 opened this issue Mar 16, 2024 · 1 comment · Fixed by #15529
Labels
Milestone

Comments

@hyzx86
Copy link
Contributor

hyzx86 commented Mar 16, 2024

Describe the bug

To Reproduce

Steps to reproduce the behavior:

A serialization failure exception is thrown when passing parameters in the Graphql editor

For example, parameters:

{
  "loadAllMenuSchema": false
}

Expected behavior

Deserialization of types without a parameterless constructor, a singular parameterized constructor, or a parameterized constructor annotated with 'JsonConstructorAttribute' is not supported. Type 'GraphQL.Inputs'. Path: $.variables | LineNumber: 0 | BytePositionInLine: 889.

NotSupportedException: Deserialization of types without a parameterless constructor, a singular parameterized constructor, or a parameterized constructor annotated with 'JsonConstructorAttribute' is not supported. Type 'GraphQL.Inputs'.

Screenshots

If applicable, add screenshots to help explain your problem.
image

@hyzx86
Copy link
Contributor Author

hyzx86 commented Mar 16, 2024

Because of the Inputs type in graphql-dotnet, there is no default constructor
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants