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

default field value indexes not recognised #284

mingard opened this Issue May 26, 2017 · 1 comment


None yet
2 participants
Copy link

mingard commented May 26, 2017

Expected behavior

a config containing a sort of createdAt and an index of createdAt should save successfully through a request to /config


"sort": "createdAt",
"index": [
        "keys": {
          "createdAt" : 1
        "keys": {
          "name" : 1

Actual behavior

An error is thrown:

  "statusCode": 400,
  "success": false,
  "errors": [
      "code": "API-0001",
      "title": "Missing Index Key",
      "details": "'createdAt' is specified as the primary sort field, but is missing from the index key collection.",
      "docLink": ""

This comment has been minimized.

Copy link

jimlambie commented May 29, 2017

Closed via 450540d

@jimlambie jimlambie closed this May 29, 2017

@jimlambie jimlambie removed the in progress label May 29, 2017

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