Skip to content

Update server output format #10

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mwisner
Copy link

@mwisner mwisner commented May 6, 2025

Hi,

I'm totally new to persisted queries, but I was doing some research and noticed that at least according to this document: https://www.apollographql.com/docs/kotlin/v5/advanced/persisted-queries

The persisted query manifest looks something like:

{
  "format": "apollo-persisted-query-manifest",
  "version": 1,
  "operations": [
    {
      "id": "e0321f6b438bb42c022f633d38c19549dea9a2d55c908f64c5c6cb8403442fef",
      "body": "query GetItem { thing { __typename } }",
      "name": "GetItem",
      "type": "query"
    }
  ]
}

however this package generates it as:

{
  "format": "apollo-persisted-query-manifest",
  "version": 1,
  "operations": {
    "e0321f6b438bb42c022f633d38c19549dea9a2d55c908f64c5c6cb8403442fef":  {
      "body": "query GetItem { thing { __typename } }",
      "name": "GetItem",
      "type": "query"
    }
  }
}

@mwisner mwisner marked this pull request as ready for review May 6, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant