You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating v0.18.1, tests fail because ImportError: cannot import name 'PLAYGROUND_HTML' from 'ariadne. constants' . When I checked the changes, PLAYGROUND_HTML was removed from constants.py in this commit: 0fca6bb
So, is there any alternative way to use instead of PLAYGROUND_HTML?
The text was updated successfully, but these errors were encountered:
I checked Graphql Explorers, and it resolved my issue. I used PLAYGROUND_HTML in the view function (in Flask service). I returned PLAYGROUND_HTML in the GET request function. After the suggestion, I tried to use ExplorerApollo.html(). It handled failed tests. Thanks for help @rafalp
Great! Remember that default explorers that Ariadne implements are pure and don't depend on request, so you can do EXPLORER_HTML = ExplorerApollo().html() outside of Flask view. to avoid template render that always renders same value.
We've updated Flask integration example for this change, but we are using GraphiQL in it:
After updating v0.18.1, tests fail because
ImportError: cannot import name 'PLAYGROUND_HTML' from 'ariadne. constants'
. When I checked the changes, PLAYGROUND_HTML was removed from constants.py in this commit: 0fca6bbSo, is there any alternative way to use instead of PLAYGROUND_HTML?
The text was updated successfully, but these errors were encountered: