Skip to the content.

< Back


QueryIgnoreCondition

Namespace: GraphQL.Query.Builder

Controls when properties with null or default values are ignored during serialization.

public enum QueryIgnoreCondition

Inheritance ObjectValueTypeEnumQueryIgnoreCondition
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

Name Value Description
Never 0 Property is never ignored. Null and default values are always serialized.
WhenWritingNull 1 Property is ignored when its value is null.
WhenWritingDefault 2 Property is ignored when its value is the default for its type (null for reference types, 0 for numeric types, false for bool, etc.).

< Back