Schema
type Volunteer {
_id: GraphbackObjectID!
name: String!
email: String
preferredDays: [DaysOfWeek]
skills:[String]
}
enum {
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
SUNDAY
}
Generated Mutation
type Mutation {
updateVolunteer(input: MutateVolunteerInput!): Volunteer
}
input MutateVolunteerInput {
_id: GraphbackObjectID!
name: String
email: String
preferredDays: DaysOfWeek
skills: String
}
....
What I was expecting this to generate is:
Expected Mutation
type Mutation {
updateVolunteer(input: MutateVolunteerInput!): Volunteer
}
input MutateVolunteerInput {
_id: GraphbackObjectID!
name: String
email: String
preferredDays: [DaysOfWeek]
skills: [String]
}
....
I would expect the skills field in MutateVolunteerInput to be an array of Strings. At the moment I can create a Volunteer with an array of skills, however once I update with the above mutation all queries fail since it cannot convert a string back to an array of strings.
If you need anymore info let me know
Automatically generated comment to notify maintainers
/cc @craicoverflow, @machi1990, @wtrocki
Thank you for logging issue. This is due to no representation for array in graphback - array is relationship to type so if we do not have it as relation things could be tricky. Looks like simple fix.
@craicoverflow I think we had some workaround for this right?
This is a small bug. I've put out a fix in #2205.
Ah brilliant! Have you guys got a plan to do a release of the fix to NPM anytime soon?
We have releases 1.1.0 - please try it out :smile:
Most helpful comment
We have releases 1.1.0 - please try it out :smile:
https://github.com/aerogear/graphback/releases/tag/1.1.0