Skip to content

defaultValue is pasted as toString() into the schema #148

@NikkyAI

Description

@NikkyAI

i configured a qury like so

type<FindAddonsConfig>() {
    description = "wrapper object for passing configurations to findAddons"
}
query("findAddons") {
    resolver { config: FindAddonsConfig ->
        ....
		listOf<String>()
    }.withArgs {
        arg<FindAddonsConfig> {
            name ="config"
            defaultValue = FindAddonsConfig()
        }
    }
}

this broke graphql clients and inspection
running the inspection query manually reveals

 "defaultValue": "FindAddonsConfig(gameIdList=null, categoryList=null, gameVersionList=null, idList=null, nameList=null, slugList=null, sectionList=null, statusList=null)"

in the response

my expectation was that this would be json encoded
is there a different (typesafe) overload for this i overlooked ?

i am using 0.17.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions