[EE-3024] subscription support evidence #49
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is to address some comments made in #48 about lack of subscription support.
This pull request adds comprehensive support and documentation for GraphQL subscriptions to the
graphQlQueryToJson
library, along with extensive test coverage and clarification of current limitations. The most important changes are grouped below:Subscription Support and Documentation:
README.md
with usage examples for GraphQL subscriptions, including basic subscriptions, subscriptions with variables/arguments, aliases, and enums. The API reference was updated to clarify that thequery
parameter now accepts subscription strings.Test Coverage:
describe("Subscriptions", ...)
block tosrc/test/full_functionality.spec.ts
with thorough test cases covering simple subscriptions, arguments, aliases, enums, nested objects, directives, and error handling for unsupported fragments.src/test/readme_examples.spec.ts
to ensure README examples are validated by tests.Minor Improvements:
scripts/updateTestCoverage.js
.