Skip to content

Feat graphql support - #974

Merged
eldadfux merged 425 commits into
1.2.xfrom
feat-graphql-support
Dec 26, 2022
Merged

eldadfux merged 425 commits into
1.2.xfrom
feat-graphql-support

Conversation

@christyjacob4

@christyjacob4 christyjacob4 commented Mar 12, 2021 •

Copy link
Copy Markdown
Contributor

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

@christyjacob4
christyjacob4 changed the base branch from 0.8.x to dev March 12, 2021 18:10
@christyjacob4 christyjacob4 mentioned this pull request Mar 25, 2021
@christyjacob4
christyjacob4 changed the base branch from dev to 0.9.x June 15, 2021 03:30
@christyjacob4
christyjacob4 changed the base branch from 0.9.x to master November 16, 2021 12:24
@abnegate
abnegate requested a review from eldadfux December 22, 2022 03:08
@abnegate abnegate added this to the 1.2.0 milestone Dec 22, 2022

@eldadfux eldadfux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 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?

Comment thread composer.json
],
"require-dev": {
"appwrite/sdk-generator": "0.28.*",
"appwrite/sdk-generator": "dev-feat-graphql as 0.28.1",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another reminder.

Comment thread composer.json Resolved
Comment thread app/init.php Resolved
Comment thread app/init.php Resolved

// Search for index
$indexIndex = array_search($key, array_column($indexes, 'key'));
$indexIndex = array_search($key, array_map(fn($idx) => $idx['key'], $indexes));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a task to use the built-in function.

Comment thread src/Appwrite/Promises/Promise.php Resolved
Comment thread src/Appwrite/Promises/Swoole.php Resolved
Comment thread CHANGES.md Resolved
@abnegate

Copy link
Copy Markdown
Member
  • 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?
  • Removed
  • We do support disabling it, will make an update in console
  • If a service is disabled and called through GraphQL, the request will be blocked

'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],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need type in hashOptions? the hash is the type

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I think we need to apply this to account controller, and teams controller.

@Meldiron Meldiron Dec 26, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reading more of the PR I see why we do this.

But this now requires migration and proper tests for it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am making myself note to double check migrations between 1.2.x and master

Comment thread docker-compose.yml Resolved
@eldadfux
eldadfux merged commit 213d17f into 1.2.x Dec 26, 2022
@stnguyen90
stnguyen90 deleted the feat-graphql-support branch February 14, 2023 00:35
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.

GraphQL Support

6 participants