Queries examples
Here, we will explore the various queries that you can create.
Get user information by Talent Layer Id
{
user(id: "59") {
cid
handle
id
numReviews
description {
about
id
}
address
updatedAt
}
}{
"data": {
"user": {
"cid": "QmawFHVwFggkFC5FgY2i2dDPfqDiVGvzJJAM7NyxvCAU6W",
"handle": "martin",
"id": "59",
"numReviews": "1",
"description": {
"about": "I'm a fan of robots, time rifts and giant bionic shark movies. And all things about #Web3, #Blockchain, #NFT, #Metaverse, #DEFI etc...",
"id": "QmawFHVwFggkFC5FgY2i2dDPfqDiVGvzJJAM7NyxvCAU6W-1681747217",
},
"address": "0x1caab8ded4535bf42728fea90afa7da1ac637e1e",
"updatedAt": "1681747217"
}
}
}Get the service reviews by service id
{
reviews {
description {
content
id
}
rating
to {
id
handle
}
service {
id
status
}
}
}{
"data": {
"review": {
"description": {
"content": "Perfect!",
"id": "QmW612hUxvg1SigPA5Y3msuBEuXfLaH3axp22dr1kwCXp8-1680027235"
},
"rating": "5",
"to": {
"id": "2",
"handle": "migmig"
},
"service": {
"id": "1",
"status": "Finished"
}
}
}
}Get the first 5 services informations after the 18 March with the open status
Get the total gain and the platform name of the first 3 users with a rating greater than 4
Last updated
Was this helpful?