这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@rakeshkky
Copy link
Member

Description

Initial decision was to discard the array connection fields if aggregations aren't enabled in the select permission. It was because, the connection may have support for querying "aggregate" field in future iteration. In this PR, the change is made to include the connection field regardless of aggregation permission. However, if we were to support the "aggregate" field in the connection object, we can alone include that field only if aggregations are allowed.

Changelog

  • CHANGELOG.md is updated with user-facing content relevant to this PR. If no changelog is required, then add the no-changelog-required label.
    No changelog entry is being added. The existing change log is modified to replace /v1beta/relay in place of /v1/relay.

Affected components

  • Server
  • Console
  • Docs
  • Tests

Related Issues

Fix #5218

Solution and Design

A single line change to include the array connection field regardless of allowAgg check.

Steps to test and verify

Limitations, known bugs & workarounds

Server checklist

Catalog upgrade

Does this PR change Hasura Catalog version?

  • No
  • Yes

Metadata

Does this PR add a new Metadata feature?

  • No
  • Yes

GraphQL

  • No new GraphQL schema is generated
  • New GraphQL schema is being generated

Breaking changes

  • No Breaking changes
  • There are breaking changes with previous 1.3.0-beta releases. The relay endpoint is changed to /v1beta1/relay.

@rakeshkky rakeshkky added c/server Related to server c/relay Related to GraphQL Relay labels Jul 1, 2020
@rakeshkky rakeshkky requested a review from 0x777 July 1, 2020 15:16
@rakeshkky rakeshkky requested review from a team as code owners July 1, 2020 15:16
@rakeshkky rakeshkky self-assigned this Jul 1, 2020
@netlify
Copy link

netlify bot commented Jul 1, 2020

Deploy preview for hasura-docs ready!

Built with commit 8c761ee

https://deploy-preview-5257--hasura-docs.netlify.app

@hasura-bot
Copy link
Contributor

Review app for commit b3adcb5 deployed to Heroku: https://hge-ci-pull-5257.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5257-b3adcb54

Copy link
Contributor

@sezgi sezgi left a comment

Choose a reason for hiding this comment

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

docs & sample app

Copy link
Contributor

@beerose beerose left a comment

Choose a reason for hiding this comment

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

Console

@hasura-bot
Copy link
Contributor

Review app for commit a47b5ac deployed to Heroku: https://hge-ci-pull-5257.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5257-a47b5acf

@hasura-bot
Copy link
Contributor

Review app for commit 8c761ee deployed to Heroku: https://hge-ci-pull-5257.herokuapp.com
Docker image for server: hasura/graphql-engine:pull5257-8c761eee

@tirumaraiselvan tirumaraiselvan merged commit 2fe353a into hasura:master Jul 3, 2020
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-5257.herokuapp.com is deleted

stevefan1999-personal pushed a commit to stevefan1999-personal/graphql-engine that referenced this pull request Sep 12, 2020
…ission & change relay endpoint to '/v1beta1/relay' (fix hasura#5218) (hasura#5257)

* fix error when array relation connections are queried, fix hasura#5218

* change relay endpoint to '/v1beta1/relay'

* Update CHANGELOG.md

Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/relay Related to GraphQL Relay c/server Related to server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Relay] connections visible in the schema but raise runtime error

7 participants