Skip to content

Commit a46451f

Browse files
committed
Merge branch 'upstream' into batchTransaction
2 parents 8222855 + b605638 commit a46451f

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ The full documentation for Parse Server is available in the [wiki](https://githu
3232
- [Basic Options](#basic-options)
3333
- [Client Key Options](#client-key-options)
3434
- [Email Verification & Password Reset](#email-verification-and-password-reset)
35+
- [Custom Pages](#custom-pages)
3536
- [Using Environment Variables](#using-environment-variables-to-configure-parse-server)
3637
- [Available Adapters](#available-adapters)
3738
- [Configuring File Adapters](#configuring-file-adapters)
@@ -288,6 +289,7 @@ var server = ParseServer({
288289
```
289290

290291
You can also use other email adapters contributed by the community such as:
292+
- [parse-smtp-template (Multi Language and Multi Template)](https://www.npmjs.com/package/parse-smtp-template)
291293
- [parse-server-postmark-adapter](https://www.npmjs.com/package/parse-server-postmark-adapter)
292294
- [parse-server-sendgrid-adapter](https://www.npmjs.com/package/parse-server-sendgrid-adapter)
293295
- [parse-server-mandrill-adapter](https://www.npmjs.com/package/parse-server-mandrill-adapter)
@@ -298,6 +300,27 @@ You can also use other email adapters contributed by the community such as:
298300
- [simple-parse-smtp-adapter](https://www.npmjs.com/package/simple-parse-smtp-adapter)
299301
- [parse-server-generic-email-adapter](https://www.npmjs.com/package/parse-server-generic-email-adapter)
300302

303+
### Custom Pages
304+
305+
It’s possible to change the default pages of the app and redirect the user to another path or domain.
306+
307+
```js
308+
var server = ParseServer({
309+
...otherOptions,
310+
311+
customPages {
312+
passwordResetSuccess: "http://yourapp.com/passwordResetSuccess",
313+
verifyEmailSuccess: "http://yourapp.com/verifyEmailSuccess",
314+
parseFrameURL: "http://yourapp.com/parseFrameURL",
315+
linkSendSuccess: "http://yourapp.com/linkSendSuccess",
316+
linkSendFail: "http://yourapp.com/linkSendFail",
317+
invalidLink: "http://yourapp.com/invalidLink",
318+
invalidVerificationLink: "http://yourapp.com/invalidVerificationLink",
319+
choosePassword: "http://yourapp.com/choosePassword"
320+
}
321+
})
322+
```
323+
301324
### Using environment variables to configure Parse Server
302325

303326
You may configure the Parse Server using environment variables:

spec/ParseGraphQLServer.spec.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,6 +1523,44 @@ describe('ParseGraphQLServer', () => {
15231523
).toEqual(['someValue1', 'someValue3']);
15241524
});
15251525

1526+
it('should support _or operation', async () => {
1527+
await prepareData();
1528+
1529+
await parseGraphQLServer.parseGraphQLSchema.databaseController.schemaCache.clear();
1530+
1531+
const result = await apolloClient.query({
1532+
query: gql`
1533+
query {
1534+
objects {
1535+
findGraphQLClass(
1536+
where: {
1537+
_or: [
1538+
{ someField: { _eq: "someValue1" } }
1539+
{ someField: { _eq: "someValue2" } }
1540+
]
1541+
}
1542+
) {
1543+
results {
1544+
someField
1545+
}
1546+
}
1547+
}
1548+
}
1549+
`,
1550+
context: {
1551+
headers: {
1552+
'X-Parse-Master-Key': 'test',
1553+
},
1554+
},
1555+
});
1556+
1557+
expect(
1558+
result.data.objects.findGraphQLClass.results
1559+
.map(object => object.someField)
1560+
.sort()
1561+
).toEqual(['someValue1', 'someValue2']);
1562+
});
1563+
15261564
it('should support order, skip and limit arguments', async () => {
15271565
const promises = [];
15281566
for (let i = 0; i < 100; i++) {

0 commit comments

Comments
 (0)