Open kroekle opened 5 months ago
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue.
Short description
The graphql.parse(query, schema) builtin that was added in v0.41 no longer returns definition as part of the query ast had return the property definition as port of the query_ast that was returned from the call. Versions prior to v0.45.0 the definition property, versions >= v0.45.0 do not. (seems like a library upgrade is the source of this change)
Steps To Reproduce
Sample input:
Sample policy: `package gql
ast := graphql.parse(input.query, input.schema)[0]`
Docker commands:
docker run -it -v $(pwd)/.:/sample openpolicyagent/opa:0.44.0 eval -d /sample -i /sample/input.json data.gql.ast docker run -it -v $(pwd)/.:/sample openpolicyagent/opa:0.45.0 eval -d /sample -i /sample/input.json data.gql.ast
Expected behavior
Current output:
Expected output: