diff --git a/src/roadmaps/graphql/content/104-validation.md b/src/roadmaps/graphql/content/104-validation.md index 0d70767ab..b27a1db0b 100644 --- a/src/roadmaps/graphql/content/104-validation.md +++ b/src/roadmaps/graphql/content/104-validation.md @@ -1 +1,8 @@ -# Validation \ No newline at end of file +# 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) \ No newline at end of file diff --git a/src/roadmaps/graphql/content/107-pagination.md b/src/roadmaps/graphql/content/107-pagination.md index 4122fb7da..43ea139f0 100644 --- a/src/roadmaps/graphql/content/107-pagination.md +++ b/src/roadmaps/graphql/content/107-pagination.md @@ -1 +1,13 @@ -# Pagination \ No newline at end of file +# 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/) \ No newline at end of file