parse-server: Using includeKey: on array of pointers results in error
For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.
Make sure these boxes are checked before submitting your issue – thanks for reporting issues back to Parse Server!
- You’ve met the prerequisites.
- You’re running the latest version of Parse Server.
- You’ve searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
Local
Xcode 7.3 iPhone 6s simulator with iOS 9.3 Parse-iOS-SDK 1.13
Remote
heroku/nodejs parse-server 2.2.4 parse 1.8.1
Steps to reproduce
Precondition: There exists an object on the database that has an array of pointers as one of its fields.
- Create a
PFQuery
on the object’s type. - Try to include the array of pointers field using
includeKey:
- Execute the query.
Note: This works correctly my Parse hosted app. It only becomes an issue when I try to use my parse-server hosted on heroku.
Logs/Trace
[Error]: can only include pointer fields (Code: 102, Version: 1.13.0)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 29 (14 by maintainers)
Commits related to this issue
- :zap: troubleshoot #1293 — committed to parse-community/parse-server by flovilmart 8 years ago
Hello, same error we see here. An array of PFObjects are only returning partial data instead of full, even with includeKey. It works fine with just a single pointer however.
In a query when I do this
query.includeKey("users")
I get no results. When I remove this includeKey I get results but without the users objects of course (I mean, no data available). This is my full query:Funny how if I remove that
whereKey
I get error can only include pointer fields.