Skip to content

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

@wileymc

Description

@wileymc

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
    # }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions