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

Support for __typename queries #43

Open
skilgoreT opened this issue Nov 15, 2023 · 0 comments
Open

Support for __typename queries #43

skilgoreT opened this issue Nov 15, 2023 · 0 comments

Comments

@skilgoreT
Copy link

For types with union type payloads, request support for __typename universal query syntax

enum ContentModuleType 
{
  POLL
  TASKLIST
}
type TaskListModule {
  content_type: ContentModuleType!
  tasklist_id: ID!
}
type PollModule {
  content_type: ContentModuleType!
  poll_id: ID!
}
union ContentModule = PollModule | TaskListModule

########################
# Queries and Mutations
########################
extend type Query
{
  content_module_by_id(id: ID!): ContentModule!
}

This query is not currently supported

query GetContentModuleById {
  content_module_by_id(id:"some_tasklist_id") {
    __typename
    ... on PollModule {
      poll_id
    }
    ... on TaskListModule {
      tasklist_id
    }
  }
}

Expected behavior

image

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

No branches or pull requests

1 participant