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

signify which resolver corresponds to a specific query #57

Open
roninMo opened this issue Jan 13, 2022 · 0 comments
Open

signify which resolver corresponds to a specific query #57

roninMo opened this issue Jan 13, 2022 · 0 comments

Comments

@roninMo
Copy link

roninMo commented Jan 13, 2022

All of our graphql queries are wrapped in the same object name, so if a component is running multiple queries I don't know of a way to pass each individual resolver to that corresponding query.

Here is an example query, and all of our queries are done this way. It's grabbing account information for our claimant, then returning the data in an object like this:

query GET_CLAIMS_ALERTS($account_number: ID!) {
  account(id: $account_number) {
    items {
      claims {
        items {
          alerts {
            publicID
            alertDescription
            isRead
          }
        }
      }
    }
  }
}

However, in multiple sections I'll be grabbing claim information as well as incidents or alerts, and I don't know a way to send multiple resolvers that signify each query when all go into the account object. I kinda like this repository, but as I was implementing this I noticed this issue along the way, and don't know I should do.

@roninMo roninMo changed the title Point Each Resolver to a specific function signify which resolver corresponds to a specific query Jan 13, 2022
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