-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PutCursorAsync is deprecated in ArangoDB 3.7 #326
Comments
I like your idea to add This is an example of where our decision to stay close to the underlying REST implementation is possibly annoying - if we had a method named "ReadNextCursorBatch" or something, then we could change the underlying implementation from PUT -> POST without needing to change our public API. I'm only mentioning it as a point of interest - not suggesting we change our approach :). At least by preserving both methods we provide clients the ability to continue supporting ArangoDB 3.6. |
Consider that removing
If you keep using it, please make sure that the HTTP client used by this driver does not retry automatically failing requests to this url path. |
This change is also mentioned in "API changes in 3.8": https://www.arangodb.com/docs/stable/release-notes-api-changes38.html#endpoints-added
|
Solved by #396 |
Endpoint
PUT /_api/cursor/{cursor-identifier}
(PutCursorAsync.PutCursorAsync
) is deprecated in ArangoDB 3.7 in favor of a new endpointPOST /_api/cursor/{cursor-identifier}
.https://www.arangodb.com/docs/3.7/http/aql-query-cursor-accessing-cursors.html#read-next-batch-from-cursor-deprecated
It is likely that the endpoint will be removed in a future version, so we should make the change at some point.
We could:
PostExistingCursor
PostCursorAsync
though it may not be very clear from a consumer point of viewThere is also the question of compatibility with previous ArangoDB version. It might be a good idea to keep
PutCursorAsync
and mark it as "up to ArangoDB 3.6".The text was updated successfully, but these errors were encountered: