Skip to content

Parse Server / IOS - include Key has different results after migration #677

Description

@spanapaul

The following query works prior to migration but not post migration in MongoLabs for selected records only

PFQuery *drillResultsQuery = [GradingDrillResult query];
[drillResultsQuery whereKey:@"parentEvent" equalTo:self.currentEvent];
[drillResultsQuery includeKey:@"parentDrill"]; //returns no data in the object
[drillResultsQuery includeKey:@"parentPerson"]; // works ok
[drillResultsQuery includeKey:@"parentEventInvite"]; // works ok
[drillResultsQuery orderByAscending:@"firsttName,lastName,parentDrillType"];

Using the parse data browser the link works ok and also in mongoldb the id appears correct. However, the parentDrill data has 0 data elements when queried via parse server and mongoldb

Activity

  1. gfosco commented on Feb 26, 2016

    @gfosco
    Contributor

    If you can troubleshoot this further, that would be great. Run the server with the environment variable VERBOSE=1 and capture the request for the query.

  2. jackdewhurst commented on Mar 2, 2016

    @jackdewhurst

    I'm having this problem too, "includeKey" on a PFRelation query returns pointers with no data.

    If point back from my Heroku Parse Server instance to api.parse.com then the same query works fine on the same database.

  3. spanapaul commented on Mar 3, 2016

    @spanapaul
    Author

    My problem turned out to be a data related problem with one record which was created in a previous version. I recreated this record and it worked ok
    Paul

    On 3 Mar 2016, at 10:05 AM, jackdewhurst [email protected] wrote:

    I'm having this problem too, "includeKey" on a PFRelation query returns pointers with no data.

    If point back from my Heroku Parse Server instance to parse.com then the same query works fine on the same database.

    —
    Reply to this email directly or view it on GitHub #677 (comment).

  4. ryderjack commented on Mar 7, 2016

    @ryderjack

    Same problem as @jackdewhurst. Query returns pointers with no data despite using 'includeKey'.

  5. drew-gross commented on Mar 30, 2016

    @drew-gross
    Contributor

    This issue is getting old, and it seems like some people have solved this issue. If you are still seeing this problem, can you open a new issue and include some consistent repro steps?

  6. Raminder123 commented on Oct 19, 2016

    @Raminder123

    Hello,
    After deployment of parse server to heroku....my app is not running successfully.It always gives me the following error.

    Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}

    Please help me out here

    Thanks
    Raminder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions