[MGNLGQL-53] POST request to GraphQL endpoint fails if variables are missing Created: 03/Sep/20  Updated: 08/Sep/20  Resolved: 04/Sep/20

Status: Closed
Project: Magnolia GraphQL
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Neutral
Reporter: Jaroslav Simak Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: GraphQL Phase 1
Sprint: HL & LD 10, HL & LD 11
Story Points: 0.5

 Description   

Executing a query without adding variables field to the json:

{    "query": "{characters(locale: \"en\") {title} }" }

will produce error 500.

AC:

  • execution of query without specifying variables field will not result into error 500

Generated at Mon Feb 12 05:52:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.