You can get it through the Mint event
For example check following example which get USDT-WETH pairs mint event data
{
ethereum(network: ethereum) {
arguments(
options: {desc: ["block.height","index"], limit: 10}
smartContractAddress: {in: "0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852", }
smartContractEvent: {is: "Mint"}
) {
block {
height
}
index
sender: any(of: argument_value, argument: {is: "sender"})
amount0: any(of: argument_value, argument: {is: "token0"})
amount1: any(of: argument_value, argument: {is: "amount1"})
}
}
}