title: Apollo ios codegen generates optional values
body: <p>I'm trying with all the latest version of apollo-ios but i'd like to solve this one lingering problem: I keep getting optional values (see image below).</p>
  <p><img src="https://user-images.githubusercontent.com/990511/122034712-5e2b0200-ce04-11eb-930b-5e3fe2c95ed8.png" alt="xcode" /></p>
  <p>Here's what I've explored (but still can't find whyyy)</p>
  <p>When I created the table, Nullable is false. Then, I create a view which is for public to access it.</p>
  <p><img src="https://user-images.githubusercontent.com/990511/122035617-3ab48700-ce05-11eb-92bc-ea17c68fda09.png" alt="table" /></p>
  <p><img src="https://user-images.githubusercontent.com/990511/122035361-f923dc00-ce04-11eb-8e7a-e851117c382b.png" alt="view" /></p>
  <p>With apollo schema:download command, here's the generated json: <a href="https://github.com/vinamelody/MyApolloTest/blob/test/Apollo/schema.json" rel="nofollow noreferrer">schema.json</a></p>
  <p>With graphqurl command, here's the generated schema.graphql: <a href="https://github.com/vinamelody/MyApolloTest/blob/test/Apollo/schema.graphql" rel="nofollow noreferrer">schema.graphql</a>. Here's the snippet.</p>
  <pre><code>&quot;&quot;&quot;
  columns and relationships of &quot;schedule&quot;
  &quot;&quot;&quot;
  type schedule {
    activity: String
    end_at: timestamptz
    id: Int
  
    &quot;&quot;&quot;An array relationship&quot;&quot;&quot;
    speakers(
      &quot;&quot;&quot;distinct select on columns&quot;&quot;&quot;
      distinct_on: [talk_speakers_view_select_column!]
  
      &quot;&quot;&quot;limit the number of rows returned&quot;&quot;&quot;
      limit: Int
  
      &quot;&quot;&quot;skip the first n rows. Use only with order_by&quot;&quot;&quot;
      offset: Int
  
      &quot;&quot;&quot;sort the rows by one or more columns&quot;&quot;&quot;
      order_by: [talk_speakers_view_order_by!]
  
      &quot;&quot;&quot;filter the rows returned&quot;&quot;&quot;
      where: talk_speakers_view_bool_exp
    ): [talk_speakers_view!]!
    start_at: timestamptz
    talk_description: String
    talk_type: String
    title: String
  }
  
  </code></pre>
  <p>I am suspecting that it looks like <code>id: Int</code> is missing <code>!</code> in the schema, is the cause of codegen interpreting it as optional. But I could be wrong too. Here's the repo for the complete reference <a href="https://github.com/vinamelody/MyApolloTest/tree/test" rel="nofollow noreferrer">https://github.com/vinamelody/MyApolloTest/tree/test</a></p>