Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

persisted-query-lists with apollo codegen throws operation mismatch #433

Open
AK3030 opened this issue Apr 25, 2024 · 1 comment
Open

persisted-query-lists with apollo codegen throws operation mismatch #433

AK3030 opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@AK3030
Copy link

AK3030 commented Apr 25, 2024

I am using @apollo/persisted-query-lists with apollo codegen

import type { PersistedQueryManifestConfig } from '@apollo/generate-persisted-query-manifest';
import { fromGraphQLCodegenPersistedDocuments } from '@apollo/generate-persisted-query-manifest';

const config: PersistedQueryManifestConfig = {
  documents: fromGraphQLCodegenPersistedDocuments('./src/gql/persisted-documents.json'),
};

export default config;

however when I use the verification link i get operation mismatch errors on every query. i printed the queries that are being compared by the persisted-query-lists package and it looks like they dont match because the order of fields is different. is there something I can do to fix this issue or is there a bug?

query query GetSupRelationships {
  loggedInShopifyShop {
    id
    relationshipsAsSup(tableFilterInput: {}) {
      edges {
        node {
          id
          hasSupSeenInstantAddUpsellModal
          hasApprovedProposal
          sk {
            id
            name
            __typename
          }
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
 manifestoperation query GetSupRelationships {
  loggedInShopifyShop {
    id
    relationshipsAsSup(tableFilterInput: {}) {
      edges {
        node {
          hasApprovedProposal
          hasSupSeenInstantAddUpsellModal
          id
          sk {
            id
            name
            __typename
          }
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}
@jerelmiller
Copy link
Member

Hey @AK3030 👋

I'll do my best to take a look at this soon. Thanks for reporting!

@jerelmiller jerelmiller added the bug Something isn't working label Apr 25, 2024
@jerelmiller jerelmiller self-assigned this Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants