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

Is the official document of generating codes outdated? or some classes are not auto-generated? #660

Closed
dingyo777 opened this issue Mar 9, 2024 · 1 comment

Comments

@dingyo777
Copy link

I'm watching this document.

And I've developed with kotlin project.

I'm generating codes using com.netflix.dgs.codegen plugin in gradle with 5.12.4.

And my code gen config is as follows:

generateClient = true
generateDataTypes = true
generateKotlinNullableClasses = true
generateKotlinClosureProjections = true

My question is when I generate kotlin codes from my schema, there are many projection classes ~~~Projection for each type but has no classes named like ~~~ProjectionRoot.

But when I read the document, some example mentions MoviesProjectionRoot class. Is the class auto-generated one? If yes, then why my auto-generated codes has not that kind of class??

@srinivasankavitha
Copy link
Contributor

You are using a different API specifically for Kotlin client codegen. The docs are here: https://netflix.github.io/dgs/advanced/kotlin-codegen/

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

2 participants