Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 231 Bytes

making-schema-fields-required.md

File metadata and controls

13 lines (11 loc) · 231 Bytes

Make fields in a scheme required.

You're able to make some of the schema fields required by adding an exclamation point:

const typeDefs = gql`
  type Highlight {
    id: ID!
    content: String!
    ...
  }
`;