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

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

Open
Superd22 opened this issue Aug 6, 2021 · 1 comment

Comments

@Superd22
Copy link
Member

Superd22 commented Aug 6, 2021

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]!
}
@Superd22
Copy link
Member Author

Superd22 commented Apr 17, 2022

will probably need to be implemented in order to support #96

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