You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a warning message when implementing a @DgsData function that contains a method inside.
Script example:
type Data @key(fields: "id") @extends{
id: ID! @external
configurations(settings: [ConfigInput!]!): [ConfigOutput!]!
}
input ConfigInput {
name: String!
}
type ConfigOutput {
value: String!
}
And implementing this method
@DgsData(parentType = "Data", field = "configurations")
fun type1Configurations(@InputArgument(collectionType = ConfigInput::class) settings: List<ConfigInput>): List<ConfigurationToggle> {
// Work here
}
I keep getting a warning saying that @InputArgument type does not match the schema, expected @InputArgument (collectionType=ConfigInput) settings: List<ConfigInput>
If I apply the fix hit the plugin gives it actually cause an error since it is not providing an extension for the collectionTypeConfigInput
The same situation happens when using it on a typical query with no graphql federation.
Can you please help, thanks!
The text was updated successfully, but these errors were encountered:
vasquez-csdisco
changed the title
DGS plugin gives a warning saying that collectionType is not compatible in kotlin
DGS plugin gives a warning saying collectionType value set as input does not match the schema
Mar 17, 2022
Hi,
I am getting a warning message when implementing a @DgsData function that contains a method inside.
Script example:
And implementing this method
I keep getting a warning saying that
@InputArgument type does not match the schema, expected @InputArgument (collectionType=ConfigInput) settings: List<ConfigInput>
If I apply the fix hit the plugin gives it actually cause an error since it is not providing an extension for the
collectionType
ConfigInput
The same situation happens when using it on a typical query with no graphql federation.
Can you please help, thanks!
The text was updated successfully, but these errors were encountered: