Boolean, true or false.

Caveat: New documents are created without schema-defined fields. This means that a boolean field in your schema will not immediately result in documents containing the boolean key. The key must be assigned a value for it to appear in a document. Make sure your front-end code treats a missing boolean value as false. In GROQ you can handle missing booleans like this *[_type == 'story' && (featured == false || !defined(featured))] which would math stories where featured is false or not defined.

  title: 'Has the movie been released?',
  name: 'released',
  type: 'boolean'

Example output data

  "_type": "movie",
  "released": true,

Previous: NumberNext: Array