# JavaScript SDK

**URL:** https://community.parseplatform.org/c/client-sdks/javascript-sdk/14.md?page=2

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

**Page:** 3

---

## [LiveQueryClient with sessiontoken but no updates to ACL secured objects](https://community.parseplatform.org/t/livequeryclient-with-sessiontoken-but-no-updates-to-acl-secured-objects/2222)

<div class="topic-metadata">

**Author:** [@justav08](https://community.parseplatform.org/u/justav08)\
**Replies:** 9\
**Last updated:** [December 10, 2021, 7:44pm UTC](https://community.parseplatform.org/t/livequeryclient-with-sessiontoken-but-no-updates-to-acl-secured-objects/2222 "2021-12-10T19:44:07Z")

</div>

There are some issues on github about this problem. They are all closed but not solved yet. I stuck on that issue at the moment and before I do one of the awkward workaroud I want to ask if someone found a solution or ha…

---

## [Best way to get response from cloud code (Javascript)](https://community.parseplatform.org/t/best-way-to-get-response-from-cloud-code-javascript/2091)

<div class="topic-metadata">

**Author:** [@gabrielsalvador](https://community.parseplatform.org/u/gabrielsalvador)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 5:32pm UTC](https://community.parseplatform.org/t/best-way-to-get-response-from-cloud-code-javascript/2091 "2021-10-15T17:32:55Z")

</div>

Hello, I’ve been looking on parse documentations but I’m a bit confused. I’ve been though this tutorial where it says I should make my backend operations though Cloud Code. For my user profile Cloud Code I have the fol…

---

## [Logout user with expired session](https://community.parseplatform.org/t/logout-user-with-expired-session/1458)

<div class="topic-metadata">

**Author:** [@larryval](https://community.parseplatform.org/u/larryval)\
**Replies:** 29\
**Last updated:** [September 8, 2021, 9:45am UTC](https://community.parseplatform.org/t/logout-user-with-expired-session/1458 "2021-09-08T09:45:57Z")

</div>

Hi friends I’m working on a web application, I am using the JavaScript SDK. I do session expiration tests, in order to either log in with a short session of 30mm, or have a permanent session (default at 1 year). For m…

---

## [Get related objects for every row in query results](https://community.parseplatform.org/t/get-related-objects-for-every-row-in-query-results/1376)

<div class="topic-metadata">

**Author:** [@codechuck](https://community.parseplatform.org/u/codechuck)\
**Replies:** 5\
**Last updated:** [August 30, 2021, 10:29pm UTC](https://community.parseplatform.org/t/get-related-objects-for-every-row-in-query-results/1376 "2021-08-30T22:29:29Z")

</div>

Hello, I have a query which finds an Audit, then some related DetailAudit objects (one-to-many) and this related model has a “relation” column standards (many-to-many). The DetailAudit objects are passed to a view and i…

---

## [Enhancement: Extending Parse Schema Possible?](https://community.parseplatform.org/t/enhancement-extending-parse-schema-possible/1923)

<div class="topic-metadata">

**Author:** [@stevexm](https://community.parseplatform.org/u/stevexm)\
**Replies:** 2\
**Last updated:** [August 24, 2021, 9:34pm UTC](https://community.parseplatform.org/t/enhancement-extending-parse-schema-possible/1923 "2021-08-24T21:34:29Z")

</div>

Hi, I have a Parse use case where the application schemas play a central role. I would like to inquire about being able to extend them? Anyone know if it is possible to do something like: const options = {required:true,…

---

## [Is Parse SDK JS (React Native) support Offline Sync?](https://community.parseplatform.org/t/is-parse-sdk-js-react-native-support-offline-sync/1831)

<div class="topic-metadata">

**Author:** [@lamualfa](https://community.parseplatform.org/u/lamualfa)\
**Replies:** 2\
**Last updated:** [July 18, 2021, 9:55pm UTC](https://community.parseplatform.org/t/is-parse-sdk-js-react-native-support-offline-sync/1831 "2021-07-18T21:55:14Z")

</div>

I am considering choosing between Parse Server or Firebase in my React Native Project. I want to choose the Parse Server because it is open source and there is a cloud provider called Back4app.com which will make it easi…

---

## [Thank you for entering sdk expansion class to report errors](https://community.parseplatform.org/t/thank-you-for-entering-sdk-expansion-class-to-report-errors/1822)

<div class="topic-metadata">

**Author:** [@Dssssds](https://community.parseplatform.org/u/Dssssds)\
**Replies:** 0\
**Last updated:** [July 13, 2021, 2:50am UTC](https://community.parseplatform.org/t/thank-you-for-entering-sdk-expansion-class-to-report-errors/1822 "2021-07-13T02:50:18Z")

</div>

Error Message → index.js:219 error Can’t call method on undefined code → var Parse = require(‘parse/taobao’); Taobao is an extension class I wrote alone

---

## [“containedIn” returns nothing if I used it with pointer type](https://community.parseplatform.org/t/containedin-returns-nothing-if-i-used-it-with-pointer-type/1795)

<div class="topic-metadata">

**Author:** [@ahmad-alkhatib](https://community.parseplatform.org/u/ahmad-alkhatib)\
**Replies:** 1\
**Last updated:** [July 5, 2021, 5:40pm UTC](https://community.parseplatform.org/t/containedin-returns-nothing-if-i-used-it-with-pointer-type/1795 "2021-07-05T17:40:18Z")

</div>

I f I try to filter the data by using containedIn as below I will be getting empty result because I’m trying to filter from pointer column type userProfile despite that I include the userProfile in the query. However, I…

---

## [Can i connect to multiple Parse Server in one browser?](https://community.parseplatform.org/t/can-i-connect-to-multiple-parse-server-in-one-browser/1798)

<div class="topic-metadata">

**Author:** [@lamualfa](https://community.parseplatform.org/u/lamualfa)\
**Replies:** 1\
**Last updated:** [July 5, 2021, 5:32pm UTC](https://community.parseplatform.org/t/can-i-connect-to-multiple-parse-server-in-one-browser/1798 "2021-07-05T17:32:27Z")

</div>

I have an Application (web base) that the user have their own server to run an Parse Server (to store sensitive data). The problem is, for Analytics needs, we need to create a second connection of Parse SDK JS to our ser…

---

## [Prevent user.signUp() from overwriting logged in user](https://community.parseplatform.org/t/prevent-user-signup-from-overwriting-logged-in-user/1735)

<div class="topic-metadata">

**Author:** [@kulanu](https://community.parseplatform.org/u/kulanu)\
**Replies:** 3\
**Last updated:** [June 18, 2021, 4:43pm UTC](https://community.parseplatform.org/t/prevent-user-signup-from-overwriting-logged-in-user/1735 "2021-06-18T16:43:07Z")

</div>

I understand to create a new user, one should use user.signUp() to get username/email checking and password encryption. The user is returned and the currentUser() is set the newly created user. And that’s precisely the …

---

## [How to do an $elemMatch query?](https://community.parseplatform.org/t/how-to-do-an-elemmatch-query/1752)

<div class="topic-metadata">

**Author:** [@sadortun](https://community.parseplatform.org/u/sadortun)\
**Replies:** 4\
**Last updated:** [June 15, 2021, 4:43pm UTC](https://community.parseplatform.org/t/how-to-do-an-elemmatch-query/1752 "2021-06-15T16:43:27Z")

</div>

Hi ! I need to do this query with Parse, is it possible ? db.User.find({ "friends.bestFriends" : { $elemMatch : { "objectId" : "xkdUOWAoUI"}} }) Is the $elemMatch implemented ? I see in the sources that it is us…

---

## [Can I place pointer (as value for some key) inside field with object type?](https://community.parseplatform.org/t/can-i-place-pointer-as-value-for-some-key-inside-field-with-object-type/964)

<div class="topic-metadata">

**Author:** [@Andy](https://community.parseplatform.org/u/Andy)\
**Replies:** 8\
**Last updated:** [June 1, 2021, 1:56am UTC](https://community.parseplatform.org/t/can-i-place-pointer-as-value-for-some-key-inside-field-with-object-type/964 "2021-06-01T01:56:33Z")

</div>

I need a field, that contains one pointer. Pointer type is not suitable cuz pointer may be for different entities, so I thought about Array or Object. For me it will be no matter which except theoretical performance when…

---

## [Getting this error "Super expression must either be null or a function" while configuring in React](https://community.parseplatform.org/t/getting-this-error-super-expression-must-either-be-null-or-a-function-while-configuring-in-react/1677)

<div class="topic-metadata">

**Author:** [@hemanshum](https://community.parseplatform.org/u/hemanshum)\
**Replies:** 4\
**Last updated:** [May 24, 2021, 5:02pm UTC](https://community.parseplatform.org/t/getting-this-error-super-expression-must-either-be-null-or-a-function-while-configuring-in-react/1677 "2021-05-24T17:02:37Z")

</div>

I am trying to configure Parse@2.13.0 on React. showing the following error. Using Tailwind + React + Vite Any ideas why and how to solve it, please?

---

## [Initialize only once Parse](https://community.parseplatform.org/t/initialize-only-once-parse/833)

<div class="topic-metadata">

**Author:** [@marcelobaez](https://community.parseplatform.org/u/marcelobaez)\
**Replies:** 6\
**Last updated:** [May 13, 2021, 9:57pm UTC](https://community.parseplatform.org/t/initialize-only-once-parse/833 "2021-05-13T21:57:34Z")

</div>

I am using Parse JS SDK un conjunction with Nextjs Framework. I don’t want to call initialize() on every request, so I need to know if there’s any method or property to check if Parse is already initialized

---

## [Using Parse with react-redux - best practices](https://community.parseplatform.org/t/using-parse-with-react-redux-best-practices/1661)

<div class="topic-metadata">

**Author:** [@panigrah](https://community.parseplatform.org/u/panigrah)\
**Replies:** 1\
**Last updated:** [May 13, 2021, 4:56pm UTC](https://community.parseplatform.org/t/using-parse-with-react-redux-best-practices/1661 "2021-05-13T16:56:26Z")

</div>

Hi, What is the recommended approach for working with parse and react when using redux? The ParseObjects returned from Parse queries are not serializable to allow for storing in redux so I am converting them toJSON() b…

---

## [Correct use of roles to see all User's emails?](https://community.parseplatform.org/t/correct-use-of-roles-to-see-all-users-emails/1614)

<div class="topic-metadata">

**Author:** [@samjarman](https://community.parseplatform.org/u/samjarman)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 5:27pm UTC](https://community.parseplatform.org/t/correct-use-of-roles-to-see-all-users-emails/1614 "2021-04-27T17:27:00Z")

</div>

Hi there! We’re building an admin dashboard for one of our apps. We’d like to export a CSV of all users, and that involves getting all users and having their emails present. By default they’re not - fair enough. Howev…

---

## [Deselect Pointer Key](https://community.parseplatform.org/t/deselect-pointer-key/1592)

<div class="topic-metadata">

**Author:** [@dblythy](https://community.parseplatform.org/u/dblythy)\
**Replies:** 3\
**Last updated:** [April 24, 2021, 12:50am UTC](https://community.parseplatform.org/t/deselect-pointer-key/1592 "2021-04-24T00:50:09Z")

</div>

Does anyone have experience using exclude for pointer keys? I can get query.select('pointer.value') working fine but can’t seem to get query.exclude('pointer.value') working. Thanks in advance!

---

## [Parse object array is missing attributes!](https://community.parseplatform.org/t/parse-object-array-is-missing-attributes/1578)

<div class="topic-metadata">

**Author:** [@tubbstravis](https://community.parseplatform.org/u/tubbstravis)\
**Replies:** 1\
**Last updated:** [April 15, 2021, 3:49pm UTC](https://community.parseplatform.org/t/parse-object-array-is-missing-attributes/1578 "2021-04-15T15:49:03Z")

</div>

I use parse.object to make an object. I store an attribute which is an array of children objects. I then call save. While I still have my parent object in memory, I call parent.get(“arrayattribute”), all of the children…

---

## [Why aggregation pipelines are omitting the '$' from mongodb's pipelines?](https://community.parseplatform.org/t/why-aggregation-pipelines-are-omitting-the-from-mongodbs-pipelines/1551)

<div class="topic-metadata">

**Author:** [@RaschidJFR](https://community.parseplatform.org/u/RaschidJFR)\
**Replies:** 4\
**Last updated:** [April 9, 2021, 4:17pm UTC](https://community.parseplatform.org/t/why-aggregation-pipelines-are-omitting-the-from-mongodbs-pipelines/1551 "2021-04-09T16:17:04Z")

</div>

In the JS SDK Parse.Query.aggregate() works really well in runtime, but the fact that stage names differ from the built-in MongoDB’s stages by the $ symbol –BTW inconsistently as only the top-level stages lose the $– rep…

---

## [Subscription doesn't respect notEqualTo in pointer field](https://community.parseplatform.org/t/subscription-doesnt-respect-notequalto-in-pointer-field/1327)

<div class="topic-metadata">

**Author:** [@Dealerpriest](https://community.parseplatform.org/u/Dealerpriest)\
**Replies:** 6\
**Last updated:** [April 1, 2021, 3:28pm UTC](https://community.parseplatform.org/t/subscription-doesnt-respect-notequalto-in-pointer-field/1327 "2021-04-01T15:28:25Z")

</div>

Hello! For some reason the following two queries (query and subscription) gives me different results. QUERY: let query = new parse.Query('ChatMessage'); const user = parse.User.current(); query.notEqualTo('author', us…

---

## [What type of queries does and doesn't work for live queries?](https://community.parseplatform.org/t/what-type-of-queries-does-and-doesnt-work-for-live-queries/1516)

<div class="topic-metadata">

**Author:** [@Dealerpriest](https://community.parseplatform.org/u/Dealerpriest)\
**Replies:** 5\
**Last updated:** [April 1, 2021, 3:25pm UTC](https://community.parseplatform.org/t/what-type-of-queries-does-and-doesnt-work-for-live-queries/1516 "2021-04-01T15:25:33Z")

</div>

I cant find any documentation of what types of queries doesn’t work when used as live queries. My experience is also that I won’t get any kind of error when I unintentionally create a query that will not work as expected…

---

## [Can we get raw JSON instead of ParseObject as result of query?](https://community.parseplatform.org/t/can-we-get-raw-json-instead-of-parseobject-as-result-of-query/1048)

<div class="topic-metadata">

**Author:** [@uzaysan](https://community.parseplatform.org/u/uzaysan)\
**Replies:** 9\
**Last updated:** [March 23, 2021, 3:14pm UTC](https://community.parseplatform.org/t/can-we-get-raw-json-instead-of-parseobject-as-result-of-query/1048 "2021-03-23T15:14:13Z")

</div>

I want to get raw json or array of json as query result. Is this possible?

---

## [When does requestPasswordReset throw error?](https://community.parseplatform.org/t/when-does-requestpasswordreset-throw-error/1486)

<div class="topic-metadata">

**Author:** [@Dealerpriest](https://community.parseplatform.org/u/Dealerpriest)\
**Replies:** 1\
**Last updated:** [March 23, 2021, 3:13pm UTC](https://community.parseplatform.org/t/when-does-requestpasswordreset-throw-error/1486 "2021-03-23T15:13:16Z")

</div>

I have the following code: return parse.User.requestPasswordReset(email).then(() =\> Promise.resolve()).catch((err) =\> Promise.reject(err)); for me the code never throws any error and always resolves. When will the requ…

---

## [Presence and concurrency lock 🔒](https://community.parseplatform.org/t/presence-and-concurrency-lock/1467)

<div class="topic-metadata">

**Author:** [@sadortun](https://community.parseplatform.org/u/sadortun)\
**Replies:** 2\
**Last updated:** [March 19, 2021, 1:32pm UTC](https://community.parseplatform.org/t/presence-and-concurrency-lock/1467 "2021-03-19T13:32:22Z")

</div>

Hi all, We need to show when another user is viewing a certain object or editing in order to prevent concurrent editing. It’s not that complicated, but is anyone aware of an existing package that would do this ? Also,…

---

## [Anonymous User destroyed on Logout](https://community.parseplatform.org/t/anonymous-user-destroyed-on-logout/1425)

<div class="topic-metadata">

**Author:** [@tamarinda](https://community.parseplatform.org/u/tamarinda)\
**Replies:** 9\
**Last updated:** [March 19, 2021, 1:24am UTC](https://community.parseplatform.org/t/anonymous-user-destroyed-on-logout/1425 "2021-03-19T01:24:46Z")

</div>

Hi! On logout of an anonymous user, that user is destroyed hence deleted from the Database. See line 1151 in ParseUser if (isAnonymous) { return currentUser.destroy({ sessionToken: currentSession }); } My question…

---

## [geoNear stage on agregation](https://community.parseplatform.org/t/geonear-stage-on-agregation/1429)

<div class="topic-metadata">

**Author:** [@jcasebas](https://community.parseplatform.org/u/jcasebas)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 5:41pm UTC](https://community.parseplatform.org/t/geonear-stage-on-agregation/1429 "2021-03-15T17:41:29Z")

</div>

I am trying to add a stage with geoNear operator, but i get error on server. pipeline = \[ { geoNear: { near: { type: “GeoPoint”, coordinates: \[4.8078815, 75.6917359\] }, distanceField: “dist.calculated”, minDistanc…

---

## [Query for a specific amount of objects](https://community.parseplatform.org/t/query-for-a-specific-amount-of-objects/1437)

<div class="topic-metadata">

**Author:** [@gianluca5539](https://community.parseplatform.org/u/gianluca5539)\
**Replies:** 2\
**Last updated:** [March 11, 2021, 5:07pm UTC](https://community.parseplatform.org/t/query-for-a-specific-amount-of-objects/1437 "2021-03-11T17:07:01Z")

</div>

Hello, I’m new to Parse. Is there a way to query for just a piece of information? I didn’t find any docs about it. Like for example I have a User class with 100 entries (with query.ascending(‘name’)) and I want only the…

---

## [Parse.Object deep serialization including Pointers, Relations, ACLs](https://community.parseplatform.org/t/parse-object-deep-serialization-including-pointers-relations-acls/1434)

<div class="topic-metadata">

**Author:** [@kulanu](https://community.parseplatform.org/u/kulanu)\
**Replies:** 3\
**Last updated:** [March 11, 2021, 3:38pm UTC](https://community.parseplatform.org/t/parse-object-deep-serialization-including-pointers-relations-acls/1434 "2021-03-11T15:38:38Z")

</div>

Whelp, the title pretty much sums up the question is there a method to ‘deep serialize’ a ParseObject, including all related objects - pointers, relations, ACLs and any other related Parse objects.? and if not, wha…

---

## [How we can call postgres user defined function from Parse Javascript](https://community.parseplatform.org/t/how-we-can-call-postgres-user-defined-function-from-parse-javascript/1373)

<div class="topic-metadata">

**Author:** [@zdaruwala](https://community.parseplatform.org/u/zdaruwala)\
**Replies:** 1\
**Last updated:** [February 24, 2021, 7:20pm UTC](https://community.parseplatform.org/t/how-we-can-call-postgres-user-defined-function-from-parse-javascript/1373 "2021-02-24T19:20:18Z")

</div>

Hello Friends, I am using postgres as a database and i want to call postgres user defined function from parse javascript sdk. Please help as i am stuck in it.

---

## [JS SDK 3.0.0 Parse.initialize Forbidden](https://community.parseplatform.org/t/js-sdk-3-0-0-parse-initialize-forbidden/1363)

<div class="topic-metadata">

**Author:** [@onlyspike](https://community.parseplatform.org/u/onlyspike)\
**Replies:** 4\
**Last updated:** [February 23, 2021, 5:32pm UTC](https://community.parseplatform.org/t/js-sdk-3-0-0-parse-initialize-forbidden/1363 "2021-02-23T17:32:29Z")

</div>

I have just create a new project with the JS SDK ver 3.0.0. When I initialize Parse I get a 403 Forbidden error. const Parse = require(‘parse’); Parse.initialize(“app-id”, “js-id”); Parse.serverURL = ‘https://myserv…

[Previous page](https://community.parseplatform.org/c/client-sdks/javascript-sdk/14.md?page=1)

[Next page](https://community.parseplatform.org/c/client-sdks/javascript-sdk/14.md?page=3)
