title: How to return the first result from XQuery
body: <p>So I have an XQuery that looks something like this:</p>
  
  <pre><code>for $i in /*:rootElement
  where $i/*:field = "test"
  return $i
  </code></pre>
  
  <p>This query returns a lot of results, but I only really need one.  How can I return just the first item in the result sequence?</p>