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

Separate graphQL schema from resolver #79

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

flora-jin
Copy link
Contributor

The current graphQL utility has a resolver template file with a placeholder for the graphQL schema. During runtime, the utility replaces the placeholder with the schema and then includes the resulting resolver schema in the zip contents that are deployed to AWS lambda.

However, this logic makes it difficult to unit test so the pull request includes code changes where the schema is separated from the resolver. Instead of the resolver template having a placeholder for the schema, it instead takes in the schema as a separate file that is deployed with the other files in the zip file.

…e in schema file as separate file instead of input, made template static by not accepting any input except the timestamp
@flora-jin flora-jin force-pushed the schemaFromResolver branch from f908c10 to 0c39673 Compare March 12, 2025 22:34
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

Successfully merging this pull request may close these issues.

2 participants