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?

EvolvesFrom

The Pokémon this card evolves from.

public string? EvolvesFrom { get; init; }

Property Value

string?

HitPoints

Exact hit points.

public int? HitPoints { 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?

ItemsPerPage

How many cards per page. Unset asks the server for its default page size.

public int? ItemsPerPage { get; init; }

Property Value

int?

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?

Page

The 1-based page to fetch. Unset asks the server for its default, the first page.

public int? Page { get; init; }

Property Value

int?

Remarks

Paging is part of the filter, not an argument of the search, so it can grow (sorting is next) without changing the interface (DECISIONS #36). A value below one makes the search throw System.ArgumentOutOfRangeException.

Rarity

Exact rarity.

public string? Rarity { get; init; }

Property Value

string?

RegulationMark

Regulation mark.

public string? RegulationMark { get; init; }

Property Value

string?

RetreatCost

Retreat cost.

public int? RetreatCost { 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?