That did it. You'd think I'd have seen that, but I suppose I stared too long and hard. Many thanks, crism!
Eureka!
-
-
-
Oh, the final query looked like:
{
"query":{
"id":"#9202a8c04000641f800000000031e51b",
"type":{
"connect":"insert",
"id":"/user/szaijan/fantasy_football/player",
"type":"/type/type"
}
}
}
And had this result:
{
"code":"/api/status/ok",
"result":{
"id":"#9202a8c04000641f800000000031e51b",
"type":{
"connect":"inserted",
"id":"/user/szaijan/fantasy_football/player",
"type":"/type/type"
}
}
}
Now, is there a way to order the inserts in my query such that I can do the above first, and then fill in any player fields I care to once the type is added, but in a single query I'm guessing not, but it would be handy. I'll experiment. -
As long as you fully qualify the property names ("/user/szaijan/fantasy_football/player/position" for example), you can add the properties in the same query, and the order doesn't matter.
-

