Skip to content
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

Failure to insert large Reference documents #311

Closed
mingard opened this issue Jul 4, 2017 · 0 comments
Closed

Failure to insert large Reference documents #311

mingard opened this issue Jul 4, 2017 · 0 comments
Assignees

Comments

@mingard
Copy link
Contributor

mingard commented Jul 4, 2017

Expected behavior

To be able to insert large Reference documents

Actual behavior

Results are malformed.

Steps to reproduce the problem

Using this collection:

{
  "fields": {
    "word": {
      "type": "String",
      "label": "Word",
      "comments": "Taxanomic word",
      "validation": {},
      "required": true,
      "message": "can't be empty",
      "publish": {
        "section": "Article",
        "placement": "main",
        "display": {
          "list": true,
          "edit": true
        }
      }
    },
    "level": {
      "type": "Number",
      "label": "Level",
      "required": false,
      "publish": {
        "section": "Article",
        "placement": "sidebar",
        "display": {
          "list": true,
          "edit": false
        }
      }
    },
    "children": {
      "type": "Reference",
      "label": "Children",
      "required": false,
      "settings": {
        "collection": "taxonomy"
      },
      "publish": {
        "section": "Article",
        "placement": "sidebar",
        "display": {
          "list": true,
          "edit": true
        }
      }
    }
  },
  "settings": {
    "compose": true,
    "cache": false,
    "authenticate": true,
    "callback": null,
    "defaultFilters": null,
    "fieldLimiters": null,
    "count": 40,
    "sort": "createdAt",
    "sortOrder": 1,
    "limit": 1,
    "storeRevisions": true,
    "revisionCollection": "newsHistory",
    "description": "Taxonomy",
    "displayName": "Taxonomy"
  }
}

Insert the following:

{
  "word": "animals",
  "children": [
    {
      "word": "dogs",
      "children": [
        {
          "word": "guide_dogs",
          "children": []
        },
        {
          "word": "puppies",
          "children": []
        }
      ]
    },
    {
      "word": "foxes",
      "children": []
    },
    {
      "word": "pandas",
      "children": []
    }
  ]
}

Package details

API Version 2.1.2, Ubuntu 16.04, Node version 6.10 and 8.1.3

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

No branches or pull requests

2 participants