-
-
Notifications
You must be signed in to change notification settings - Fork 596
The request option "include" does not work in Parse.User.me() #1657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for opening this issue!
|
This comment was marked as abuse.
This comment was marked as abuse.
Thank you @rpfeil for confirming this issue still exists. It seems it just didn't receive much attention. Does anyone want to open a PR with a failing test case, so we can fix this? |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
You could open a PR, duplicate and modify one of these tests so that it executes the commands from the issue description with the |
This comment was marked as abuse.
This comment was marked as abuse.
There's a guide for first time contributors, see #1657 (comment). This is all integrated, it automatically launches a Parse Server and MongoDB instance when you run the test. |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
@rpfeil For future reference the contribution guide can be found at the bottom of the ReadMe https://github.com/parse-community/Parse-SDK-JS?tab=readme-ov-file#contributing I'll do a PR for this issue. I realized there could be refactoring with request options as well as a potential security issue. For a workaround try
Please follow the Parse Community's Code of Conduct. We understand your frustration but harassment and spam will not be tolerated in the future. |
This comment was marked as abuse.
This comment was marked as abuse.
Closing as this is a server issue, duplicate parse-community/parse-server#8095 |
New Issue Checklist
Issue Description
await Parse.User.me(sessionToken, { include: "books" })
does not work.The "include" key is actually ignored,
books
remains unfetched.Steps to reproduce
Create a
Parse.User
with a column of type Pointer array, let's call it "books", add books.Call
const me = await Parse.User.me(sessionToken, { include: "books" })
Actual Outcome
me.get("books")
returns an array of unfetchedBook
.Expected Outcome
Would expect that book data is available.
Environment
Server
5.4.0
macOS
local
Database
mongodb
5.0.13
local
Client
3.4.4
Fix idea:
Parse-SDK-JS/src/ParseUser.js
Line 700 in ad429fc
The text was updated successfully, but these errors were encountered: