filmov
tv
GraphQL Scalar Type & Object Type Explained with Examples for API Developers | #graphqlapi

Показать описание
GraphQL is a strongly typed language. Type System defines various data types that can be used in a GraphQL application. The type system helps to define the schema, which is a contract between client and server.
Let understand the first the scalar type. Scalar types are primitive data types that can store only a single value. The default scalar types that GraphQL offers are as follow.
1. Int − Signed 32-bit Integer
2. Float − Signed double precision floating point value
3. String − UTF - 8-character sequence
4. Boolean − True or false
5. ID − A unique identifier, often used as a unique identifier to fetch an object or as the key.
The syntax for defining a scalar type is as follows − field: data_type e.g., greeting: String
Now let see second type i.e., object type. The object type is the most common type used in a schema and represents a group of fields. Each field inside an object type maps to another type, by allowing nested types. In other words, an object type is composed of multiple scalar types or object types.
#graphqlapi #graphql #graphqlserver
** CHECK OUT OUR OTHER VIDEOS **
Create AWS EC2 Instance and Run Springboot Microservice and MongoDB in EC2 Server
** CHECK OUR PLAYLISTS **
AWS Cloud and Docker Containers Complete Tutorial
CodeOneDigest Learning Shorts
Complete Python Learning Tutorial Playlist
** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel for the videos on programming language, cloud and docker container technology in English and Hindi languages.
Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge.
Check out our channel here:
Don’t forget to subscribe!
** OUR WEBSITE **
** GET IN TOUCH **
FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Let understand the first the scalar type. Scalar types are primitive data types that can store only a single value. The default scalar types that GraphQL offers are as follow.
1. Int − Signed 32-bit Integer
2. Float − Signed double precision floating point value
3. String − UTF - 8-character sequence
4. Boolean − True or false
5. ID − A unique identifier, often used as a unique identifier to fetch an object or as the key.
The syntax for defining a scalar type is as follows − field: data_type e.g., greeting: String
Now let see second type i.e., object type. The object type is the most common type used in a schema and represents a group of fields. Each field inside an object type maps to another type, by allowing nested types. In other words, an object type is composed of multiple scalar types or object types.
#graphqlapi #graphql #graphqlserver
** CHECK OUT OUR OTHER VIDEOS **
Create AWS EC2 Instance and Run Springboot Microservice and MongoDB in EC2 Server
** CHECK OUR PLAYLISTS **
AWS Cloud and Docker Containers Complete Tutorial
CodeOneDigest Learning Shorts
Complete Python Learning Tutorial Playlist
** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel for the videos on programming language, cloud and docker container technology in English and Hindi languages.
Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge.
Check out our channel here:
Don’t forget to subscribe!
** OUR WEBSITE **
** GET IN TOUCH **
FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Комментарии