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

Optimize Submission complex resolvers (embed, politician, question) #559

Open
wileymc opened this issue Sep 13, 2024 — with Linear · 0 comments
Open

Optimize Submission complex resolvers (embed, politician, question) #559

wileymc opened this issue Sep 13, 2024 — with Linear · 0 comments

Comments

Copy link
Contributor

wileymc commented Sep 13, 2024

Can likely eliminate the need to query question for every result through some rearrangement in the UI. Create embed_loader data loader to more efficiently load embed records in bulk

{
  submissions(organizationId: "39bee9cf-38fa-4548-b67d-b7a23708f8d2", filter: {}) {
    id
    createdAt
    updatedAt
    # candidateGuideEmbed {
    #   race {
    #     title
    #   }
    # }
    # politician {
    #   id
    #   slug
    #   fullName
    # }
    response
    editorial
    translations
    # question {
    #  id
    #  prompt
    #  responseCharLimit
    # }
  }
}
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

No branches or pull requests

1 participant