FreebaseはMQLフィルタここで、value!= nullの?
質問
私は、null値をフィルタリングMQLのクエリを記述しようとしています。
解決
あなたがコンテンツid属性を拡張し、falseにオプションのディレクティブを設定する必要がありますそれらに割り当てられているすべてのコンテンツを持っていない記事をフィルタリングする。
[
{
"/common/topic/image" : [
{
"id" : null
}
],
"article" : [
{
"content" : {
"id" : null,
"optional" : false
}
}
],
"name" : "bill gates",
"type" : "/common/topic"
}
]
このはあなたに次のような結果が得られます。
[
{
"/common/topic/image" : [
{
"id" : "/guid/9202a8c04000641f8000000004fb4c01"
},
{
"id" : "/wikipedia/images/commons_id/4486276"
}
],
"article" : [
{
"content" : {
"id" : "/guid/9202a8c04000641f800000000903535d"
}
}
],
"name" : "Bill Gates",
"type" : "/common/topic"
}
]
オプションのディレクティブを使用しての詳細についてはこちらをのドキュメントを参照してください。
所属していません StackOverflow