Skip to content

Enhance GraphQL assertions with variable interpolation, comparison operators, and length checks#30

Merged
mrfoh merged 2 commits into
mainfrom
release/v1.3.0-fix
Apr 9, 2026
Merged

Enhance GraphQL assertions with variable interpolation, comparison operators, and length checks#30
mrfoh merged 2 commits into
mainfrom
release/v1.3.0-fix

Conversation

@mrfoh
Copy link
Copy Markdown
Owner

@mrfoh mrfoh commented Apr 9, 2026

Introduce support for variable interpolation in expected values, add comparison operators for assertions, and implement length checks for strings, arrays, and maps in GraphQL data assertions. Update documentation to reflect these enhancements.

mrfoh added 2 commits April 9, 2026 19:29
…and length checks

- Interpolate variables in assertion expected values so exported
  variables like ${post_id} resolve before comparison
- Use interpolated assertions in ExecCase instead of raw originals
- Add comparison operator support (>, >=, <, <=, contains) to
  GraphQL data assertions, delegating to BodyAssertion.compareValues
- Add length check support (e.g., "length > 0") for strings, arrays,
  and maps in GraphQL data assertions
@mrfoh mrfoh merged commit a77af21 into main Apr 9, 2026
6 checks passed
@mrfoh mrfoh deleted the release/v1.3.0-fix branch April 9, 2026 19:32
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.

1 participant