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

fix(GraphQL): Unable to run queries with order as array #6310

Closed

Conversation

douglasmuraoka
Copy link
Contributor

An internal server error is thrown if the order query parameter is an array.
Currently, order only works with a single value.

greenkeeper bot and others added 30 commits September 13, 2019 15:51
* fix(package): update graphql to version 14.5.5

* chore(package): update lockfile package-lock.json
* chore(package): update eslint to version 6.4.0

* chore(package): update lockfile package-lock.json
* fix(package): update graphql to version 14.5.6

* chore(package): update lockfile package-lock.json
* chore(package): update cross-env to version 6.0.0

* chore(package): update lockfile package-lock.json
* chore(package): update flow-bin to version 0.108.0

* chore(package): update lockfile package-lock.json
The script uses double square brackets, which are a non-standard extension to `[]`. Some shells (e.g. dash, the default shell under Debian) do not support double square brackets. The shebang line should reflect that.
* fix(package): update node-rsa to version 1.0.6

* chore(package): update lockfile package-lock.json
The script currently writes a package.json with a dependency on parse-server version 2.2. This should probably always be automatically updated to the latest version using some CI magic.
* fix(package): update graphql to version 14.5.7

* chore(package): update lockfile package-lock.json
* chore(package): update jasmine to version 3.5.0

* chore(package): update lockfile package-lock.json
* chore(package): update lint-staged to version 9.3.0

* chore(package): update lockfile package-lock.json
* chore(package): update @babel/cli to version 7.6.2

* chore(package): update @babel/core to version 7.6.2

* chore(package): update @babel/plugin-proposal-object-rest-spread to version 7.6.2

* chore(package): update @babel/preset-env to version 7.6.2

* chore(package): update lockfile package-lock.json
* fix(package): update graphql to version 14.5.8

* chore(package): update lockfile package-lock.json
* fix(package): update commander to version 3.0.2

* chore(package): update lockfile package-lock.json
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.3.0 to 9.4.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v9.3.0...v9.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* add microsoft graph auth

* change mail to id

* add graph user id and email

* add microsoft graph auth test case

* remove validating auth data using mail

* add test case to AuthenticationAdapters

* fix indentation

* fix httpsRequest and fakeClaim not found

* add newline eof last

* fix test in auth adapter

* fix unhandled promise rejection
* fix(package): update pg-promise to version 9.2.0

* chore(package): update lockfile package-lock.json
Bumps [pg-promise](https://github.com/vitaly-t/pg-promise) from 9.1.4 to 9.2.1.
- [Release notes](https://github.com/vitaly-t/pg-promise/releases)
- [Commits](vitaly-t/pg-promise@9.1.4...9.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* chore(package): update husky to version 3.0.6

* chore(package): update lockfile package-lock.json
* chore(package): update eslint to version 6.5.0

* chore(package): update lockfile package-lock.json
* chore(package): update lint-staged to version 9.4.1

* chore(package): update lockfile package-lock.json
* chore(package): update cross-env to version 6.0.2

* chore(package): update lockfile package-lock.json
* chore(package): update husky to version 3.0.8

* chore(package): update lockfile package-lock.json
* Spec

Fix Spec

* Add ACL Type + Input

* Improvements

* Fix
Moumouls and others added 23 commits December 11, 2019 21:47
* fix(package): update semver to version 7.0.0

* chore(package): update lockfile package-lock.json
* fix(package): update ws to version 7.2.1

* chore(package): update lockfile package-lock.json
* chore(package): update apollo-cache-inmemory to version 1.6.5

* chore(package): update apollo-client to version 2.6.6

* chore(package): update apollo-utilities to version 1.3.3

* chore(package): update lockfile package-lock.json
* chore(package): update flow-bin to version 0.114.0

* chore(package): update lockfile package-lock.json
* Update PostgresStorageAdapter.js

Improving use of the `await.async` notation in relation to `pg-promise`, and in general.

* Update PostgresStorageAdapter.js

* Update PostgresStorageAdapter.js

Correcting some results.

* Update PostgresStorageAdapter.js
…unity#6278)

* Add missing encodeURIComponent on username

* Add new unit test on encoded username password reset redirect
* fix(package): update semver to version 7.1.0

* chore(package): update lockfile package-lock.json
* parse-community#6101 Let users define objectId

* Add `allowCustomObjectId` to PS Option

* Add checking in objectId creation

* Add test

* Update docs

* Update definition

* Change default to false

* throw on empty, null, undefined

* better tests

* unused async

* removed comment

* retain comment

* Linting fix according to contributing spec.
* fix(package): update apollo-server-express to version 2.9.14

* chore(package): update lockfile package-lock.json
* fix(package): update semver to version 7.1.1

* chore(package): update lockfile package-lock.json
* fix(package): update mongodb to version 3.4.1

* chore(package): update lockfile package-lock.json
* chore(package): update eslint to version 6.8.0

* chore(package): update lockfile package-lock.json
* chore(package): update @babel/cli to version 7.7.7

* chore(package): update @babel/core to version 7.7.7

* chore(package): update @babel/plugin-proposal-object-rest-spread to version 7.7.7

* chore(package): update @babel/preset-env to version 7.7.7

* chore(package): update lockfile package-lock.json
* chore(package): update nyc to version 15.0.0

* chore(package): update lockfile package-lock.json
https://community.parseplatform.org/t/server-log-retention/867/2

Maximum number of logs to keep. If not set, no logs will be removed. This can be a number of files or number of days. If using days, add 'd' as the suffix. (default: null).

I'll run this in production for a few days. I assume it works.

Useful for saving disk space.

Update winston-daily-rotate-file package to 4.4.0
* fix(package): update parse to version 2.11.0

* chore(package): update lockfile package-lock.json
* fix(package): update pg-promise to version 10.3.2

* chore(package): update lockfile package-lock.json
* fix(package): update apollo-server-express to version 2.9.15

* chore(package): update lockfile package-lock.json
…#6304)

* fix(GraphQL): Timeout when fetching huge collections

Currently, when not specifying a `limit` to the GraphQL find-like query, it tries to fetch the entire collection of objects from a class. However, if the class contains a huge set of objects, it is never resolved and results in timeout.

In order to solve this kind of problem, `parse-server` allows us to define a `maxLimit` parameter when initialized, which limits the maximum number of objects fetched per query; but it is not properly considered when the `limit` is undefined.

* fix: Keep same behavior as REST fetch
An internal server error is thrown if the `order` query parameter is an array.
Currently, `order` only works with a single value.
@dplewis
Copy link
Member

dplewis commented Jan 2, 2020

Can you provide a test case?

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

Successfully merging this pull request may close these issues.