PREPARE users_per_country FROM SELECT u.iso_country, COUNT(1) AS user_count. FROM users AS u WHERE u.doc_type = 'user' GROUP BY u.iso_country ORDER BY COUNT(1) DESC, u.iso_country ASC'
Part of the response includes encoded_plan. According to the documentation the encoded plan can be used if the prepared statement name does not exist.
This will execute the prepared statement by name
But what if that prepared statement is not available and just the encoded plan is? How do you specify the encoded plan as part of your N1QL statement?