Query troubles

  1.  
    1. I am having a lot of trouble with a query (I am running it in the query editor.) It runs great for the first three tries then fails at the fourth try. I am using cursors and taking the cursor from the previous result and using it at the next query. I am really lost as to what I am doing wrong.

      The query I am trying to run is
      {
      "cursor":true,
      "query":[{
      "*":[],
      "/business/retail_location/address":{
      "citytown":[],
      "postal_code":[],
      "street_address":[],
      "street_address_2":[]
      },
      "name":[],
      "type":"/dining/restaurant"
      }]
      }
      The error message I get is
      "message":"Unique query may have at most one result. Got 56". It seems like on the fourth attempt, it is losing the outside data like restaurant id etc and only returning the address information. What am I doing wrong?

      Thanks in advance!

      1. Hey, this is probably running into a topic that has multiple /business/retail_location/address entries. Note how that is the only "unique" clause in your query. So what's happening is the first few pages of results have a single address, and then all the sudden it hits one entry that has 56 addresses! Maybe starbucks? :)



    Discussion is posted in:

    Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

Related Discussions