List Types
List Types are used to represent an ordered list or an array of values of specific type i.e. scalar types, enumeration types, object types, etc. It is represented by using “type modifier []“. Various other Types are enclosed within the type modifier [].
Syntax:
field_name: [data_type]
Example:
type CricketTeam {
title: String!
members: [Person!]!
}
Types in GraphQL
GraphQL is a strongly typed query language used as a manipulative language for various APIs. It is also called a query language for APIs. GraphQL also helps to describe our data. GraphQL services can run in any language In this, Types are the fundamental concepts that define various data types present in GraphQL and It is also used to define the schema using different data types. There are multiple types in GraphQL.