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!

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.

  1. Create a PFQuery on the object’s type.
  2. Try to include the array of pointers field using includeKey:
  3. 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

Most upvoted comments

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:

let query = Chat.query()!
query.whereKey("users", equalTo: user)
query.includeKey("users")

Funny how if I remove that whereKey I get error can only include pointer fields.