Are the functions self.addGraphQLResolvers
and self.addMultiParentGraphQLResolvers
repeatable calls?
For instance if I have two different fields I want to resolve with a lambda, do I have to call them together like:
self.addGraphQLResolvers({
"Author.bio": authorBio,
"Character.bio": characterBio,
"Human.bio": humanBio,
"Droid.bio": droidBio
})
Or can I call them separetely like:
self.addGraphQLResolvers({
"Author.bio": authorBio
})
self.addGraphQLResolvers({
"Character.bio": characterBio
})
self.addGraphQLResolvers({
"Human.bio": humanBio
})
self.addGraphQLResolvers({
"Droid.bio": droidBio
})
Reason: We are trying to keep code manageable and want to split up the lambda file to the separete functions and compile several scripts into one in the CI/CD pipeline and then push it to Slash. I added a second resolver function and thought I could only call the addGraphQLResolvers method once. Can anyone expound on this without me wasting time trial and error.