Class ReservedKeysVerificationStrategy
Provides a way to prevent traversal from using property keys that are reserved terms. By default, these are "id" and "label" - providers may have their own reserved terms as well.
Inherited Members
Namespace: Gremlin.Net.Process.Traversal.Strategy.Verification
Assembly: Gremlin.Net.dll
Syntax
public class ReservedKeysVerificationStrategy : AbstractTraversalStrategy, ITraversalStrategy, IEquatable<AbstractTraversalStrategy>
Constructors
ReservedKeysVerificationStrategy()
Initializes a new instance of the ReservedKeysVerificationStrategy class.
Declaration
public ReservedKeysVerificationStrategy()
ReservedKeysVerificationStrategy(bool, bool, List<string>?)
Initializes a new instance of the ReservedKeysVerificationStrategy class
Declaration
public ReservedKeysVerificationStrategy(bool logWarning = false, bool throwException = false, List<string>? keys = null)
Parameters
Type | Name | Description |
---|---|---|
bool | logWarning | Write a warning to the configured log on the server if a reserved key is used. |
bool | throwException | Throw an exception if a reserved key is used. |
List<string> | keys | List of keys to define as reserved. If not set then the defaults are used. |