The industry-leading GraphQL client for TypeScript, JavaScript, React, Vue, Angular, and more. Apollo Client delivers powerful caching, intuitive APIs, and comprehensive developer tools to accelerate your app development.
172 matches across 5 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .api-reports/api-report-react_compiled.api.md | 341 | // Warning: (ae-forgotten-export) The symbol "InternalRefetchQueriesResult" needs to be exported by the entry point inde |
| LOW | .api-reports/api-report-react_compiled.api.md | 641 | } |
| LOW | .api-reports/api-report-react_compiled.api.md | 721 | // (undocumented) |
| LOW | .api-reports/api-report-react_compiled.api.md | 2081 | client: ApolloClient; |
| LOW | .api-reports/api-report-react_compiled.api.md | 2361 | // src/core/types.ts:371:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry p |
| LOW | .api-reports/api-report-core.api.md | 941 | |
| LOW | .api-reports/api-report-utilities.api.md | 61 | // Warning: (ae-forgotten-export) The symbol "DeepPartialPrimitive" needs to be exported by the entry point index.d.ts |
| LOW | .api-reports/api-report-cache.api.md | 361 | // Warning: (ae-forgotten-export) The symbol "Layer" needs to be exported by the entry point index.d.ts |
| LOW | .api-reports/api-report-cache.api.md | 381 | // (undocumented) |
| LOW | .api-reports/api-report-cache.api.md | 421 | retain(rootId: string): number; |
| LOW | .api-reports/api-report-cache.api.md | 441 | cache: InMemoryCache; |
| LOW | .api-reports/api-report-cache.api.md | 761 | // (undocumented) |
| LOW | .api-reports/api-report-cache.api.md | 821 | // (undocumented) |
| LOW | .api-reports/api-report.api.md | 781 | args?: Record<string, any>; |
| LOW | .api-reports/api-report.api.md | 1161 | // (undocumented) |
| LOW | .api-reports/api-report.api.md | 1181 | // Warning: (ae-forgotten-export) The symbol "CacheGroup" needs to be exported by the entry point index.d.ts |
| LOW | .api-reports/api-report.api.md | 1201 | readonly policies: Policies; |
| LOW | .api-reports/api-report.api.md | 1281 | // (undocumented) |
| LOW | .api-reports/api-report.api.md | 2261 | // (undocumented) |
| LOW | .api-reports/api-report.api.md | 2321 | // |
| LOW | .api-reports/api-report.api.md | 3061 | [dataId: string]: SelectionSetNode[]; |
| LOW | config/prepareDist.ts | 1 | // The Apollo Client source that is published to npm is located in the |
| LOW | integration-tests/next/next-env.d.ts | 1 | /// <reference types="next" /> |
| LOW | scripts/codemods/ac3-to-ac4/src/renames.ts | 1 | import type { namedTypes } from "ast-types"; |
| LOW | scripts/codemods/ac3-to-ac4/src/renames.ts | 21 | // }, |
| LOW | scripts/codemods/ac3-to-ac4/src/renames.ts | 721 | }, |
| LOW | scripts/codemods/ac3-to-ac4/src/renames.ts | 741 | // module: "@apollo/client/react/ssr", |
| LOW | .github/workflows/close-stale-issues.yml | 61 | # # The label to apply when an issue is closed. |
| LOW | .github/workflows/close-stale-issues.yml | 81 | |
| LOW | .github/workflows/close-stale-issues.yml | 141 | |
| LOW | src/core/QueryManager.ts | 1361 | const results: InternalRefetchQueriesMap<TResult> = new Map(); |
| LOW | src/core/QueryManager.ts | 1381 | // running the updateCache function, triggering only one broadcast. |
| LOW | src/core/types.ts | 241 | | RefetchQueriesIncludeShorthand; |
| LOW | src/core/ObservableQuery.ts | 1021 | }); |
| LOW | src/core/ObservableQuery.ts | 1261 | // It's possible to use this method to apply options.nextFetchPolicy to |
| LOW | src/core/ObservableQuery.ts | 1781 | dirty && |
| LOW | src/core/index.ts | 161 | isReference, |
| LOW | src/core/QueryInfo.ts | 281 | // the network (and the variables match too), avoid writing |
| LOW | src/core/QueryInfo.ts | 301 | // contain this data. If some other query has clobbered that |
| LOW | …_tests__/client.watchQuery/streamDefer20220824.test.ts | 601 | // non-null, but also emits the friend at index 2 to add to the array. This |
| LOW | src/cache/core/cache.ts | 221 | // Optimistic API |
| LOW | src/cache/inmemory/policies.ts | 81 | storeObject: StoreObject; |
| LOW | src/cache/inmemory/policies.ts | 221 | // Helper function for reading other fields within the current object. |
| LOW | src/cache/inmemory/policies.ts | 481 | public addTypePolicies(typePolicies: TypePolicies) { |
| LOW | src/cache/inmemory/policies.ts | 641 | |
| LOW | src/cache/inmemory/policies.ts | 661 | // Field policy inheritance is atomic/shallow: you can't inherit a |
| LOW | src/cache/inmemory/inMemoryCache.ts | 321 | // Call this method to undo the effect of the retain method, above. Once the |
| LOW | src/cache/inmemory/inMemoryCache.ts | 561 | // This method is wrapped by maybeBroadcastWatch, which is called by |
| LOW | src/cache/inmemory/key-extractor.ts | 121 | // For directives without arguments (d defined, but directiveArgs === |
| LOW | src/cache/inmemory/writeToStore.ts | 681 | // Items in the same position in different arrays are not |
| LOW | src/cache/inmemory/entityStore.ts | 501 | const workSet = new Set<Record<string | number, any>>([root]); |
| LOW | src/cache/inmemory/entityStore.ts | 601 | }; |
| LOW | src/cache/inmemory/entityStore.ts | 761 | // easy access to higher layers here, and we're about to recreate those |
| LOW | src/utilities/internal/mergeDeep.ts | 1 | import { mergeDeepArray } from "./mergeDeepArray.js"; |
| LOW | src/utilities/internal/removeDirectivesFromDocument.ts | 301 | getInUseByOperationName(node.name && node.name.value) |
| LOW | src/utilities/internal/types/DeepOmit.ts | 1 | import type { Primitive } from "./Primitive.js"; |
| LOW | src/__tests__/optimistic.ts | 2121 | // optimistic transactions would trigger additional |
| LOW | src/link/subscriptions/index.ts | 1 | // This file is adapted from the graphql-ws npm package: |
| LOW | src/link/http/selectHttpOptionsAndBody.ts | 21 | accept: "application/graphql-response+json,application/json;q=0.9", |
| LOW | src/react/index.react-server.ts | 41 | // prettier-ignore |
| 9 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .api-reports/api-report-utilities_internal.api.md | 303 | export function getGraphQLErrorsFromResult(result: { |
| LOW | .api-reports/api-report-utilities_internal.api.md | 471 | export function removeDirectivesFromDocument(directives: RemoveDirectiveConfig[], doc: DocumentNode): DocumentNode | nul |
| LOW | .api-reports/api-report-utilities_internal.api.md | 479 | export function removeMaskedFragmentSpreads(document: DocumentNode): DocumentNode; |
| LOW | .api-reports/api-report-testing_internal.api.md | 65 | export function createOperationWithDefaultContext(context: any, operation: GraphQLRequest, executeContext?: ExecuteConte |
| LOW | .api-reports/api-report-testing_internal.api.md | 71 | export function executeWithDefaultContext(link: ApolloLink_2, operation: GraphQLRequest, context?: ExecuteContext): Obse |
| LOW | .api-reports/api-report-link_http.api.md | 122 | export function parseAndCheckHttpResponse(operations: ApolloLink.Operation | ApolloLink.Operation[]): (response: Respons |
| LOW | .api-reports/api-report-link_http.api.md | 142 | export function selectHttpOptionsAndBodyInternal(operation: ApolloLink.Operation, printer: BaseHttpLink.Printer, ...conf |
| LOW | .api-reports/api-report-utilities.api.md | 136 | export function isFormattedExecutionResult(result?: object): result is FormattedExecutionResult; |
| LOW | …eports/api-report-utilities_subscriptions_relay.api.md | 15 | export function createFetchMultipartSubscription(uri: string, { fetch: preferredFetch, headers }?: CreateMultipartSubscr |
| LOW | .api-reports/api-report-link_remove-typename.api.md | 13 | export function removeTypenameFromVariables(options?: RemoveTypenameFromVariablesLink.Options): RemoveTypenameFromVariab |
| LOW | .api-reports/api-report.api.md | 2298 | export function parseAndCheckHttpResponse(operations: ApolloLink.Operation | ApolloLink.Operation[]): (response: Respons |
| LOW | .api-reports/api-report.api.md | 2761 | export function selectHttpOptionsAndBodyInternal(operation: ApolloLink.Operation, printer: BaseHttpLink.Printer, ...conf |
| LOW | config/helpers.ts | 183 | export function patchApiExtractorInternals() { |
| LOW | config/prettier/format-mdx3.js | 44 | function handleCodeBlockWithSpecialComments(node, path, options) { |
| LOW | eslint-local-rules/import-from-export.ts | 33 | function findNearestEntryPointFolder(filename: string) { |
| LOW | …pts/codemods/ac3-to-ac4/src/util/handleModuleRename.ts | 19 | function renameNamespaceOrSideEffectImports() { |
| LOW | …pts/codemods/ac3-to-ac4/src/util/handleModuleRename.ts | 39 | function mergeIntoExistingOrRenameImport() { |
| LOW | …-ac4/src/util/moveGlobalIdentifierToNamespaceAccess.ts | 8 | export function moveGlobalIdentifierToNamespaceAccess({ |
| LOW | …s/ac3-to-ac4/src/util/callExpressionToNewExpression.ts | 9 | export function callExpressionToNewExpression(): (args: { |
| LOW | scripts/codemods/data-masking/unmask.ts | 49 | function addUnmaskToTaggedTemplate(name: string) { |
| LOW | scripts/codemods/data-masking/unmask.ts | 59 | function addUnmaskToTemplateLiteral(template: Collection<TemplateLiteral>) { |
| LOW | scripts/codemods/data-masking/unmask.ts | 100 | function applyIndentationFromOriginalQuery( |
| LOW | scripts/codemods/ac2-to-ac3/imports.js | 53 | function renameOrCreateApolloClientImport() { |
| LOW | scripts/codemods/ac2-to-ac3/imports.js | 73 | function removeApolloClientImportIfEmpty() { |
| LOW | scripts/codemods/ac2-to-ac3/imports.js | 80 | function moveSpecifiersToApolloClient(moduleName) { |
| LOW | src/core/QueryManager.ts | 1809 | function addNonReactiveToNamedFragments(document: DocumentNode) { |
| LOW | src/core/QueryManager.ts | 1834 | function removeStreamDetailsFromExtensions( |
| LOW | src/core/QueryInfo.ts | 67 | function wrapDestructiveCacheMethod( |
| LOW | src/cache/inmemory/helpers.ts | 71 | export function getTypenameFromStoreObject( |
| LOW | src/cache/inmemory/helpers.ts | 87 | export function selectionSetMatchesResult( |
| LOW | src/cache/inmemory/helpers.ts | 127 | export function makeProcessedFieldsMerger() { |
| LOW | src/cache/inmemory/readFromStore.ts | 490 | function assertSelectionSetForIdValue( |
| LOW | src/cache/inmemory/policies.ts | 1089 | function makeMergeFieldFunctionOptions( |
| LOW | src/cache/inmemory/policies.ts | 1128 | export function normalizeReadFieldOptions( |
| LOW | src/cache/inmemory/writeToStore.ts | 832 | function maybeRecycleChildMergeTree({ map }: MergeTree, name: string | number) { |
| LOW | src/cache/inmemory/entityStore.ts | 684 | export function maybeDependOnExistenceOfEntity( |
| LOW | src/cache/inmemory/__tests__/helpers.ts | 12 | export function defaultNormalizedCacheFactory( |
| LOW | src/utilities/invariant/__tests__/invariant.test.ts | 35 | function disableErrorMessageHandler() { |
| LOW | src/utilities/internal/valueToObjectRepresentation.ts | 7 | export function valueToObjectRepresentation( |
| LOW | src/utilities/internal/removeFragmentSpreads.ts | 4 | export function removeMaskedFragmentSpreads(document: DocumentNode) { |
| LOW | src/utilities/internal/getGraphQLErrorsFromResult.ts | 4 | export function getGraphQLErrorsFromResult(result: { |
| LOW | src/utilities/internal/equalByQuery.ts | 140 | function selectionHasNonreactiveDirective( |
| LOW | src/utilities/internal/removeDirectivesFromDocument.ts | 38 | export function removeDirectivesFromDocument( |
| LOW | src/utilities/subscriptions/relay/index.ts | 20 | export function createFetchMultipartSubscription( |
| LOW | src/utilities/subscriptions/relay/index.ts | 24 | return function fetchMultipartSubscription( |
| LOW | src/utilities/subscriptions/relay/index.ts | 73 | function generateOptionsForMultipartSubscription( |
| LOW | src/utilities/graphql/isFormattedExecutionResult.ts | 30 | export function isFormattedExecutionResult( |
| LOW | src/utilities/graphql/__tests__/DocumentTransform.ts | 33 | function addClientDirectiveToField(fieldName: string) { |
| LOW | src/testing/internal/link.ts | 5 | function createDefaultExecuteContext() { |
| LOW | src/testing/internal/link.ts | 14 | export function executeWithDefaultContext( |
| LOW | src/testing/internal/link.ts | 22 | export function createOperationWithDefaultContext( |
| LOW | src/testing/matchers/toRerenderWithSimilarSnapshot.ts | 90 | > = async function toRerenderWithSimilarSnapshot( |
| LOW | src/testing/matchers/utils/getSerializableProperties.ts | 8 | export function getSerializableProperties( |
| LOW | src/__tests__/optimistic.ts | 325 | function checkBothMutationsAreApplied( |
| LOW | src/__tests__/optimistic.ts | 548 | function checkBothMutationsAreApplied( |
| LOW | src/link/remove-typename/removeTypenameFromVariables.ts | 126 | export function removeTypenameFromVariables( |
| LOW | src/link/http/selectHttpOptionsAndBody.ts | 63 | export function selectHttpOptionsAndBodyInternal( |
| LOW | src/link/http/parseAndCheckHttpResponse.ts | 165 | function parseGraphQLResponseJsonEncoding( |
| LOW | src/link/http/parseAndCheckHttpResponse.ts | 186 | export function parseAndCheckHttpResponse( |
| LOW | src/link/http/__tests__/HttpLink.ts | 1137 | function trackGlobalAbortControllers() { |
| 7 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | config/prettier/format-jsdoc.js | 28 | print(path, options, print, args) { |
| HIGH | scripts/codemods/data-masking/unmask.ts | 113 | print(document) |
| HIGH | src/core/__tests__/ApolloClient/general.test.ts | 7701 | print(addTypenameToDocument(query)), |
| HIGH | src/core/__tests__/ApolloClient/general.test.ts | 7740 | print(addTypenameToDocument(query)), |
| HIGH | src/utilities/graphql/__tests__/transform.ts | 164 | print(gql` |
| HIGH | src/utilities/graphql/__tests__/transform.ts | 206 | print(gql` |
| HIGH | src/utilities/graphql/__tests__/transform.ts | 231 | print(wholeQueryFromJustTheFragment) |
| HIGH | src/utilities/graphql/__tests__/transform.ts | 235 | print(gql` |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | integration-tests/vite/src/enhanceMaskingTypes.ts | 31 | name: "John Doe", |
| LOW | src/cache/inmemory/__tests__/policies.ts | 718 | name: "John Doe", |
| LOW | src/utilities/common/stripTypename.ts | 15 | * profile: { __typename: "Profile", name: "John Doe" }, |
| LOW | src/utilities/common/stripTypename.ts | 17 | * // => { id: 1, profile: { name: "John Doe"}} |
| LOW | src/__tests__/client.ts | 5219 | data: { currentUser: { __typename: "User", id: 1, name: "John Doe" } }, |
| LOW | src/__tests__/client.ts | 5245 | currentUser: { __typename: "User", id: 1, name: "John Doe" }, |
| LOW | src/react/hooks/internal/__tests__/useDeepMemo.test.ts | 25 | user: { name: "John Doe" }, |
| LOW | src/react/hooks/internal/__tests__/useDeepMemo.test.ts | 32 | rerender({ active: true, items: [1, 2], user: { name: "John Doe" } }); |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2357 | result: { data: { user: { id: "1", name: "John Doe" } } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2362 | result: { data: { user: { id: "2", name: "Jane Doe" } } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2444 | result: { data: { user: { id: "1", name: "John Doe" } } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2449 | result: { data: { user: { id: "2", name: "Jane Doe" } } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2627 | data: { user: { id: operation.variables.id, name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2688 | { id, name: "John Doe" } |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2717 | data: { user: { id: "2", name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2738 | previousData: { user: { id: "2", name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2768 | result: { data: { user: { id: "1", name: "John Doe" } } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2871 | data: { user: { id: "1", name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2893 | data: { user: { id: "1", name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2919 | previousData: { user: { id: "1", name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2934 | previousData: { user: { id: "1", name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2961 | previousData: { user: { id: "1", name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2977 | previousData: { user: { id: "1", name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 2991 | previousData: { user: { id: "1", name: "John Doe" } }, |
| LOW | src/react/hooks/__tests__/useLazyQuery.test.tsx | 3032 | data: { user: { id: operation.variables.id, name: "John Doe" } }, |
| LOW | src/masking/__tests__/maskOperation.test.ts | 1571 | { __typename: "User", id: 1, name: "John Doe", age: 30 }, |
| LOW | src/masking/__tests__/maskOperation.test.ts | 1572 | { __typename: "User", id: 2, name: "Jane Doe", age: 30 }, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …_tests__/client.watchQuery/streamDefer20220824.test.ts | 607 | // This can be addressed in a more robust way in the the future once Apollo |