[Developers] querying for values during mqlwrite?

Augusto Callejas acallejas at appliedminds.com
Mon Sep 29 23:25:42 UTC 2008


john-

i can't replicate this anymore, very odd.
odd since i did get the error before "Can't query for values of guid in a
write, only those of id" but i didn't include the TID when i copied it.
looks like it works, but i remember in the old documentation it said
that you could only query for "id" when you perform a mqlwrite.

thanks,
augusto


On 9/23/08 10:23 PM, "John Giannandrea" <jg at metaweb.com> wrote:

> 
> Augusto, you should be able to do this and I cant reproduce.
> Can you please send us the X-Metaweb-TID for a failing mqlwrite.
> thanks.
> -jg
> 
> 
> On Sep 23, 2008, at 3:07 PM, Augusto Callejas wrote:
> 
>> hi-
>> 
>> i'm able to query for mql values during mqlwrite in the queryeditor:
>> 
>> ===
>> {
>>  "create" : "unless_exists",
>>  "guid" : null,
>>  "name" : "AlbumXXX",
>>  "type" : "/music/album_release_type"
>> }
>> ---
>> {
>>  "create" : "created",
>>  "guid" : "#9202a8c04000641f80000000091ecb1b",
>>  "name" : "AlbumXXX",
>>  "type" : "/music/album_release_type"
>> }
>> ===
>> 
>> but i can't do this using /api/service/mqlwrite directly:
>> 
>> ===
>>    "messages" : [ {
>>      "code" : "/api/status/error",
>>      "message" : "Can't query for values of guid in a write, only
>> those of
>> id"
>>    } ]
>>  }
>> ===
>> 
>> why can i query for guid in the queryeditor, but not mqlwrite?
>> 
>> this is on sandbox.freebase.com if that makes a difference.
>> 
>> thanks,
>> augusto.
>> 
>> 
>> _______________________________________________
>> Developers mailing list
>> Developers at freebase.com
>> http://lists.freebase.com/mailman/listinfo/developers
> 
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers




More information about the Developers mailing list