graphql-utilities icon indicating copy to clipboard operation
graphql-utilities copied to clipboard

GraphQLInputObjectType default values aren't working for non-named types (i.e., GraphQLList)

Open migueloller opened this issue 7 years ago • 0 comments

This schema won't behave as expected. The default value for friends ends up being null.

input InsertUserInput {
  id: ID!
  name: String!
  friends: [ID!] = []
}

migueloller avatar Mar 05 '17 00:03 migueloller