Skip to content

Generated names should respect type-graphql names instead of class names #56

@Superd22

Description

@Superd22

Given the simplistic code below:

@ObjectType('Bar')
export class Foo {}

@Resolver(() => Foo)
class FooResolver {

  @RelayedQuery(() => Foo)
  public myQuery() {}

}

EXPECTED BEHAVIOR:

type Query {
  myQuery: BarCollection!
}

type BarCollection {
  edges: [BarEdge]!
}

CURRENT BEHAVIOR:

type Query {
  myQuery: FooCollection!
}

type FooCollection {
  edges: [FooEdge]!
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions