Skip to content
Snippets Groups Projects
Verified Commit df1c1b1c authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Rewrite docstring for OptimisticResponseTypeMixin

parent d21bed7f
No related branches found
No related tags found
1 merge request!1304Refactor calendar overview in more different components
Pipeline #147362 failed
......@@ -80,8 +80,14 @@ class PermissionsTypeMixin:
class OptimisticResponseTypeMixin:
"""Mixin for using OptimisticResponse in the frontend.
Simply adds a field called `is_optimistic` that is always false,
but should be set to true by the frontend
In the frontend, Apollo can be configured to show an optimistic
response defined by the developer although the actual request
isn't yet finished. This way the frontend can directly update
and replace the optimistc data with the actual data from the
backend when the request is finished.
To know whether a response is optimistic or real, the field
`is_optimistic` can be set to true in the frontend.
"""
is_optimistic = graphene.Boolean(default_value=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment