I have following simple selection query in GraphQL which checks if in dataDictionary
table any record exists with name field dataDict101
.
query dataDictionary($where : DataDictionaryWhereUniqueInput!){
dataDictionary(where: $where){
id
}
}
,
variables: {
data: {
"where" : {
"name": "dataDict101"
}
}
}
How can I determine if above query returned any row or not? e.g. Similar to SQL query returns SQLCODE=0 or SQL%ROWCOUNT>0 in case of cursor if record found.