Table of Contents

Class CardFilter

Namespace
TcgDex.Querying
Assembly
TcgDex.CSharpSdk.dll

An equality-only filter for the GraphQL card search.

public sealed record CardFilter : IEquatable<CardFilter>

Inheritance

Implements

Inherited Members

Remarks

Deliberately narrower than TcgDex.Querying.CardQuery. GraphQL's CardsFilters input takes typed scalars, so hp accepts a number and nothing else — passing "gt:100" fails with Int cannot represent non-integer value. There are no ranges, no wildcards, and no null checks on this path.

Use TcgDex.Querying.CardQuery against REST when you need those. Use this when you want full card detail for many cards in a single round trip.

Properties

Category

Card category: Pokemon, Trainer or Energy.

public string? Category { get; init; }

Property Value

string?

DexId

National Pokédex number.

public int? DexId { get; init; }

Property Value

int?

EnergyType

Energy category.

public string? EnergyType { get; init; }

Property Value

string?

EvolveFrom

The Pokémon this card evolves from.

public string? EvolveFrom { get; init; }

Property Value

string?

Hp

Exact hit points.

public int? Hp { get; init; }

Property Value

int?

Id

Card identifier.

public string? Id { get; init; }

Property Value

string?

Illustrator

Illustrator name.

public string? Illustrator { get; init; }

Property Value

string?

LocalId

Card number within its set.

public string? LocalId { get; init; }

Property Value

string?

Name

Exact card name.

public string? Name { get; init; }

Property Value

string?

Rarity

Exact rarity.

public string? Rarity { get; init; }

Property Value

string?

RegulationMark

Regulation mark.

public string? RegulationMark { get; init; }

Property Value

string?

Retreat

Retreat cost.

public int? Retreat { get; init; }

Property Value

int?

Stage

Evolution stage.

public string? Stage { get; init; }

Property Value

string?

Suffix

Name suffix, such as EX.

public string? Suffix { get; init; }

Property Value

string?

TrainerType

Trainer subtype.

public string? TrainerType { get; init; }

Property Value

string?