Skip to content

Gzip graphql response #165

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

Merged
merged 1 commit into from
May 28, 2025
Merged

Gzip graphql response #165

merged 1 commit into from
May 28, 2025

Conversation

bilalebi
Copy link
Contributor

@bilalebi bilalebi commented May 27, 2025

Below is the response size before adding gzip middleware (first row) VS after adding Gzip

image

Query used:

query ENSG00000139618 {
  gene(
    by_id: {genome_id: "a7335667-93e7-11ec-a39d-005056b38ce3", stable_id: "ENSG00000139618"}
  ) {
    alternative_symbols
    name
    so_term
    stable_id
    transcripts {
      stable_id
      symbol
      type
      unversioned_stable_id
      version
      so_term
      product_generating_contexts {
        product_type
        default
        cds {
          start
          end
          protein_length
          nucleotide_length
          sequence {
            alphabet {
              accession_id
              label
              value
              definition
            }
            checksum
          }
        }
        phased_exons {
          start_phase
          end_phase
          exon {
            type
            stable_id
            slice {
              region {
                name
                length
                code
              }
            }
          }
        }
      }
      slice {
        region {
          name
          length
          code
          topology
        }
        strand {
          code
          value
        }
      }
    }
    external_references {
      accession_id
      name
      description
      assignment_method {
        type
        description
      }
      assignment_method {
        type
        description
      }
      url
      source {
        id
        name
        description
        release
      }
    }
  }
}

@bilalebi bilalebi requested a review from azangru May 27, 2025 16:33
@bilalebi bilalebi self-assigned this May 27, 2025
Copy link
Collaborator

@azangru azangru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bilalebi bilalebi merged commit 170f344 into develop May 28, 2025
1 check passed
@bilalebi bilalebi deleted the gzip-response branch May 28, 2025 08:56
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.

2 participants