Skip to content

Commit

Permalink
Start deprecation for custom.asProcedure, custom.asFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
JMHReif authored Jun 3, 2021
1 parent 597bc8c commit 14644dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This file is generated by DocsTest, so don't change it!
= apoc.custom.asFunction
:description: This section contains reference documentation for the apoc.custom.asFunction procedure.

label:procedure[] label:apoc-full[]
label:procedure[] label:apoc-full[] label:deprecated[]

[.emphasis]
apoc.custom.asFunction(name, statement, outputs, inputs, forceSingle, description) - register a custom cypher function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This file is generated by DocsTest, so don't change it!
= apoc.custom.asProcedure
:description: This section contains reference documentation for the apoc.custom.asProcedure procedure.

label:procedure[] label:apoc-full[]
label:procedure[] label:apoc-full[] label:deprecated[]

[.emphasis]
apoc.custom.asProcedure(name, statement, mode, outputs, inputs, description) - register a custom cypher procedure
Expand Down
6 changes: 4 additions & 2 deletions full/src/main/java/apoc/custom/CypherProcedures.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ public class CypherProcedures {
* allow to register proper return columns
* allow to register mode
*/
@Procedure(value = "apoc.custom.asProcedure",mode = Mode.WRITE)
@Procedure(value = "apoc.custom.asProcedure",mode = Mode.WRITE, deprecatedBy = "apoc.custom.declareProcedure")
@Description("apoc.custom.asProcedure(name, statement, mode, outputs, inputs, description) - register a custom cypher procedure")
@Deprecated
public void asProcedure(@Name("name") String name, @Name("statement") String statement,
@Name(value = "mode",defaultValue = "read") String mode,
@Name(value= "outputs", defaultValue = "null") List<List<String>> outputs,
Expand All @@ -75,8 +76,9 @@ public void declareProcedure(@Name("signature") String signature, @Name("stateme
}


@Procedure(value = "apoc.custom.asFunction",mode = Mode.WRITE)
@Procedure(value = "apoc.custom.asFunction",mode = Mode.WRITE, deprecatedBy = "apoc.custom.declareFunction")
@Description("apoc.custom.asFunction(name, statement, outputs, inputs, forceSingle, description) - register a custom cypher function")
@Deprecated
public void asFunction(@Name("name") String name, @Name("statement") String statement,
@Name(value= "outputs", defaultValue = "") String output,
@Name(value= "inputs", defaultValue = "null") List<List<String>> inputs,
Expand Down

0 comments on commit 14644dd

Please sign in to comment.