Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 131 forks source link

Required list bug ([Foo!]!) #484

Open ronanyeah opened 6 years ago

ronanyeah commented 6 years ago

Copying from here.

Current behavior

I am noticing some strange (broken) behavior with lists that are required in the [Foo!]! format. It's so easy to reproduce that others must have come across this but my searches are turning up nothing.

For example, if I deploy a new service with a field of notes: [String!]! it will deploy normally, but if I do another deploy straight afterwards it will say field 'notes' has been updated and the schema will show the type as [String!] even though types.graphql has not changed.

Reproduction

  1. graphcool init foo
  2. cd foo
  3. Add a notes: [String!]! field to a type in types.graphql
  4. graphcool deploy
  5. Create new local service
  6. graphcool deploy