Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL @connection improvments #5129

Closed
Hideman85 opened this issue Aug 19, 2020 · 2 comments
Closed

GraphQL @connection improvments #5129

Hideman85 opened this issue Aug 19, 2020 · 2 comments
Labels
feature-request Request a new feature graphql-transformer-v1 Issue related to GraphQL Transformer v1

Comments

@Hideman85
Copy link

There is still some useful case not supported yet that not permit me to deploy my model. There is some example:

type A
@model
{
  id: ID!
}

type B
@model
{
  id: ID!
  objAID: ID
  objA: A @connection(fields: ["objAID"])
  # InvalidDirectiveError: All fields provided to an @connection must be non-null scalar or enum fields.
  # Why are we not able to have a check if it's null just return a null object?
}

union Obj = A | B
type C
@model
{
  id: ID!
  objID: ID!
  obj: Obj! @connection(fields: ["objID"])
  # InvalidDirectiveError: Could not find an object type named Obj.
  # By prefixing the id with the typename we can fetch in the correct table so why not supporting that?
  # specially because you don't allow us to manage IDs ourself!
}
@edwardfoyle
Copy link
Member

The latest version of the CLI now supports nullable connection fields. For your other request about supporting union types, see: aws-amplify/amplify-category-api#450

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
@josefaidt josefaidt added feature-request Request a new feature and removed enhancement labels Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request a new feature graphql-transformer-v1 Issue related to GraphQL Transformer v1
Projects
None yet
Development

No branches or pull requests

4 participants