@Priyanka Could you provide code sample? Because I get an error when I try to follow examples from the docs
this is the queries i've tried:
await client.getAllByType<GameDocument>('game', {
orderings: [{ field: 'my.game.rankNumber', direction: 'asc' }],
graphQuery: `
{
game {
body {
...on assets_grid {
repeat {
...repeatFields
}
}
}
}
}
`,
});
await client.getByUID<GameDocument>('game', params?.uid as string, {
graphQuery: `
{
game {
body {
...on assets_grid {
repeat {
...repeatFields
}
}
}
}
}
`,
})