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

AppSync: addResolver breaks if called before dependency is defined #65

Closed
sam-goodwin opened this issue Mar 31, 2022 · 0 comments · Fixed by #275
Closed

AppSync: addResolver breaks if called before dependency is defined #65

sam-goodwin opened this issue Mar 31, 2022 · 0 comments · Fixed by #275
Assignees
Labels
appsync bug Something isn't working

Comments

@sam-goodwin
Copy link
Collaborator

If you call .addResolver on an AppsyncResolver before a dependency it references has been instantiated, an error is thrown.

new AppsyncResolver(() => {
  table.get()
}).addResolver(..);

// this is undefined at the time AppsyncResolver is synthesized
export const table = new f.Table(..);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appsync bug Something isn't working
Projects
None yet
1 participant