NSPredicate matching string for Cloudkit
<p>I need to pull the record from cloudkit matching a string. </p>

<p>I have a User record type, with an email field. I have multiple records with the same email, but I can't get the predicate to get me the records.</p>

<p>I've tried all of these:</p>

<pre><code>let predicate = NSPredicate(format: "email = 'julio_ukohgsp_chevez@tfbnw.net'")
NSPredicate(format: "email == %@", argumentArray: [email])
NSPredicate(format: "email IN %@", [email])
NSPredicate(format: "email contains %@", email)
NSPredicate(format: "email = %@", email)
NSPredicate(format: "email == %@", email)
</code></pre>

<p>My query specifies the record type:</p>

<pre><code>let query = CKQuery(recordType: "User", predicate: NSPredicate(format: "email == %@", email))
</code></pre>

<p>When I do a predicate with value: true, I get all records including the one I want.. I know for sure I have a User with that email, multiple in fact..</p>

<p>What am I missing?</p>

<p>Edit .. </p>

<pre><code>let query = CKQuery(recordType: "User", predicate: NSPredicate(format: "email BEGINSWITH %@", email))
</code></pre>

<p>Does work and brings back records, but I want an exact match!</p>