5.0 KiB
Deprecated Features
This file lists all features that have been deprecated in ArangoDB or are known to become deprecated in a future version of ArangoDB. Deprecated features will likely be removed in upcoming versions of ArangoDB and shouldn't be used if possible.
2.5
-
Foxx: method
controller.collection()has been removed entirely. Please useappContext.collection()instead. -
Foxx: method
FoxxRepository.modelPrototypehas been removed entirely. Please useFoxxRepository.modelinstead. -
Foxx: the signature of
Model.extend()has changed.Model.extend({}, {attributes: {}})does not work anymore. Please useModel.extend({schema: {}})instead. -
Foxx: the signature of method
requestContext.bodyParam()has changed.requestContext.bodyParam(paramName, description, Model)does not work anymore. Please userequestContext.bodyParam(paramName, options)instead. -
Foxx: the signature of method
requestContext.queryParam()has changed.requestContext.queryParam({type: "string"})does not work anymore. Please userequestContext.queryParam({type: joi.string()})instead. -
Foxx: the signature of method
requestContext.pathParam()has changed.requestContext.pathParam({type: "string"})does not work anymore. Please userequestContext.pathParam({type: joi.string()})instead. -
Foxx: method
Model#toJSONSchema(id)is deprecated, it will raise a warning if you use it. Please useFoxx.toJSONSchema(id, model)instead. -
General-Graph: In the module
org/arangodb/general-graphthe functions_undirectedRelationand_directedRelationare no longer available. Both functions have been unified to_relation. -
Graphs: The modules
org/arangodb/graphandorg/arangodb/graph-blueprintare deprecated. Please use moduleorg/arangodb/general-graphinstead. -
HTTP API: The api
_api/graphis deprecated. Please use the general graph api_api/gharialinstead.
2.6
- Foxx: method
Model#toJSONSchema(id)has been removed entirely. Please useFoxx.toJSONSchema(id, model)instead. - Foxx: Function-based Foxx Queue job types are deprecated and known to cause issues, they will raise a warning if you use them. Please use the new script-based job types instead.
- Foxx: the Foxx sessions option
jwtis deprecated, it will raise a warning if you use it. Please use thesesssions-jwtapp from the Foxx app store or use thecryptomodule's JWT functions directly. - Foxx: the Foxx sessions option
typeis deprecated, it will raise a warning if you use it. Please use the optionscookieandheaderinstead. - Foxx: the Foxx sessions option
sessionStorageAppis deprecated, it will raise a warning if you use it. Please use the optionsessionStorageinstead. - AQL: the AQL function
SKIPLISTis deprecated. It will be removed in a future version of ArangoDB. Please use regular AQL constructs instead (e.g.FOR doc IN collection FILTER doc.value >= @value SORT doc.value DESC LIMIT 1 RETURN doc). - Simple queries: the following simple query functions are now deprecated: collection.near(), collection.within(), collection.geo(), collection.fulltext(), collection.range(), collection.closedRange(). It is recommended to replace calls to these functions with equivalent AQL queries, which are more flexible.
- Simple queries: using negative values for SimpleQuery.skip() is deprecated. This functionality will be removed in future versions of ArangoDB.
2.7
- Foxx: the property
assetsin manifests is deprecated, it will raise a warning if you use it. Please use thefilesproperty and an external build tool instead. - Foxx: properties
setupandteardownin manifests are deprecated, they will raise a warning if you use them. Please use thescriptsproperty instead. - Foxx: Function-based Foxx Queue job types have been removed entirely. Please use the new script-based job types instead.
- Foxx: the Foxx sessions option
jwthas been removed entirely. Please use thesesssions-jwtapp from the Foxx app store or use thecryptomodule's JWT functions directly. - Foxx: the Foxx sessions option
typehas been removed entirely. Please use the optionscookieandheaderinstead. - Foxx: the Foxx sessions option
sessionStorageApphas been removed entirely. Please use the optionsessionStorageinstead. - AQL: the AQL function
SKIPLISThas been removed. - Simple queries: the following simple query functions are now deprecated: collection.near(), collection.within(), collection.geo(), collection.fulltext(), collection.range(), collection.closedRange(). It is recommended to replace calls to these functions with equivalent AQL queries, which are more flexible.
- Simple queries: using negative values for SimpleQuery.skip() is not supported any longer.
2.8
- Simple queries: the following simple query functions will be removed: collection.near(), collection.within(), collection.geo(), collection.fulltext(), collection.range(), collection.closedRange(). It is recommended to replace calls to these functions with equivalent AQL queries, which are more flexible.