You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/analytics/resolver/GetMetadataAnalyticsResolver.java
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/container/ContainerEntitiesResolver.java
+1-2
Original file line number
Diff line number
Diff line change
@@ -91,8 +91,7 @@ public CompletableFuture<SearchResults> get(final DataFetchingEnvironment enviro
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/dataproduct/ListDataProductAssetsResolver.java
-1
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,6 @@ public CompletableFuture<SearchResults> get(DataFetchingEnvironment environment)
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/domain/DomainEntitiesResolver.java
+1-2
Original file line number
Diff line number
Diff line change
@@ -95,8 +95,7 @@ public CompletableFuture<SearchResults> get(final DataFetchingEnvironment enviro
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/search/GetQuickFiltersResolver.java
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/search/ScrollAcrossEntitiesResolver.java
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/search/SearchAcrossEntitiesResolver.java
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/siblings/SiblingsSearchResolver.java
+3
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@
19
19
importcom.linkedin.metadata.utils.CriterionUtils;
20
20
importgraphql.schema.DataFetcher;
21
21
importgraphql.schema.DataFetchingEnvironment;
22
+
importjava.util.List;
22
23
importjava.util.concurrent.CompletableFuture;
23
24
importlombok.RequiredArgsConstructor;
24
25
importlombok.extern.slf4j.Slf4j;
@@ -61,6 +62,8 @@ public CompletableFuture<ScrollResults> get(DataFetchingEnvironment environment)
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/test/java/com/linkedin/datahub/graphql/resolvers/container/ContainerEntitiesResolverTest.java
+1-2
Original file line number
Diff line number
Diff line change
@@ -60,8 +60,7 @@ public void testGetSuccess() throws Exception {
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/test/java/com/linkedin/datahub/graphql/resolvers/domain/DomainEntitiesResolverTest.java
+1-2
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,7 @@ public void testGetSuccess() throws Exception {
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/test/java/com/linkedin/datahub/graphql/resolvers/search/GetQuickFiltersResolverTest.java
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/test/java/com/linkedin/datahub/graphql/resolvers/versioning/VersionsSearchResolverTest.java
Copy file name to clipboardexpand all lines: docs/api/graphql/graphql-best-practices.md
+40-4
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,14 @@ This technique makes maintaining your GraphQL queries much more doable. For exam
33
33
34
34
`search*` APIs such as [`searchAcrossEntities`](https://datahubproject.io/docs/GraphQL/queries/#searchacrossentities) are designed for minimal pagination (< ~50). They do not perform well for deep pagination requests. Use the equivalent `scroll*` APIs such as [`scrollAcrossEntities`](https://datahubproject.io/docs/GraphQL/queries/#scrollacrossentities) when expecting the need to paginate deeply into the result set.
35
35
36
-
Note: that it is impossible to use `search*` for paginating beyond 10k results.
36
+
:::note
37
+
It is impossible to use `search*` for paginating beyond 10k results.
38
+
:::
39
+
40
+
:::caution
41
+
In order to `scroll*` through the entire result set it is required to use a stable sort order. This means using `_score` as
42
+
the first sort order cannot be used. Use the `urn` field as the sort order instead.
0 commit comments