Adding content to 104-validation, 107-pagination

content/graphql
syedmouaazfarrukh 2 years ago
parent 6b836f4912
commit c2ce8ed50a
  1. 9
      src/roadmaps/graphql/content/104-validation.md
  2. 14
      src/roadmaps/graphql/content/107-pagination.md

@ -1 +1,8 @@
# Validation
# Validation
Validation in GraphQL refers to the process of checking whether a GraphQL query or mutation conforms to the rules and constraints defined in the GraphQL schema. This can include checking that the query or mutation includes the required fields, that the arguments passed to a field are of the correct type, and that the values passed to fields or arguments fall within the expected range.
Learn more from the following links:
- [Get Started with Validation in GraphQL](https://graphql.org/learn/validation/)
- [Validate GraphQL Schema](https://medium.com/the-guild/validate-graphql-schema-70e2f63451c8)

@ -1 +1,13 @@
# Pagination
# Pagination
Pagination in GraphQL refers to the process of breaking up large sets of data into smaller chunks, also known as pages, and providing a way to navigate between these pages. This allows clients to retrieve a specific subset of data, rather than having to retrieve all of the data at once, which can be beneficial for performance, especially when working with large datasets.
There are several ways to implement pagination in GraphQL:
- Using cursor-based pagination
- Using offset-based pagination
- Using relay-style pagination
To learn more, visit the following links:
- [Get Started with Pagination](https://graphql.org/learn/pagination/)
Loading…
Cancel
Save