Closed
Description
Hi,
I would like to know if the annotations supports introspecting a List
of complex input type.
Here's (simplified) example of what I'm trying to achieve which leads to a Introspection must provide input type for arguments
error in chrome GraphiQL client .
I wonder if I'm doing something wrong or if there is no support of list of complex input types through annotations.
The SpaceInstanceInput
below is what I'm passing as a parameter of this mutation
@GraphQLField
public MutationResult updateSpaceInstance(
@GraphQLName("spaceInstanceInput") final SpaceInstanceInput spaceInstanceInput) {
where SpaceInstanceInput
data structure looks like:
public class SpaceInstanceInput {
private final List<LogSubscriptionInput> logSubscriptions = null;
private LogSubscriptionInput firstLogSubscriptions;
// WORKS FINE
@GraphQLField
public LogSubscriptionInput getFirstLogSubscription() {
return this.firstLogSubscriptions;
}
// DOES NOT WORK
@GraphQLField
public List<LogSubscriptionInput> getLogSubscriptions() {
return this.logSubscriptions;
}
}
public class LogSubscriptionInput {
private LogTypeInput logTypeInput;
private String subscriptionId;
@GraphQLField
public LogTypeInput getLogTypeInput() {
return this.logTypeInput;
}
@GraphQLField
public String getSubscriptionId() {
return this.subscriptionId;
}
}
public class LogTypeInput {
private final String format;
private final String type;
@GraphQLField
public String getFormat() {
return this.format;
}
@GraphQLField
public String getType() {
return this.type;
}
}
Metadata
Metadata
Assignees
Labels
No labels