Hey all! I’m new to Prisma. I was an avid fan of G...
# orm-help
m
Hey all! I’m new to Prisma. I was an avid fan of Graphcool last year, but a lot has changed since! I’m seeing something strange with code generated by
graphqlgen
, and it may or may not be a bug… Not sure if the forum would be a better place to discuss it, but here I go… If I have a mutation like this:
Copy code
type Mutation {
  updateUser(x: [String!]!, y: [String!], z: String): User!
}
The generated interface for the mutation variables,
ArgsUpdateUser
, looks like this:
Copy code
export interface ArgsUpdateUser {
  x: string[];
  y: string[];
  z: string | null;
}
I would expect that
y
should be typed as
string[] | null
, but it’s just `string[]`… Is that expected behaviour?