0% found this document useful (0 votes)
11 views1 page

Boolean, and ID.: Graphql

GraphQL defines scalar types like String and Int, custom object types to represent data models, queries to read data like GET requests, mutations to modify data like POST requests, and input types for passing arguments to mutations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Boolean, and ID.: Graphql

GraphQL defines scalar types like String and Int, custom object types to represent data models, queries to read data like GET requests, mutations to modify data like POST requests, and input types for passing arguments to mutations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

GRAPHQL

1. Scalar Types: These are the basic data types in GraphQL, such as String, Int, Float,
Boolean, and ID.
2. Custom Object Types: You can define custom object types that represent your data
models. For example, if you're building an e-commerce API, you might define types like
Product, User, Order, etc.
3. Queries: Queries define the operations that can be performed to read data from the API.
These are often analogous to GET requests in REST.
4. Mutations: Mutations define the operations that modify data on the server, such as
creating, updating, or deleting data. Mutations are equivalent to POST, PUT, or DELETE
requests in REST.
5. Input Types: Input types are used for passing complex arguments to mutations. They are
similar to object types but are designed for input data.

You might also like