# JavaScript SDK

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

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

---

## [Sending push in afterSave trigger](https://community.parseplatform.org/t/sending-push-in-aftersave-trigger/4961)

<div class="topic-metadata">

**Author:** [@adammlevy](https://community.parseplatform.org/u/adammlevy)\
**Replies:** 1\
**Last updated:** [June 6, 2025, 12:17am UTC](https://community.parseplatform.org/t/sending-push-in-aftersave-trigger/4961 "2025-06-06T00:17:04Z")

</div>

I’m trying to send a push notification from an afterSave trigger but receiving the following error: Error: {"message":"Cannot use the Master Key, it has not been provided.","code":141} Prior to upgrading to 3.x I was ab…

---

## [Cache SELECT queries](https://community.parseplatform.org/t/cache-select-queries/4428)

<div class="topic-metadata">

**Author:** [@shner-elmo](https://community.parseplatform.org/u/shner-elmo)\
**Replies:** 4\
**Last updated:** [December 18, 2024, 2:47am UTC](https://community.parseplatform.org/t/cache-select-queries/4428 "2024-12-18T02:47:30Z")

</div>

Hey I’m working with the JS SDK (on Typescript if that matters), and I need to quickly optimize an existing codebase. Is there a way I can cache SELECT queries? Ideally I would like to have some sort of LRU cache, so i…

---

## [What is PARSE\_BUILD weapp?](https://community.parseplatform.org/t/what-is-parse-build-weapp/4545)

<div class="topic-metadata">

**Author:** [@reptilehaus](https://community.parseplatform.org/u/reptilehaus)\
**Replies:** 1\
**Last updated:** [November 8, 2024, 11:14pm UTC](https://community.parseplatform.org/t/what-is-parse-build-weapp/4545 "2024-11-08T23:14:45Z")

</div>

Im going through parse source code trying to reverse engineer it and i see a PARSE\_BUILD called weapp - just curious what flavour of parse this is, i was thinking its a misspelling of webapp but there is browser bundles …

---

## [Need help with case insensitive find](https://community.parseplatform.org/t/need-help-with-case-insensitive-find/3024)

<div class="topic-metadata">

**Author:** [@clt](https://community.parseplatform.org/u/clt)\
**Replies:** 6\
**Last updated:** [July 4, 2024, 1:02am UTC](https://community.parseplatform.org/t/need-help-with-case-insensitive-find/3024 "2024-07-04T01:02:26Z")

</div>

I have some cloud code that is trying to do a case insensitive find and it’s not working. I’m not sure where to start digging in so any pointers would be appreciated. Here are the details: // cloud code const query…

---

## [Saving session token locally in NextJS Site](https://community.parseplatform.org/t/saving-session-token-locally-in-nextjs-site/3698)

<div class="topic-metadata">

**Author:** [@deelydian](https://community.parseplatform.org/u/deelydian)\
**Replies:** 5\
**Last updated:** [June 29, 2024, 4:21pm UTC](https://community.parseplatform.org/t/saving-session-token-locally-in-nextjs-site/3698 "2024-06-29T16:21:30Z")

</div>

Hi All! Thank you in advance for any help you can share. I’m in the process of building a new site in NextJS (13.5.6) that will tie-in to our existing Parse App hosted on heroku. I have a couple of questions, since I’m …

---

## [Documentation about 4 special built-in fields (objectId, createdAt, updatedAt, acl)](https://community.parseplatform.org/t/documentation-about-4-special-built-in-fields-objectid-createdat-updatedat-acl/4223)

<div class="topic-metadata">

**Author:** [@thientran1707](https://community.parseplatform.org/u/thientran1707)\
**Replies:** 0\
**Last updated:** [June 24, 2024, 3:06pm UTC](https://community.parseplatform.org/t/documentation-about-4-special-built-in-fields-objectid-createdat-updatedat-acl/4223 "2024-06-24T15:06:39Z")

</div>

As in the JS SDK documentation, we have 4 special built-in fields (JavaScript Developers Guide | Parse) I have a few questions to clarify May I know why can only be access by calling obj.id but not obj.get(‘objectId’)…

---

## [Trying to use Jest in React Native](https://community.parseplatform.org/t/trying-to-use-jest-in-react-native/4150)

<div class="topic-metadata">

**Author:** [@SmatchyLaPaglia](https://community.parseplatform.org/u/SmatchyLaPaglia)\
**Replies:** 0\
**Last updated:** [June 4, 2024, 4:07pm UTC](https://community.parseplatform.org/t/trying-to-use-jest-in-react-native/4150 "2024-06-04T16:07:20Z")

</div>

I’m trying to use Jest to test a React Native / Expo project. I’m trying to mock the parts where a file accesses Parse but I keep getting errors like ‘applicationId not found’. This is basically how I’m mocking Parse: g…

---

## [Issue W/upgrade to Parser JS SDK 5.0 from 3.3.0](https://community.parseplatform.org/t/issue-w-upgrade-to-parser-js-sdk-5-0-from-3-3-0/4144)

<div class="topic-metadata">

**Author:** [@Pixameter](https://community.parseplatform.org/u/Pixameter)\
**Replies:** 0\
**Last updated:** [June 2, 2024, 3:04pm UTC](https://community.parseplatform.org/t/issue-w-upgrade-to-parser-js-sdk-5-0-from-3-3-0/4144 "2024-06-02T15:04:02Z")

</div>

We upgraded to parse server 7.0 and NodeJs V20.0. Then we noticed the compatibility requirements for Parse js SDK version 5.0. In upgrading parse sdk to 5.0 from our current 3.3.0 we run into the following issue. For …

---

## [Refused to get unsafe header "access-control-expose-headers"](https://community.parseplatform.org/t/refused-to-get-unsafe-header-access-control-expose-headers/3751)

<div class="topic-metadata">

**Author:** [@PPHelios](https://community.parseplatform.org/u/PPHelios)\
**Replies:** 4\
**Last updated:** [May 29, 2024, 8:49pm UTC](https://community.parseplatform.org/t/refused-to-get-unsafe-header-access-control-expose-headers/3751 "2024-05-29T20:49:16Z")

</div>

I’m building a next js app but i’m getting this error logged in the console all the time. Refused to get unsafe header “access-control-expose-headers” parse.min.js 14 I don’t know what is the cause of this error and…

---

## [Trying to get Parse working with Expo](https://community.parseplatform.org/t/trying-to-get-parse-working-with-expo/4077)

<div class="topic-metadata">

**Author:** [@SmatchyLaPaglia](https://community.parseplatform.org/u/SmatchyLaPaglia)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 3:08pm UTC](https://community.parseplatform.org/t/trying-to-get-parse-working-with-expo/4077 "2024-04-24T15:08:15Z")

</div>

I’m just starting with React Native/Expo, coming from a Xamarin.Forms background. I had Parse working in Xamarin and now I’m trying to get it working in Parse. Can anyone advise, or point me towards resources specifical…

---

## [Next.js 14 middleware](https://community.parseplatform.org/t/next-js-14-middleware/3881)

<div class="topic-metadata">

**Author:** [@Thib](https://community.parseplatform.org/u/Thib)\
**Replies:** 1\
**Last updated:** [April 22, 2024, 10:20pm UTC](https://community.parseplatform.org/t/next-js-14-middleware/3881 "2024-04-22T22:20:31Z")

</div>

Hello, I’m looking for best practices to make Next.js 14 (with App Router) work with Parse. I want to implement a middleware to check if the user is logged in and protect certain routes. The issue I’m facing is that whe…

---

## [How to use MasterKey with parse live query](https://community.parseplatform.org/t/how-to-use-masterkey-with-parse-live-query/2972)

<div class="topic-metadata">

**Author:** [@reptilehaus](https://community.parseplatform.org/u/reptilehaus)\
**Replies:** 5\
**Last updated:** [April 6, 2024, 3:37am UTC](https://community.parseplatform.org/t/how-to-use-masterkey-with-parse-live-query/2972 "2024-04-06T03:37:27Z")

</div>

From following lots for random documentation ive managed to use Parse.Query client side which subscribes to my live query server however i need to use masterKey but if were executing the query client side im not sure ho…

---

## [Send data through Live Query to the server](https://community.parseplatform.org/t/send-data-through-live-query-to-the-server/3816)

<div class="topic-metadata">

**Author:** [@ali\_pro](https://community.parseplatform.org/u/ali_pro)\
**Replies:** 3\
**Last updated:** [January 22, 2024, 9:50pm UTC](https://community.parseplatform.org/t/send-data-through-live-query-to-the-server/3816 "2024-01-22T21:50:47Z")

</div>

Hello Parsers! I’m trying to create a react chat application using parse server and JS SDK. There’s something I can’t figure out. I want to implement the feature of messages getting seen. Does JS SDK’s live query suppor…

---

## [How to query birthday is today](https://community.parseplatform.org/t/how-to-query-birthday-is-today/2188)

<div class="topic-metadata">

**Author:** [@shafeekghaseel](https://community.parseplatform.org/u/shafeekghaseel)\
**Replies:** 6\
**Last updated:** [January 4, 2024, 7:59am UTC](https://community.parseplatform.org/t/how-to-query-birthday-is-today/2188 "2024-01-04T07:59:58Z")

</div>

I need to get all users those who have birthday today Here is my code var user = Parse.Object.extend("\_User"); var query = new Parse.Query(user); query.equalTo(“birthday”,new Date()); query.find().then(function(resu…

---

## [Session management and installation ids](https://community.parseplatform.org/t/session-management-and-installation-ids/3755)

<div class="topic-metadata">

**Author:** [@deelydian](https://community.parseplatform.org/u/deelydian)\
**Replies:** 3\
**Last updated:** [December 27, 2023, 3:24pm UTC](https://community.parseplatform.org/t/session-management-and-installation-ids/3755 "2023-12-27T15:24:52Z")

</div>

I apologize if this topic has been discussed, or if I have simply missed something simple, but I’m needing help with understanding how \_Sessions and \_Installations work. If there is documentation somewhere that discusses…

---

## [Is it really fine to store twitter api secret in authData for users](https://community.parseplatform.org/t/is-it-really-fine-to-store-twitter-api-secret-in-authdata-for-users/3760)

<div class="topic-metadata">

**Author:** [@reptilehaus](https://community.parseplatform.org/u/reptilehaus)\
**Replies:** 1\
**Last updated:** [December 12, 2023, 10:15am UTC](https://community.parseplatform.org/t/is-it-really-fine-to-store-twitter-api-secret-in-authdata-for-users/3760 "2023-12-12T10:15:39Z")

</div>

Just curious it it really necessary to store API secret keys on each user that Authenticated via twitter ? I havent delved into the internals of it but its just something that struck me as odd because the user can see t…

---

## [Typed database classes](https://community.parseplatform.org/t/typed-database-classes/3655)

<div class="topic-metadata">

**Author:** [@theolundqvist](https://community.parseplatform.org/u/theolundqvist)\
**Replies:** 5\
**Last updated:** [November 7, 2023, 7:08am UTC](https://community.parseplatform.org/t/typed-database-classes/3655 "2023-11-07T07:08:43Z")

</div>

So we have had some problems in my team regarding the object api. Since it is hard to use without knowing the exact key names it makes us go to our documentation all the time. So we have developed a small wrapper which …

---

## [Does Parse.Object.saveAll or pinAll download any Files if available?](https://community.parseplatform.org/t/does-parse-object-saveall-or-pinall-download-any-files-if-available/3680)

<div class="topic-metadata">

**Author:** [@andresteves](https://community.parseplatform.org/u/andresteves)\
**Replies:** 3\
**Last updated:** [October 27, 2023, 8:14pm UTC](https://community.parseplatform.org/t/does-parse-object-saveall-or-pinall-download-any-files-if-available/3680 "2023-10-27T20:14:13Z")

</div>

Hi, I have a project and want to allow for offline usage due to lack of connectivity in some places. I have audio and image files in the project and want to save them offline. Is it possible with Parse.Object.saveAll or…

---

## [Query only works after any update on Dashboard](https://community.parseplatform.org/t/query-only-works-after-any-update-on-dashboard/3603)

<div class="topic-metadata">

**Author:** [@andresteves](https://community.parseplatform.org/u/andresteves)\
**Replies:** 9\
**Last updated:** [October 27, 2023, 8:09pm UTC](https://community.parseplatform.org/t/query-only-works-after-any-update-on-dashboard/3603 "2023-10-27T20:09:57Z")

</div>

So I have setup my Parse Server(5.2.0) and Dashboard(4.1.0) and I am using the JS SDK latest version to build a React Native app with Parse integration but queries respond with ParseError: 119 This user is not allowed to…

---

## [Parse.Cloud.run timeout](https://community.parseplatform.org/t/parse-cloud-run-timeout/3301)

<div class="topic-metadata">

**Author:** [@supagu](https://community.parseplatform.org/u/supagu)\
**Replies:** 3\
**Last updated:** [October 13, 2023, 1:56am UTC](https://community.parseplatform.org/t/parse-cloud-run-timeout/3301 "2023-10-13T01:56:13Z")

</div>

I’m running into an issue where calling Parse.Cloud.run from my Javascript code looks like it is timing out after 30 seconds. The browser network tab shows my request being terminated and retried numerous time but alway…

---

## [Parse.User.current() returns an object without custom user class functions](https://community.parseplatform.org/t/parse-user-current-returns-an-object-without-custom-user-class-functions/3588)

<div class="topic-metadata">

**Author:** [@valdes21](https://community.parseplatform.org/u/valdes21)\
**Replies:** 5\
**Last updated:** [August 26, 2023, 6:44am UTC](https://community.parseplatform.org/t/parse-user-current-returns-an-object-without-custom-user-class-functions/3588 "2023-08-26T06:44:22Z")

</div>

Hi guys, I’m using a custom user class named User that has additional functions like postConstruct(). When I try to get the current user object using user: User; this.user = Parse.User.current(); the user object does …

---

## [Handling Invalid Session & Clearing Session](https://community.parseplatform.org/t/handling-invalid-session-clearing-session/3380)

<div class="topic-metadata">

**Author:** [@sfraise](https://community.parseplatform.org/u/sfraise)\
**Replies:** 1\
**Last updated:** [August 10, 2023, 4:35pm UTC](https://community.parseplatform.org/t/handling-invalid-session-clearing-session/3380 "2023-08-10T16:35:27Z")

</div>

I already have an error function to handle expired sessions using the following: switch (err.code) { case Parse.Error.INVALID\_SESSION\_TOKEN: Parse.User.logOut(); Are there other session error values I should be tryin…

---

## [Matching a saved object with a query](https://community.parseplatform.org/t/matching-a-saved-object-with-a-query/3550)

<div class="topic-metadata">

**Author:** [@dblythy](https://community.parseplatform.org/u/dblythy)\
**Replies:** 2\
**Last updated:** [July 24, 2023, 6:40am UTC](https://community.parseplatform.org/t/matching-a-saved-object-with-a-query/3550 "2023-07-24T06:40:38Z")

</div>

Hi all, I’m wondering if anyone knows there’s a local query method that can be used to compare a query to a saved object. Example: const obj = await new Parse.Query("Test").first(); const query = new Parse.Query("Test…

---

## [ParseJS and VueJS](https://community.parseplatform.org/t/parsejs-and-vuejs/1411)

<div class="topic-metadata">

**Author:** [@dblythy](https://community.parseplatform.org/u/dblythy)\
**Replies:** 24\
**Last updated:** [July 13, 2023, 6:02am UTC](https://community.parseplatform.org/t/parsejs-and-vuejs/1411 "2023-07-13T06:02:09Z")

</div>

Hi all! For those unfamiliar with VueJS, it can be extremely useful to get/set properties on data, such as setting ‘Name’. e.g: data() { monster: new Parse.Object(); } \<input v-model="monster.Name" placeholder="mons…

---

## [Node SDK makes network requests](https://community.parseplatform.org/t/node-sdk-makes-network-requests/2855)

<div class="topic-metadata">

**Author:** [@woutercouvaras](https://community.parseplatform.org/u/woutercouvaras)\
**Replies:** 8\
**Last updated:** [July 12, 2023, 6:31am UTC](https://community.parseplatform.org/t/node-sdk-makes-network-requests/2855 "2023-07-12T06:31:05Z")

</div>

Hi, I’ve built a basic catelog app using Parse and it all works beautifully, although I bumped into something the other day that was a bit unexpected… TD;DR; The node parse sdk seems to make network requests for each i…

---

## [Vue + Vite + Parse JS: error “Super expression must either be null or a function”](https://community.parseplatform.org/t/vue-vite-parse-js-error-super-expression-must-either-be-null-or-a-function/2001)

<div class="topic-metadata">

**Author:** [@0biWanKenobi](https://community.parseplatform.org/u/0biWanKenobi)\
**Replies:** 7\
**Last updated:** [May 30, 2023, 1:52pm UTC](https://community.parseplatform.org/t/vue-vite-parse-js-error-super-expression-must-either-be-null-or-a-function/2001 "2023-05-30T13:52:45Z")

</div>

Hello community, first post here! I’m experiencing the exact same error from this post . I have created a minimale repro on Codesandbox . You will notice that the OP from the other post and I are both using Vite, whic…

---

## [Use minified Parse SDK with Typescript](https://community.parseplatform.org/t/use-minified-parse-sdk-with-typescript/3483)

<div class="topic-metadata">

**Author:** [@dr\_barto](https://community.parseplatform.org/u/dr_barto)\
**Replies:** 1\
**Last updated:** [May 30, 2023, 8:59am UTC](https://community.parseplatform.org/t/use-minified-parse-sdk-with-typescript/3483 "2023-05-30T08:59:19Z")

</div>

I’m using the minified version of the Parse SDK in a Web project: import Parse from 'parse/dist/parse.min.js' (I am forced to use the minified version due to a bug that occurs when using the non-minified Parse library …

---

## [Parse JS (React Native) with Redux Persist](https://community.parseplatform.org/t/parse-js-react-native-with-redux-persist/3399)

<div class="topic-metadata">

**Author:** [@manufunk](https://community.parseplatform.org/u/manufunk)\
**Replies:** 0\
**Last updated:** [April 16, 2023, 2:45pm UTC](https://community.parseplatform.org/t/parse-js-react-native-with-redux-persist/3399 "2023-04-16T14:45:39Z")

</div>

I’m currently using Parse JS in React Native and activated the Redux Persist feature with AsyncStorage to store the state which also includes many Parse Objects. The problem is now that if I fetch for example a file (ima…

---

## [Cannot create a pointer to an unsaved Object (Nested Objects)](https://community.parseplatform.org/t/cannot-create-a-pointer-to-an-unsaved-object-nested-objects/3280)

<div class="topic-metadata">

**Author:** [@Eli](https://community.parseplatform.org/u/Eli)\
**Replies:** 2\
**Last updated:** [April 13, 2023, 10:28pm UTC](https://community.parseplatform.org/t/cannot-create-a-pointer-to-an-unsaved-object-nested-objects/3280 "2023-04-13T22:28:50Z")

</div>

Hello, I have noticed that when saving a Parse object (parent) that has a child Parse object and the child object also contains a Parse object. Then when saving the parent object it throws an error (Cannot create a poin…

---

## [Mass update Parse Relations - performance](https://community.parseplatform.org/t/mass-update-parse-relations-performance/3358)

<div class="topic-metadata">

**Author:** [@frouo](https://community.parseplatform.org/u/frouo)\
**Replies:** 5\
**Last updated:** [March 31, 2023, 2:00pm UTC](https://community.parseplatform.org/t/mass-update-parse-relations-performance/3358 "2023-03-31T14:00:54Z")

</div>

Hello :wave: I have a webapp where a \_User can add a Tag to a bunch of Profile. For example, as a User, I have a list of 3577 profiles and I want to bulk update them with the tag “Friend”. I achieved this with the foll…

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