[feat] tweaking sort and facet matching
This commit is contained in:
@@ -14,9 +14,16 @@ export const relations = defineRelations(schema, (r) => ({
|
||||
from: r.cards.setId,
|
||||
to: r.sets.setId,
|
||||
}),
|
||||
tcgdata: r.one.tcgcards({
|
||||
from: r.cards.productId,
|
||||
to: r.tcgcards.productId,
|
||||
}),
|
||||
},
|
||||
sets: {
|
||||
cards: r.many.cards(),
|
||||
},
|
||||
tcgcards: {
|
||||
cards: r.many.cards(),
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user