Repository navigation
Feat graphql support - #974
Merged
Merged
Conversation
Closed
# Conflicts: # app/controllers/api/databases.php # composer.lock
# Conflicts: # composer.lock
(cherry picked from commit d6bd0f4)
eldadfux
reviewed
Dec 22, 2022
eldadfux
left a comment
Member
There was a problem hiding this comment.
- I'm not sure we need the GraphQL logo anymore since Console 2.0.
- Do we support disabling the GraphQL API? If yes, we should update the console settings.
- If one of the "regular" services is disabled, do we still allow queries through GraphQL, should we disable them?
| ], | ||
| "require-dev": { | ||
| "appwrite/sdk-generator": "0.28.*", | ||
| "appwrite/sdk-generator": "dev-feat-graphql as 0.28.1", |
|
|
||
| // Search for index | ||
| $indexIndex = array_search($key, array_column($indexes, 'key')); | ||
| $indexIndex = array_search($key, array_map(fn($idx) => $idx['key'], $indexes)); |
Member
There was a problem hiding this comment.
Please add a task to use the built-in function.
Member
|
eldadfux
approved these changes
Dec 22, 2022
Meldiron
reviewed
Dec 26, 2022
| 'password' => (!empty($password)) ? ($hash === 'plaintext' ? Auth::passwordHash($password, $hash, $hashOptionsObject) : $password) : null, | ||
| 'hash' => $hash === 'plaintext' ? Auth::DEFAULT_ALGO : $hash, | ||
| 'hashOptions' => $hash === 'plaintext' ? Auth::DEFAULT_ALGO_OPTIONS : $hashOptions, | ||
| 'hashOptions' => $hash === 'plaintext' ? Auth::DEFAULT_ALGO_OPTIONS : $hashOptionsObject + ['type' => $hash], |
Contributor
There was a problem hiding this comment.
Why do we need type in hashOptions? the hash is the type
Contributor
There was a problem hiding this comment.
Also I think we need to apply this to account controller, and teams controller.
Contributor
There was a problem hiding this comment.
After reading more of the PR I see why we do this.
But this now requires migration and proper tests for it.
Contributor
There was a problem hiding this comment.
I am making myself note to double check migrations between 1.2.x and master
Meldiron
reviewed
Dec 26, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Add GraphQL support
Test Plan
New tests covering all GraphQL queries/mutations
Related PRs and Issues
appwrite/docs#287
https://github.com/appwrite/homepage/pull/113
appwrite/sdk-generator#577
Have you read the Contributing Guidelines on issues?
Yes