Skip to content

PFQuery whereKey..contains causes [__NSArrayM length] unrecognized selector error #4787

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

Closed
alexriet opened this issue May 25, 2018 · 4 comments

Comments

@alexriet
Copy link

alexriet commented May 25, 2018

let query = PFQuery(className: "class")
query.fromPin(withName: "pin")
query.whereKey("user_id", equalTo: "ab")
query.whereKey("detail", contains: "coffee")

where detail is an array that looks like this:
["coffee and cheese", "wine"]

Some error reported from ParseErrorHandlingControllerError: Error Domain=Parse Code=102 "-[__NSArrayM length]: unrecognized selector sent to instance 0x1d425e7e0" UserInfo={error=-[__NSArrayM length]: unrecognized selector sent to instance 0x1d425e7e0, NSLocalizedDescription=-[__NSArrayM length]: unrecognized selector sent to instance 0x1d425e7e0, code=102}


Swift: 4.0
parse-server: 2.6.5
Xcode: 9.2

@flovilmart
Copy link
Contributor

Can you provide the full stacktrace please?

@alexriet
Copy link
Author

screen shot 2018-05-26 at 11 03 25

@flovilmart
Copy link
Contributor

@AlessandroRiet I believe this is the expected. When you run this query against the server, does it work like expected ie: returns the proper response?

@stale
Copy link

stale bot commented Sep 18, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants