Commit Graph

896 Commits

Author SHA1 Message Date
Diamond Lewis
3ab9dcdfd0 Improve Live Query Monitoring (#5927)
* Improve Live Query Monitoring

* typo
2019-08-16 11:38:24 -07:00
greenkeeper[bot]
4f8da12674 Update pg-promise to the latest version 🚀 (#5924)
* fix(package): update pg-promise to version 9.0.2

* chore(package): update lockfile package-lock.json
2019-08-15 22:02:32 +00:00
Antoine Cormouls
59b0221fec GraphQL: Renaming Types/Inputs (#5883)
* Renaming GraphQL Types/Inputs

* Add Native Type to avoid collision

* Use pluralize for renaming

* Fixing tests

* Improve name collision management - tests passsing

* Renaming few more default types

* Rename file input

* Reverting fields types to not collide with the relay spec types
Improver users mutations

* Adding ArrayResult to the reserved list

* Fixing tests

* Add more unit tests to ParseGraphQLSchema

* Test transformClassNameToGraphQL

* Name collision tests
2019-08-15 14:23:41 -07:00
greenkeeper[bot]
45dabbbcda Update pg-promise to the latest version 🚀 (#5919)
* fix(package): update pg-promise to version 9.0.1

* chore(package): update lockfile package-lock.json
2019-08-14 18:05:30 +00:00
greenkeeper[bot]
10ac88eec5 Update mongodb-runner to the latest version 🚀 (#5918)
* chore(package): update mongodb-runner to version 4.7.2

* chore(package): update lockfile package-lock.json
2019-08-14 12:36:39 +00:00
greenkeeper[bot]
4c1be61bed Update mongodb to the latest version 🚀 (#5914)
* fix(package): update mongodb to version 3.3.0

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

* Fix tests

* Fix GraphQL tests for read preference

* Fix mongo adapter deprecation notice

* Fix the way the connections are checked, return promise when shutting down mongo
2019-08-14 01:25:49 +00:00
greenkeeper[bot]
6760ceb836 Update flow-bin to the latest version 🚀 (#5911)
* chore(package): update flow-bin to version 0.105.2

* chore(package): update lockfile package-lock.json
2019-08-13 03:36:10 +00:00
greenkeeper[bot]
5113b01ecb Update ws to the latest version 🚀 (#5909)
* fix(package): update ws to version 7.1.2

* chore(package): update lockfile package-lock.json
2019-08-12 21:53:55 +00:00
greenkeeper[bot]
6f6210387e Update flow-bin to the latest version 🚀 (#5903)
* chore(package): update flow-bin to version 0.105.0

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

* Update flow-bin to 0.105.1
2019-08-12 07:37:25 +00:00
greenkeeper[bot]
decd04157a Update apollo-client to the latest version 🚀 (#5905)
* chore(package): update apollo-cache-inmemory to version 1.6.3

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

* chore(package): update lockfile package-lock.json
2019-08-12 07:31:53 +00:00
greenkeeper[bot]
4513edbfd3 Update eslint-plugin-flowtype to the latest version 🚀 (#5902)
* chore(package): update eslint-plugin-flowtype to version 4.2.0

* chore(package): update lockfile package-lock.json
2019-08-09 22:06:52 +00:00
greenkeeper[bot]
b3270d887b Update eslint-plugin-flowtype to the latest version 🚀 (#5901)
* chore(package): update eslint-plugin-flowtype to version 4.0.0

* chore(package): update lockfile package-lock.json
2019-08-09 14:10:17 +00:00
dependabot-preview[bot]
b611746ae5 Bump commander from 2.20.0 to 3.0.0 (#5899)
Bumps [commander](https://github.com/tj/commander.js) from 2.20.0 to 3.0.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v2.20.0...v3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-09 11:03:12 +00:00
greenkeeper[bot]
7de747972e Update husky to the latest version 🚀 (#5895)
* chore(package): update husky to version 3.0.3

* chore(package): update lockfile package-lock.json
2019-08-08 17:51:22 +00:00
greenkeeper[bot]
e0690d0c56 Update eslint-plugin-flowtype to the latest version 🚀 (#5881)
* chore(package): update eslint-plugin-flowtype to version 3.13.0

* chore(package): update lockfile package-lock.json
2019-08-02 16:52:24 +00:00
Antonio Davi Macedo Coelho de Castro
14a8d333a3 FIX: Transaction was aborting before all promises have either resolved or rejected (#5878) 2019-07-31 18:34:49 -07:00
greenkeeper[bot]
baa5daefa4 Update apollo-server to the latest version 🚀 (#5873)
* fix(package): update apollo-server-express to version 2.8.1

* chore(package): update lockfile package-lock.json
2019-07-31 17:45:41 +00:00
Antonio Davi Macedo Coelho de Castro
8b97c1380b Batch transaction (#5849)
* Batch transaction boilerplate

* Refactoring transaction boilerplate

* Independent sessions test

* Transactions - partial

* Missing only one test

* All tests passing for mongo db

* Tests on Travis

* Transactions on postgres

* Fix travis to restart mongodb

* Remove mongodb service and keep only mongodb runner

* MongoDB service back

* Initialize replicaset

* Remove mongodb runner again

* Again only with mongodb-runner and removing cache

* Trying with pretest and posttest

* WiredTiger

* Pretest and posttest again

* Removing inexistent scripts

* wiredTiger

* One more attempt

* Trying another way to run mongodb-runner

* Fixing tests

* Include batch transaction on direct access

* Add tests to direct access
2019-07-31 02:41:07 -07:00
Antonio Davi Macedo Coelho de Castro
fe18fe0f61 3.7.2 (#5872) 2019-07-31 02:19:01 -07:00
Antonio Davi Macedo Coelho de Castro
d4fa62ae26 3.7.1 (#5870) 2019-07-30 17:31:56 -07:00
greenkeeper[bot]
c70401857c Update @parse/push-adapter to the latest version 🚀 (#5869)
* fix(package): update @parse/push-adapter to version 3.0.9

* chore(package): update lockfile package-lock.json
2019-07-30 22:18:58 +00:00
greenkeeper[bot]
7c8e940f53 Update apollo-server to the latest version 🚀 (#5865)
* fix(package): update apollo-server-express to version 2.8.0

* chore(package): update lockfile package-lock.json
2019-07-29 23:32:32 +00:00
greenkeeper[bot]
747cb47b6b Update husky to the latest version 🚀 (#5864)
* chore(package): update husky to version 3.0.2

* chore(package): update lockfile package-lock.json
2019-07-29 17:43:16 +00:00
Tom Fox
b96087ec61 3.7.0 version bump + changelog (#5854)
* 3.7.0 version bump + changelog

* Update CHANGELOG.md
2019-07-28 23:46:13 -07:00
greenkeeper[bot]
d810f34cc5 Update parse to the latest version 🚀 (#5862)
* fix(package): update parse to version 2.6.0

* chore(package): update lockfile package-lock.json
2019-07-29 05:14:44 +00:00
Zeal Murapa
4f21c36825 Update ParseWebSocketServer.js (#5860)
* Update ParseWebSocketServer.js

fix wss:// error by requiring 'ws' module, remove uws as it has been deprecated and removed from npm

* Update ParseWebSocketServer.js

* remove uws
2019-07-28 22:17:09 -05:00
greenkeeper[bot]
1903f59db5 Update eslint-plugin-flowtype to the latest version 🚀 (#5858)
* chore(package): update eslint-plugin-flowtype to version 3.12.2

* chore(package): update lockfile package-lock.json
2019-07-29 00:35:51 +00:00
greenkeeper[bot]
80bb2b6389 Update pg-promise to the latest version 🚀 (#5857)
* fix(package): update pg-promise to version 9.0.0

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

* remove es6 generators
2019-07-27 19:07:36 +00:00
greenkeeper[bot]
8c321ed750 Update apollo-server to the latest version 🚀 (#5856)
* fix(package): update apollo-server-express to version 2.7.2

* chore(package): update lockfile package-lock.json
2019-07-26 23:56:24 +00:00
greenkeeper[bot]
601a6ff788 Update @parse/push-adapter to the latest version 🚀 (#5852)
* fix(package): update @parse/push-adapter to version 3.0.5

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

* Update flow-bin to the latest version 🚀 (#5853)

* chore(package): update flow-bin to version 0.104.0

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

* Update package.json

* Pin to 3.0.8
2019-07-26 22:33:14 +00:00
greenkeeper[bot]
7eadf35840 Update flow-bin to the latest version 🚀 (#5853)
* chore(package): update flow-bin to version 0.104.0

* chore(package): update lockfile package-lock.json
2019-07-26 20:43:47 +00:00
dependabot-preview[bot]
bbcc20fd60 Bump apollo-server-express from 2.7.0 to 2.7.1 (#5847)
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/compare/apollo-server-express@2.7.0...apollo-server-express@2.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-25 18:33:03 +00:00
dependabot-preview[bot]
c475a14408 Bump lint-staged from 9.2.0 to 9.2.1 (#5846)
* Bump lint-staged from 9.2.0 to 9.2.1

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.2.0 to 9.2.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v9.2.0...v9.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* remove flaky test

* re-add test
2019-07-25 18:28:18 +00:00
greenkeeper[bot]
a5fb38b0b2 Update semver to the latest version 🚀 (#5843)
* fix(package): update semver to version 6.3.0

* chore(package): update lockfile package-lock.json
2019-07-23 19:51:04 +00:00
greenkeeper[bot]
f336cc3435 Update eslint to the latest version 🚀 (#5832)
* chore(package): update eslint to version 6.1.0

* chore(package): update lockfile package-lock.json
2019-07-21 04:59:38 +00:00
greenkeeper[bot]
f03fa6bcf9 Update pg-promise to the latest version 🚀 (#5831)
* fix(package): update pg-promise to version 8.7.5

* chore(package): update lockfile package-lock.json
2019-07-20 01:24:10 +00:00
greenkeeper[bot]
6d5f6b4c94 Update ws to the latest version 🚀 (#5830)
* fix(package): update ws to version 7.1.1

* chore(package): update lockfile package-lock.json
2019-07-19 15:14:58 +00:00
greenkeeper[bot]
7c809f5627 Update lodash to the latest version 🚀 (#5827)
* fix(package): update lodash to version 4.17.15

* chore(package): update lockfile package-lock.json
2019-07-19 03:06:22 +00:00
greenkeeper[bot]
c57f0d329b Update eslint-plugin-flowtype to the latest version 🚀 (#5826)
* chore(package): update eslint-plugin-flowtype to version 3.12.1

* chore(package): update lockfile package-lock.json
2019-07-19 00:01:24 +00:00
greenkeeper[bot]
beeb097e55 Update husky to the latest version 🚀 (#5825)
* chore(package): update husky to version 3.0.1

* chore(package): update lockfile package-lock.json
2019-07-18 22:11:48 +00:00
greenkeeper[bot]
61ae2eb91b Update flow-bin to the latest version 🚀 (#5824)
* chore(package): update flow-bin to version 0.103.0

* chore(package): update lockfile package-lock.json
2019-07-18 21:03:33 +00:00
Antonio Davi Macedo Coelho de Castro
71d92aed8d GraphQL Custom Schema (#5821)
This PR empowers the Parse GraphQL API with custom user-defined schema. The developers can now write their own types, queries, and mutations, which will merged with the ones that are automatically generated. The new types are resolved by the application's cloud code functions.

Therefore, regarding https://github.com/parse-community/parse-server/issues/5777, this PR closes the cloud functions needs and also addresses the graphql customization topic. In my view, I think that this PR, together with https://github.com/parse-community/parse-server/pull/5782 and https://github.com/parse-community/parse-server/pull/5818, when merged, closes the issue.

How it works:

1. When initializing ParseGraphQLServer, now the developer can pass a custom schema that will be merged to the auto-generated one:
```
      parseGraphQLServer = new ParseGraphQLServer(parseServer, {
        graphQLPath: '/graphql',
        graphQLCustomTypeDefs: gql`
          extend type Query {
            custom: Custom @namespace
          }
           type Custom {
            hello: String @resolve
            hello2: String @resolve(to: "hello")
            userEcho(user: _UserFields!): _UserClass! @resolve
          }
        `,
      });
```

Note:
- This PR includes a @namespace directive that can be used to the top level field of the nested queries and mutations (it basically just returns an empty object);
- This PR includes a @resolve directive that can be used to notify the Parse GraphQL Server to resolve that field using a cloud code function. The `to` argument specifies the function name. If the `to` argument is not passed, the Parse GraphQL Server will look for a function with the same name of the field;
- This PR allows creating custom types using the auto-generated ones as in `userEcho(user: _UserFields!): _UserClass! @resolve`;
- This PR allows to extend the auto-generated types, as in `extend type Query { ... }`.

2. Once the schema was set, you just need to write regular cloud code functions:
```
      Parse.Cloud.define('hello', async () => {
        return 'Hello world!';
      });

      Parse.Cloud.define('userEcho', async req => {
        return req.params.user;
      });
```

3. Now you are ready to play with your new custom api:
```
query {
  custom {
    hello
    hello2
    userEcho(user: { username: "somefolk" }) {
      username
    }
  }
}
```
should return
```
{
  "data": {
    "custom": {
      "hello": "Hello world!",
      "hello2": "Hello world!",
      "userEcho": {
        "username": "somefolk"
      }
    }
  }
}
```
2019-07-18 16:43:49 -03:00
greenkeeper[bot]
6be15331a6 Update eslint-plugin-flowtype to the latest version 🚀 (#5823)
* chore(package): update eslint-plugin-flowtype to version 3.12.0

* chore(package): update lockfile package-lock.json
2019-07-18 17:14:07 +00:00
greenkeeper[bot]
9eec0f1b78 Update babel7 to the latest version 🚀 (#5820)
* chore(package): update @babel/cli to version 7.5.5

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

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

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

* chore(package): update lockfile package-lock.json
2019-07-17 23:40:20 +00:00
greenkeeper[bot]
1b5c045706 Update apollo-server to the latest version 🚀 (#5817)
* fix(package): update apollo-server-express to version 2.7.0

* chore(package): update lockfile package-lock.json
2019-07-16 14:18:14 +00:00
greenkeeper[bot]
82e24cb18d Update @parse/s3-files-adapter to the latest version 🚀 (#5816)
* fix(package): update @parse/s3-files-adapter to version 1.2.3

* chore(package): update lockfile package-lock.json
2019-07-15 18:07:19 +00:00
greenkeeper[bot]
cdc6eee295 Update jsdoc to the latest version 🚀 (#5813)
* chore(package): update jsdoc to version 3.6.3

* chore(package): update lockfile package-lock.json
2019-07-14 18:32:19 +00:00
greenkeeper[bot]
1c62ab6f49 Update winston-daily-rotate-file to the latest version 🚀 (#5808)
* fix(package): update winston-daily-rotate-file to version 3.10.0

* chore(package): update lockfile package-lock.json
2019-07-12 15:52:20 +00:00
greenkeeper[bot]
3e888249cc Update parse to the latest version 🚀 (#5806)
* fix(package): update parse to version 2.5.1

* chore(package): update lockfile package-lock.json
2019-07-12 00:42:32 +00:00
greenkeeper[bot]
527662f336 Update pg-promise to the latest version 🚀 (#5805)
* fix(package): update pg-promise to version 8.7.4

* chore(package): update lockfile package-lock.json
2019-07-11 22:46:36 +00:00