Skip to content

Doesn't support a fragment with the same name of its type #184

Closed
@filipealva

Description

@filipealva

As we've discovered discussing in Apollo Slack, If I create a fragment with the same name of its type as the following:

fragment Center on Center {
  _id
  name
}

Everytime we call it from a query the query returns a QueryName.Data.Center type, even if we map and access it through the .fragments.center property of each result item.

screen shot 2017-11-21 at 14 01 05

Metadata

Metadata

Assignees

No one assigned

    Labels

    codegenIssues related to or arising from code generation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions