apollo-link-pagination
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -22,5 +22,3 @@ "use strict"; | ||
} | ||
var doc = (_c = utilities_1.removeDirectivesFromDocument([{ name: foundDirective }], query)) !== null && _c !== void 0 ? _c : query; | ||
var cleanedQuery = client_1.gql(graphql_1.print(doc)); | ||
operation.query = cleanedQuery; | ||
operation.query = (_c = utilities_1.removeDirectivesFromDocument([{ name: foundDirective }], query)) !== null && _c !== void 0 ? _c : query; | ||
if (appliedPolicies.includes(foundDirective)) { | ||
@@ -27,0 +25,0 @@ return; |
{ | ||
"name": "apollo-link-pagination", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A @pagination directive for GraphQL queries", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -36,3 +36,3 @@ # Apollo Link Pagination | ||
const paginationLink = createPaginationLink(cache, { | ||
cursorPagination: cursorPagination('cursor'), | ||
cursorPagination: cursorPagination(), | ||
offsetLimitPagination: offsetLimitPagination(), | ||
@@ -39,0 +39,0 @@ // or you can define your own pagination directives. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13718
98