# ParseSwift SDK

**URL:** https://community.parseplatform.org/c/client-sdks/parseswift-sdk/25.md?page=1

[Latest](https://community.parseplatform.org/latest.md) · [Categories](https://community.parseplatform.org/categories.md) · [Tags](https://community.parseplatform.org/tags.md)

**Page:** 2

---

## [Deleting / setting a pointer to nil](https://community.parseplatform.org/t/deleting-setting-a-pointer-to-nil/2148)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 8\
**Last updated:** [February 23, 2022, 11:16pm UTC](https://community.parseplatform.org/t/deleting-setting-a-pointer-to-nil/2148 "2022-02-23T23:16:07Z")

</div>

Hi, I need help trying to understand if I’m doing something wrong here. Whatever I’ve tried, I can’t seem to remove a pointer from my object and set it to nil. func removeProfilePhoto(for userProfile: UserProfile) asy…

---

## [Parse-Swift minimum Parse Server version?](https://community.parseplatform.org/t/parse-swift-minimum-parse-server-version/2419)

<div class="topic-metadata">

**Author:** [@claesjacobsson](https://community.parseplatform.org/u/claesjacobsson)\
**Replies:** 3\
**Last updated:** [February 11, 2022, 1:35am UTC](https://community.parseplatform.org/t/parse-swift-minimum-parse-server-version/2419 "2022-02-11T01:35:56Z")

</div>

Is there a compatibility matrix for Parse-Swift and Parse server versions?

---

## [When would you use custom objectId in your projects?](https://community.parseplatform.org/t/when-would-you-use-custom-objectid-in-your-projects/2385)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 2\
**Last updated:** [January 25, 2022, 6:07am UTC](https://community.parseplatform.org/t/when-would-you-use-custom-objectid-in-your-projects/2385 "2022-01-25T06:07:51Z")

</div>

Just out of curiosity, when would you guys use the custom objectId feature in your projects? What would be the best use of the feature? thanks,

---

## [Found a circular dependency when encoding](https://community.parseplatform.org/t/found-a-circular-dependency-when-encoding/2356)

<div class="topic-metadata">

**Author:** [@EliteTechnicalCare](https://community.parseplatform.org/u/EliteTechnicalCare)\
**Replies:** 7\
**Last updated:** [January 11, 2022, 9:43pm UTC](https://community.parseplatform.org/t/found-a-circular-dependency-when-encoding/2356 "2022-01-11T21:43:35Z")

</div>

I for the life of me cannot figure out what’s triggering this error. I have a button that saves a usersProfile var tempProfile = usersProfile tempProfile?.description = aboutText tempProfile?.smokes = smoking tempProfi…

---

## [New "score" property in ParseObject](https://community.parseplatform.org/t/new-score-property-in-parseobject/2352)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 2\
**Last updated:** [January 11, 2022, 6:58am UTC](https://community.parseplatform.org/t/new-score-property-in-parseobject/2352 "2022-01-11T06:58:57Z")

</div>

So I just updated to the latest version of ParseSwift 3.1.0 and got this error on my ParseObjects. I was wondering what the best use case for it and why it was added. I was looking at the commit and didn’t see any ex…

---

## [Query where "field" == nil](https://community.parseplatform.org/t/query-where-field-nil/2317)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 15\
**Last updated:** [January 10, 2022, 8:29am UTC](https://community.parseplatform.org/t/query-where-field-nil/2317 "2022-01-10T08:29:05Z")

</div>

Is it possible to query where a field is == to nil? I have a column named “displayUntil” where it takes a Date. I get a “Generic parameter ‘T’ could not be inferred” error when I try to find empty field by == nil. …

---

## [.explain() result in ParseSwift](https://community.parseplatform.org/t/explain-result-in-parseswift/1557)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 17\
**Last updated:** [January 8, 2022, 5:20pm UTC](https://community.parseplatform.org/t/explain-result-in-parseswift/1557 "2022-01-08T17:20:53Z")

</div>

Hi, I would like to investigate query performance and was able to set a simple function that returns array of objects. Parse.Cloud.define("newProfiles", async (request) =\> { const basicQuery = new Parse.Query("PrsP…

---

## [How to return from Parse Cloud Function in Node.js](https://community.parseplatform.org/t/how-to-return-from-parse-cloud-function-in-node-js/2303)

<div class="topic-metadata">

**Author:** [@LilMoke](https://community.parseplatform.org/u/LilMoke)\
**Replies:** 14\
**Last updated:** [December 22, 2021, 1:04am UTC](https://community.parseplatform.org/t/how-to-return-from-parse-cloud-function-in-node-js/2303 "2021-12-22T01:04:49Z")

</div>

Hello, I have a parse cloud function that returns as follows on success: .then((res) =\> { console.log(res); return res; }) However, I get this error after the function executes: Fatal error: Error calling cloud…

---

## [Problem with "recursive" ParseRelation with ParseSwift](https://community.parseplatform.org/t/problem-with-recursive-parserelation-with-parseswift/1825)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 6\
**Last updated:** [December 12, 2021, 11:44pm UTC](https://community.parseplatform.org/t/problem-with-recursive-parserelation-with-parseswift/1825 "2021-12-12T23:44:02Z")

</div>

My User object has a field of “blockedUsers” which in the ParseDatabase is a relation to \_User. Unfortunately, I’m getting an error of Value type ‘User’ cannot have a stored property that recursively contains it my …

---

## [ParseGeoPoint and CLLocationCoordinate2D](https://community.parseplatform.org/t/parsegeopoint-and-cllocationcoordinate2d/2195)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 6\
**Last updated:** [November 24, 2021, 4:42am UTC](https://community.parseplatform.org/t/parsegeopoint-and-cllocationcoordinate2d/2195 "2021-11-24T04:42:00Z")

</div>

I find myself converting ParseGeoPoint lat and long data to CLLocationCoordinate2D often for use with Mapkit. Is there an extension to ParseGeoPoint I can use to easily convert it? If not, I’m planning to make one. Som…

---

## [Pulling data out of Pointer\<Object\> without having to fetch() again](https://community.parseplatform.org/t/pulling-data-out-of-pointer-object-without-having-to-fetch-again/2191)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 5\
**Last updated:** [November 19, 2021, 1:00pm UTC](https://community.parseplatform.org/t/pulling-data-out-of-pointer-object-without-having-to-fetch-again/2191 "2021-11-19T13:00:21Z")

</div>

Related to my earlier question here, I now use Pointer to store a parent Location to my Location object. However, now that I need the name of the parent, I’m trying to figure out if there’s a way to have the object’s cu…

---

## [ParseSwift Query Question](https://community.parseplatform.org/t/parseswift-query-question/2180)

<div class="topic-metadata">

**Author:** [@LilMoke](https://community.parseplatform.org/u/LilMoke)\
**Replies:** 21\
**Last updated:** [November 18, 2021, 7:13pm UTC](https://community.parseplatform.org/t/parseswift-query-question/2180 "2021-11-18T19:13:08Z")

</div>

Hello, Would someone here be able to show me, or point me, to a sample to query for a user? I have a collection that has a column with a user pointer. I am able to create queries for strings, int, etc. But I am uncle…

---

## [New session - Sign In with Apple](https://community.parseplatform.org/t/new-session-sign-in-with-apple/2105)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 2\
**Last updated:** [October 21, 2021, 4:36pm UTC](https://community.parseplatform.org/t/new-session-sign-in-with-apple/2105 "2021-10-21T16:36:13Z")

</div>

Situation: user is loggen in with Sing In with Apple session were removed from database while client app was not running client app launch and upon fetch gets Invalid session error UI leads to login screen where the a…

---

## [Async / await with ParseSwift Query sample?](https://community.parseplatform.org/t/async-await-with-parseswift-query-sample/2099)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 3\
**Last updated:** [October 19, 2021, 2:43am UTC](https://community.parseplatform.org/t/async-await-with-parseswift-query-sample/2099 "2021-10-19T02:43:37Z")

</div>

Hi all! I just started converting my code to async await with swift 5.5. I was wondering though if anyone has samples or can point me to one that shows how i can use ParseSwift’s current query functions using completion…

---

## [ParseFile init without previous fetch](https://community.parseplatform.org/t/parsefile-init-without-previous-fetch/1666)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 7\
**Last updated:** [October 17, 2021, 5:29pm UTC](https://community.parseplatform.org/t/parsefile-init-without-previous-fetch/1666 "2021-10-17T17:29:18Z")

</div>

Is there a way how to init an existing ParseFile without previously fetching it in ParseSwift SDK or set the url property? I would like to keep an array of ParseFile in a field of parent document. For the case when I wo…

---

## [Login with AppleID Question...](https://community.parseplatform.org/t/login-with-appleid-question/2088)

<div class="topic-metadata">

**Author:** [@LilMoke](https://community.parseplatform.org/u/LilMoke)\
**Replies:** 6\
**Last updated:** [October 15, 2021, 2:33pm UTC](https://community.parseplatform.org/t/login-with-appleid-question/2088 "2021-10-15T14:33:40Z")

</div>

So I am using ParseUI to login with AppleID. Everything works great, except I cannot seem to get the email address. I have looked at the Poarse code and it seems to be requesting it. I also see the box checked in the …

---

## [migrateFromObjcSDK?](https://community.parseplatform.org/t/migratefromobjcsdk/1914)

<div class="topic-metadata">

**Author:** [@claesjacobsson](https://community.parseplatform.org/u/claesjacobsson)\
**Replies:** 1\
**Last updated:** [August 20, 2021, 10:57pm UTC](https://community.parseplatform.org/t/migratefromobjcsdk/1914 "2021-08-20T22:57:59Z")

</div>

Hi! Can someone explain a bit more what migrateFromObjcSDK does when initializing ParseSwift? Are there any minimum ObjC SDK version needed to migrate from? Kind regards, Claes

---

## [ParseSwift SDK: Observe LiveQuery WebSocket status](https://community.parseplatform.org/t/parseswift-sdk-observe-livequery-websocket-status/1739)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 37\
**Last updated:** [August 6, 2021, 7:02am UTC](https://community.parseplatform.org/t/parseswift-sdk-observe-livequery-websocket-status/1739 "2021-08-06T07:02:51Z")

</div>

How could I use the ParseLiveQuery class in swift to observe the status of LiveQuery connection? I found that I can get connection status by accessing isConnected in the default client: let status = ParseLiveQuery.getDe…

---

## [Update constraint of LiveQuery](https://community.parseplatform.org/t/update-constraint-of-livequery/1866)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 4:44pm UTC](https://community.parseplatform.org/t/update-constraint-of-livequery/1866 "2021-07-30T16:44:27Z")

</div>

Let’s have an array of group’s objectId that I want to subscribe: var arrayOfGroupObjectIds: \[String\] = \["aaa", "bbb", "ccc"\] let groupQuery = Group.query(containedIn(key: "objectId", array: arrayOfGroupObjectIds)) grou…

---

## [Doing a fetch for pointer objects in a user after Changing the Password returns a User Object with nil values](https://community.parseplatform.org/t/doing-a-fetch-for-pointer-objects-in-a-user-after-changing-the-password-returns-a-user-object-with-nil-values/1850)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 1\
**Last updated:** [July 28, 2021, 2:29am UTC](https://community.parseplatform.org/t/doing-a-fetch-for-pointer-objects-in-a-user-after-changing-the-password-returns-a-user-object-with-nil-values/1850 "2021-07-28T02:29:35Z")

</div>

I have 2 views, one changes the email and the other changes the password. Everything works as expected with changing the email. ( I update User.current?.email, then User.current?.save. User.current?.email = self.emailF…

---

## [ParseSwift Query to fill a List View](https://community.parseplatform.org/t/parseswift-query-to-fill-a-list-view/1785)

<div class="topic-metadata">

**Author:** [@lancdec](https://community.parseplatform.org/u/lancdec)\
**Replies:** 5\
**Last updated:** [July 18, 2021, 11:25pm UTC](https://community.parseplatform.org/t/parseswift-query-to-fill-a-list-view/1785 "2021-07-18T23:25:55Z")

</div>

I am porting an Obj-C app over to swift and since it is a bit dated, I have decided to do a complete rewrite. With that I need to fill a SwiftUI List View with the results of a query. Since the data changes slowly it doe…

---

## [Both custom and generated objectId in one project](https://community.parseplatform.org/t/both-custom-and-generated-objectid-in-one-project/1812)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 3\
**Last updated:** [July 9, 2021, 5:57pm UTC](https://community.parseplatform.org/t/both-custom-and-generated-objectid-in-one-project/1812 "2021-07-09T17:57:33Z")

</div>

I tried to save an object with no custom objectId" Invite inbox save failed: Inbox ({“rid”:“8AA2pyT7WN”,“d”:“zG65F…TM”,“s”:“6yQCNQ4Kxo”,“ACL”:{“OZZUF3G8L2”:{“write”:true,“read”:true},“8AA2pyT7WN”:{“write”:true,“read”:t…

---

## [Context in ParseSwift save](https://community.parseplatform.org/t/context-in-parseswift-save/1644)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 6\
**Last updated:** [June 20, 2021, 3:12pm UTC](https://community.parseplatform.org/t/context-in-parseswift-save/1644 "2021-06-20T15:12:25Z")

</div>

Hello, is there a way how to pass date as context for the .save() function in ParseSwift SDK? Thanks!

---

## [ParseSwift - Best Practice for Parent / Child relationship of same object](https://community.parseplatform.org/t/parseswift-best-practice-for-parent-child-relationship-of-same-object/1758)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 13\
**Last updated:** [June 19, 2021, 11:53am UTC](https://community.parseplatform.org/t/parseswift-best-practice-for-parent-child-relationship-of-same-object/1758 "2021-06-19T11:53:54Z")

</div>

So I’ve been converting my existing code running the older Parse iOS SDK to ParseSwift, unfortunately I get this error as I have an Optional parent field for my Location object as Locations can have a parent Location. …

---

## [ParseSwift - is it possible to do an "or" query?](https://community.parseplatform.org/t/parseswift-is-it-possible-to-do-an-or-query/1766)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 1\
**Last updated:** [June 18, 2021, 11:58am UTC](https://community.parseplatform.org/t/parseswift-is-it-possible-to-do-an-or-query/1766 "2021-06-18T11:58:22Z")

</div>

Is it possible to do queries with ParseSwift and do an “or” query? (name = x) or (altNamesArray contains x) So my situation is I have a Location Object which has a name field and an altNames (array) field. If I wanted …

---

## [Cancel .save() call](https://community.parseplatform.org/t/cancel-save-call/1734)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 1\
**Last updated:** [June 7, 2021, 5:41am UTC](https://community.parseplatform.org/t/cancel-save-call/1734 "2021-06-07T05:41:53Z")

</div>

Is it possible to cancel already called .save() ? score.save { result in switch result { case .success(let savedScore): ... case .failure(let error): ... } } While playing with bad conne…

---

## [Handle session expiration without disturbing user](https://community.parseplatform.org/t/handle-session-expiration-without-disturbing-user/1618)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 1\
**Last updated:** [April 29, 2021, 5:07pm UTC](https://community.parseplatform.org/t/handle-session-expiration-without-disturbing-user/1618 "2021-04-29T17:07:58Z")

</div>

Hello, I would like to implement a short session expiration (lets say one month) for following case: User log in on his second device (username+password or apple) afterLogin trigger checks number of sessions and if \> …

---

## [Can't fetch objects with Pointers](https://community.parseplatform.org/t/cant-fetch-objects-with-pointers/1471)

<div class="topic-metadata">

**Author:** [@pierlux](https://community.parseplatform.org/u/pierlux)\
**Replies:** 9\
**Last updated:** [April 26, 2021, 11:27am UTC](https://community.parseplatform.org/t/cant-fetch-objects-with-pointers/1471 "2021-04-26T11:27:38Z")

</div>

I have a very simple test model: struct Library: ParseObject { var objectId: String? var createdAt: Date? var updatedAt: Date? var ACL: ParseACL? var name: String = "" } struct Recipe: ParseObject …

---

## [How to store a list of list of live queries](https://community.parseplatform.org/t/how-to-store-a-list-of-list-of-live-queries/1580)

<div class="topic-metadata">

**Author:** [@pierlux](https://community.parseplatform.org/u/pierlux)\
**Replies:** 2\
**Last updated:** [April 15, 2021, 4:42pm UTC](https://community.parseplatform.org/t/how-to-store-a-list-of-list-of-live-queries/1580 "2021-04-15T16:42:10Z")

</div>

Sorry if it’s more of a Swift question but I can’t figure out how to google for this question :grin: I created a few live query objects on different classes and I’d like to create a list of all of them (so that I can un…

---

## [Persist login between app launches](https://community.parseplatform.org/t/persist-login-between-app-launches/1523)

<div class="topic-metadata">

**Author:** [@pierlux](https://community.parseplatform.org/u/pierlux)\
**Replies:** 11\
**Last updated:** [April 4, 2021, 3:25pm UTC](https://community.parseplatform.org/t/persist-login-between-app-launches/1523 "2021-04-04T15:25:14Z")

</div>

Hi, I was wondering how to persist logins between app launches. It seems that it was working before (ParseUser.current wasn’t always nil on launch) but it seems to always be nil now. Do you have more details about how…

[Previous page](https://community.parseplatform.org/c/client-sdks/parseswift-sdk/25.md)

[Next page](https://community.parseplatform.org/c/client-sdks/parseswift-sdk/25.md?page=2)
